:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #0c1730;
  --muted: #6a7894;
  --line: #dce3ee;
  --green: #08966d;
  --green-dark: #067756;
  --gold: #b98112;
  --blue: #246bfe;
  --red: #c0392b;
  --shadow: 0 14px 36px rgba(16, 29, 57, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0d1b2f;
  color: #eaf0fb;
  padding: 24px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--green);
  font-weight: 800;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
}

.brand-subtitle {
  color: #9dacbf;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: transparent;
  color: #b8c5d9;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: #182941;
  color: #ffffff;
}

.sidebar-panel {
  margin-top: 36px;
  border: 1px solid #263954;
  border-radius: 8px;
  padding: 16px;
  background: #122238;
}

.label {
  color: #9dacbf;
  font-size: 12px;
  margin-bottom: 12px;
}

.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #263954;
  color: #c5d1e3;
}

.metric-line strong {
  color: #ffffff;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

.topbar p,
.section-heading p {
  margin-top: 8px;
  color: var(--muted);
}

.account-card,
.panel,
.control-bar,
.fixture-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-card {
  width: 270px;
  padding: 16px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  color: var(--muted);
}

.account-row strong {
  color: var(--gold);
  font-size: 24px;
}

.primary-btn,
.ghost-btn {
  height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
}

.primary-btn {
  border: 1px solid var(--green);
  background: var(--green);
  color: #ffffff;
}

.primary-btn:hover {
  background: var(--green-dark);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.control-bar {
  display: grid;
  grid-template-columns: 180px 180px 180px 1fr auto;
  gap: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.stake-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select,
input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.fixture-section,
.panel {
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading.compact {
  align-items: center;
}

.section-heading.compact h2 {
  margin: 0;
}

.section-heading.compact span {
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  white-space: nowrap;
  border-radius: 999px;
  background: #e9f8f2;
  color: var(--green-dark);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.fixture-list {
  display: grid;
  gap: 12px;
}

.fixture-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.closed-fixture {
  background: #f8fafc;
}

.closed-fixture .odds-btn {
  cursor: not-allowed;
}

.fixture-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.fixture-league {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.fixture-title {
  font-weight: 800;
}

.fixture-time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.prediction-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.prediction-box {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.prediction-box:last-child {
  border-right: 0;
}

.prediction-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.prediction-box strong {
  display: block;
  font-size: 14px;
}

.markets {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.market-row {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  gap: 8px;
  align-items: center;
}

.market-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.odds-btn {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafd;
  color: var(--ink);
}

.odds-btn:hover,
.odds-btn.selected {
  border-color: var(--green);
  background: #e9f8f2;
}

.odds-btn span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.odds-btn strong {
  font-size: 16px;
}

.right-rail {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  align-content: start;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

.hidden {
  display: none !important;
}

.ticket-panel {
  height: min(760px, calc(100vh - 32px));
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 0;
  background: #111111;
  color: #f4f4f5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.ticket-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 20px 4px 12px;
  border: 1px solid #4a4a4d;
  border-radius: 999px;
  padding: 1px;
}

.ticket-tab {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f6f73;
  font-weight: 800;
}

.ticket-tab.active {
  border: 1px solid #f1f1f1;
  color: #ffffff;
  background: #2a2a2d;
}

.ticket-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 16px;
}

.ticket-view,
.ticket-list,
.betslip-content {
  display: grid;
  gap: 0;
}

.ticket-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #77787d;
  text-align: center;
  padding: 24px 12px;
}

.ticket-clear-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 28px;
  color: #77787d;
  font-size: 12px;
  font-weight: 700;
}

.ticket-clear {
  border: 0;
  background: transparent;
  color: #c5c5c8;
  font-size: 13px;
  font-weight: 800;
}

.ticket-bet-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 4px;
  border-bottom: 1px solid #28282a;
}

.ticket-bet-card:first-child {
  padding-top: 14px;
}

.ticket-bet-card.slip-card {
  padding-top: 18px;
}

.ticket-remove {
  position: absolute;
  top: 10px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #77787d;
  font-size: 28px;
  line-height: 1;
}

.ticket-chip {
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-chip.won,
.ticket-chip.push {
  border: 1px solid #00d789;
  color: #00d789;
  background: rgba(0, 215, 137, 0.12);
}

.ticket-chip.lost {
  border: 1px solid #ff6363;
  color: #ff7777;
  background: rgba(255, 99, 99, 0.12);
}

.ticket-chip.pending {
  border: 1px solid #55575c;
  color: #d7d7da;
  background: #242426;
}

.ticket-league,
.ticket-date,
.ticket-subtitle,
.ticket-limits,
.ticket-money-grid span,
.ticket-input-grid span,
.auto-odds-row {
  color: #6f6f73;
  font-size: 12px;
}

.ticket-league {
  margin-top: 5px;
}

.ticket-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  margin-top: 4px;
}

.ticket-title-row strong:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.ticket-title-row strong:last-child {
  font-size: 16px;
}

.ticket-money-grid,
.ticket-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.ticket-money-grid div,
.ticket-input-grid label {
  display: grid;
  gap: 4px;
}

.ticket-money-grid strong,
.ticket-input-grid output {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.ticket-input-grid input,
.ticket-input-grid output {
  width: 100%;
  min-height: 32px;
  border: 1px solid #3d3d40;
  border-radius: 999px;
  background: #2b2b2d;
  color: #ffffff;
  padding: 5px 13px;
}

.ticket-input-grid output {
  display: flex;
  align-items: center;
}

.ticket-limits {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ticket-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: #6f6f73;
  font-size: 11px;
}

.ticket-detail-head button {
  border: 1px solid #3d3d40;
  border-radius: 999px;
  background: #202023;
  color: #d7d7da;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.ticket-detail {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid #28282a;
  padding-top: 10px;
}

.ticket-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ticket-detail-grid div {
  display: grid;
  gap: 3px;
  border: 1px solid #28282a;
  border-radius: 8px;
  padding: 8px;
}

.ticket-detail-grid span,
.ticket-detail-line {
  color: #78797e;
  font-size: 11px;
}

.ticket-detail-grid strong {
  color: #f4f4f5;
  font-size: 12px;
}

.coin-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.coin-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #5a65ff 0%, #118ee8 48%, #21d39f 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 0 0 1px rgba(0,0,0,0.25);
}

.ticket-footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid #28282a;
  background: #101010;
  padding: 14px 16px 18px;
}

.ticket-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 36px;
  color: #ffffff;
  font-size: 13px;
}

.ticket-summary-row strong {
  font-size: 14px;
}

.ticket-place-btn {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(90deg, #6555ea 0%, #00c2a0 100%);
  color: #ffffff;
  padding: 0 16px 0 18px;
  font-weight: 900;
  font-size: 16px;
}

.ticket-place-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.ticket-arrow {
  font-size: 34px;
  line-height: 1;
}

.auto-odds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 18px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  width: 100%;
  border-radius: 999px;
  background: #3d3d40;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #f7f7f7;
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: linear-gradient(90deg, #6555ea, #00c2a0);
}

.switch input:checked + span::after {
  transform: translateX(14px);
}

.performance-panel {
  margin-top: 0;
}

.score-grid {
  display: grid;
  gap: 10px;
}

.score-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.score-card span {
  font-weight: 700;
}

.score-card strong {
  color: var(--blue);
}

.score-card small {
  color: var(--green-dark);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  border-left: 3px solid var(--line);
  padding: 5px 0 5px 12px;
  color: var(--muted);
}

.timeline-item.done {
  border-color: var(--green);
  color: var(--ink);
}

.timeline-item.active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  border-radius: 8px;
  background: #0d1b2f;
  color: #ffffff;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .right-rail {
    position: static;
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  .ticket-panel {
    height: auto;
    min-height: 680px;
  }
}

@media (max-width: 840px) {
  .main {
    padding: 16px;
  }

  .topbar {
    display: grid;
  }

  .account-card {
    width: 100%;
  }


  .prediction-row,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .market-row {
    grid-template-columns: 1fr;
  }

  .fixture-top {
    display: grid;
  }

  .fixture-time {
    text-align: left;
  }
}

.odds-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  background: #eef2f7;
}

.odds-btn:disabled:hover {
  border-color: var(--line);
  background: #eef2f7;
}

.verification-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fff8e5;
  color: #6f4b00;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.verification-notice strong,
.verification-notice span {
  display: block;
}

.verification-notice span {
  margin-top: 4px;
  color: #806028;
  font-size: 13px;
}

.verification-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.compact-btn {
  height: 36px;
}

@media (max-width: 840px) {
  .verification-notice {
    display: grid;
  }

  .verification-actions {
    flex-wrap: wrap;
  }
}

.nav-list a.nav-item {
  display: block;
  text-decoration: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 23, 48, 0.48);
  overflow-y: auto;
}

.account-modal {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(12, 23, 48, 0.28);
  padding: 22px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-head p {
  margin-top: 6px;
  color: var(--muted);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.auth-mode-tab {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-mode-tab.active {
  border-color: #12e6a8;
  background: rgba(18, 230, 168, 0.15);
  color: #effff9;
}

.icon-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.profile-preview {
  position: relative;
  height: 150px;
  margin: 18px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
  overflow: visible;
}

.cover-preview {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #20b99a, #2f836f);
  background-size: cover;
  background-position: center;
}

.avatar-preview {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  width: 108px;
  height: 108px;
  border: 5px solid #ffffff;
  border-radius: 999px;
  background: #c8c6c7;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.avatar-preview::after {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 24px auto;
  border-radius: 999px 999px 60% 60%;
  background: rgba(255,255,255,0.78);
}

.avatar-preview.has-image::after {
  display: none;
}

.avatar-upload-btn {
  position: absolute;
  left: calc(50% + 34px);
  bottom: -36px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 2px solid #102131;
  border-radius: 50%;
  background: var(--green);
  color: #06150f;
  font-size: 22px;
  font-weight: 900;
  line-height: 24px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.avatar-upload-btn:hover {
  background: #32efb0;
}

#avatarFile {
  display: none;
}

.password-change-section {
  margin-top: 6px;
}

.form-section-title {
  margin: 18px 0 10px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.password-grid {
  gap: 10px;
}

.form-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#logoutBtn.hidden {
  display: none;
}

@media (max-width: 720px) {
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    display: grid;
  }
}

/* Fixed workspace shell: the center feed scrolls independently from the rails. */
:root {
  --topbar-height: 78px;
  --left-rail-width: 260px;
  --right-rail-width: 360px;
}

body {
  overflow-x: hidden;
  background: #f4f6fa;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  width: var(--left-rail-width);
  overflow-y: auto;
  padding: 24px 18px;
  border-right: 1px solid #21324b;
}

.nav-list {
  margin-top: 0;
}

.main {
  min-height: 100vh;
  margin-left: var(--left-rail-width);
  padding: calc(var(--topbar-height) + 28px) calc(var(--right-rail-width) + 40px) 32px 24px;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: var(--left-rail-width) minmax(0, 1fr) auto;
  align-items: center;
  height: var(--topbar-height);
  margin: 0;
  padding: 9px 20px 9px 16px;
  border-bottom: 1px solid #dbe3ed;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 18px rgba(16, 29, 57, 0.06);
  backdrop-filter: blur(12px);
}

.topbar-brand,
.topbar-center,
.account-card,
.account-identity,
.account-balance {
  display: flex;
  align-items: center;
}

.topbar-brand {
  gap: 10px;
  min-width: 0;
}

.topbar-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid #d5dce7;
  border-radius: 12px;
  object-fit: cover;
  background: #07131f;
}

.topbar-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-brand-copy strong {
  color: #0c1730;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.topbar-brand-copy span,
.topbar-product-subtitle,
.account-label,
.account-balance span {
  color: #77849a;
  font-size: 11px;
}

.topbar-brand-copy span {
  white-space: nowrap;
}

.topbar-center {
  justify-self: center;
  gap: 12px;
}

.topbar-product {
  color: #0c1730;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.topbar-product-subtitle {
  padding-left: 12px;
  border-left: 1px solid #dce3ee;
}

.account-card {
  justify-content: flex-end;
  gap: 18px;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-identity {
  gap: 9px;
  min-width: 126px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #b7c6dc;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b3153, #0a9d77);
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.account-avatar.has-image {
  color: transparent;
}

.account-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-copy strong {
  max-width: 132px;
  overflow: hidden;
  color: #0c1730;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-balance {
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  min-width: 88px;
}

.account-balance strong {
  color: #b98112;
  font-size: 18px;
  line-height: 1;
}

.account-action {
  min-height: 36px;
  border: 1px solid #d1dbe8;
  border-radius: 7px;
  background: #ffffff;
  color: #0c1730;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.account-action:hover {
  border-color: #08966d;
  color: #067756;
}

.topbar h1,
.topbar > p {
  display: none;
}

.control-bar {
  margin-bottom: 20px;
}

.content-grid {
  display: block;
}

.fixture-section {
  width: 100%;
}

.right-rail {
  position: fixed;
  z-index: 20;
  top: calc(var(--topbar-height) + 16px);
  right: 16px;
  width: var(--right-rail-width);
  max-height: calc(100vh - var(--topbar-height) - 32px);
  overflow-y: auto;
}

.ticket-panel {
  height: min(760px, calc(100vh - var(--topbar-height) - 32px));
}

@media (max-width: 1180px) {
  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 16px;
  }

  .topbar {
    position: static;
    display: flex;
    height: auto;
    margin: -16px -16px 20px;
    padding: 10px 16px;
  }

  .topbar-center {
    display: none;
  }

  .account-card {
    margin-left: auto;
  }

  .content-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .right-rail {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .ticket-panel {
    height: auto;
    min-height: 680px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-brand-copy span,
  .account-action {
    display: none;
  }

  .topbar-logo {
    width: 46px;
    height: 46px;
  }

  .account-card {
    gap: 10px;
  }

  .account-identity {
    min-width: 0;
  }

  .account-balance {
    min-width: 74px;
  }

  .account-balance strong {
    font-size: 16px;
  }
}

/* Dark sportsbook v2: a single visual system built around the BETPRO teal. */
:root {
  --bg: #08111d;
  --panel: #101d2b;
  --panel-raised: #142536;
  --panel-soft: #0d1926;
  --ink: #f1f7fb;
  --muted: #8ea2b7;
  --line: #22384c;
  --green: #19d3ad;
  --green-dark: #0ba486;
  --gold: #ffc857;
  --blue: #6ab8ff;
  --red: #ff6d72;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body {
  background: var(--bg);
  color: var(--ink);
}

.sidebar {
  background: #091624;
  border-right-color: #1d3549;
  color: #dceaf4;
}

.nav-list {
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #91a7bb;
  font-size: 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -19px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  color: #6f899e;
  font-size: 17px;
  line-height: 1;
}

.nav-item.active,
.nav-item:hover {
  border-color: #20435a;
  background: #122b3e;
  color: #ffffff;
  transform: translateX(2px);
}

.nav-item.active::before {
  background: var(--green);
  box-shadow: 0 0 14px rgba(25, 211, 173, 0.6);
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  color: var(--green);
}

.main {
  background: var(--bg);
}

.topbar {
  border-bottom-color: #1e3549;
  background: rgba(8, 17, 29, 0.96);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.topbar-brand-copy strong,
.topbar-product,
.account-copy strong {
  color: #f4fbff;
}

.topbar-brand-copy span,
.topbar-product-subtitle,
.account-label,
.account-balance span {
  color: #8198ad;
}

.topbar-product-subtitle {
  border-left-color: #294257;
}

.topbar-logo {
  border-color: #28526b;
  box-shadow: 0 0 20px rgba(25, 211, 173, 0.12);
}

.account-avatar {
  border-color: #2d5b70;
  background: linear-gradient(135deg, #173b54, #087f70);
}

.account-balance strong {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.account-action,
.ghost-btn {
  border-color: #2a455b;
  background: #102131;
  color: #d7e7f2;
}

.account-action:hover,
.ghost-btn:hover {
  border-color: var(--green);
  background: #143846;
  color: #ffffff;
}

.control-bar,
.fixture-section,
.panel,
.account-card {
  border-color: #20384c;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.control-bar {
  background: #0e1b29;
}

.field label,
.stake-row label,
.section-heading p {
  color: #8ea2b7;
}

select,
input {
  border-color: #294359;
  background: #0b1825;
  color: #eaf4fa;
}

select:focus,
input:focus {
  border-color: var(--green);
  outline: 2px solid rgba(25, 211, 173, 0.14);
}

.status-pill {
  border: 1px solid #1d5c58;
  background: #103a3b;
  color: #5ee6c5;
}

.fixture-section,
.panel {
  background: #0e1b29;
}

.fixture-card {
  border-color: #244159;
  border-radius: 12px;
  background: var(--panel-raised);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.fixture-card:hover {
  border-color: #2e6a78;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(25, 211, 173, 0.08);
}

.closed-fixture {
  background: #101c29;
}

.fixture-top {
  border-bottom-color: #20394d;
  padding: 15px 17px 12px;
}

.fixture-league {
  color: #8ea7ba;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fixture-context {
  margin-top: 5px;
  color: #dceaf2;
  font-size: 12px;
  font-weight: 800;
}

.fixture-time {
  color: #9ab0c0;
}

.fixture-time span {
  color: #6f899e;
  font-size: 11px;
}

.fixture-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 20px 20px;
  border-bottom: 1px solid #20394d;
}

.team-block {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.team-block strong {
  overflow-wrap: anywhere;
  color: #f3f8fb;
  font-size: 18px;
  line-height: 1.2;
}

.team-away {
  justify-content: flex-end;
  text-align: right;
}

.team-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid #2b6970;
  border-radius: 12px;
  background: #123b45;
  color: #62ead0;
  font-size: 16px;
  font-weight: 900;
}

.team-away .team-badge {
  order: 2;
  border-color: #4b5870;
  background: #252d42;
  color: #a9c5ff;
}

.fixture-vs {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #2a455b;
  border-radius: 50%;
  background: #0b1825;
  color: #7d96aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.prediction-row {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-bottom-color: #20394d;
  background: #102131;
}

.prediction-box {
  min-height: 82px;
  border-right-color: #20394d;
  padding: 14px 17px;
}

.prediction-box:last-child {
  border-right: 0;
}

.prediction-box > span,
.prediction-label {
  color: #87a0b3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prediction-box strong {
  margin-top: 7px;
  color: #edf8fb;
  font-size: 14px;
}

.prediction-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  border-radius: 5px;
  background: var(--green);
  color: #05221e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.ai-prediction strong {
  color: #65e8ca;
}

.ai-meter {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #203b4b;
}

.ai-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  box-shadow: 0 0 12px rgba(25, 211, 173, 0.5);
}

.ai-prediction small {
  display: block;
  margin-top: 5px;
  color: #7191a2;
  font-size: 10px;
}

.markets {
  gap: 8px;
  padding: 14px 17px 17px;
}

.market-row {
  grid-template-columns: 76px repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.market-name {
  color: #88a4b8;
  font-size: 12px;
}

.odds-btn {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-color: #2a455b;
  border-radius: 8px;
  background: #0c1b29;
  color: #e6f1f6;
  padding: 0 11px;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.odds-btn:hover {
  border-color: #36bca5;
  background: #12353e;
  transform: translateY(-1px);
}

.odds-btn.selected {
  border-color: var(--green);
  background: var(--green);
  color: #06221d;
  box-shadow: 0 0 18px rgba(25, 211, 173, 0.26);
}

.odds-btn span {
  overflow: hidden;
  color: #8fa8b9;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-btn strong {
  flex: 0 0 auto;
  color: #f2fbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}

.odds-btn.selected span,
.odds-btn.selected strong {
  color: #06221d;
}

.odds-btn:disabled,
.odds-btn:disabled:hover {
  border-color: #263b4c;
  background: #0b1723;
  color: #627b8d;
  opacity: 0.72;
  transform: none;
}

.odds-btn:disabled span,
.odds-btn:disabled strong {
  color: #627b8d;
}

.empty-state {
  border-color: #294358;
  background: #0e1b29;
  color: #8ea5b7;
}

.ticket-panel {
  border: 1px solid #234256;
  border-radius: 12px;
  background: #0b1723;
  box-shadow: var(--shadow);
}

.ticket-tabs {
  border-color: #2a455b;
}

.ticket-tab {
  color: #7892a5;
}

.ticket-tab.active {
  border-color: var(--green);
  background: #123a3f;
  color: #6eefd0;
}

.ticket-empty,
.ticket-clear-row,
.ticket-league,
.ticket-date,
.ticket-subtitle,
.ticket-limits,
.ticket-money-grid span,
.ticket-input-grid span,
.auto-odds-row {
  color: #7892a5;
}

.ticket-clear {
  color: #9fb4c3;
}

.ticket-clear:hover {
  color: var(--green);
}

.ticket-bet-card {
  border-bottom-color: #1f3547;
}

.ticket-remove {
  color: #718b9d;
}

.ticket-remove:hover {
  color: var(--red);
}

.ticket-title-row strong:first-child,
.ticket-title-row strong:last-child,
.ticket-money-grid strong,
.ticket-input-grid output {
  color: #f2fbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ticket-title-row strong:first-child {
  font-family: inherit;
}

.ticket-input-grid input,
.ticket-input-grid output {
  min-height: 44px;
  border-color: #2b485d;
  border-radius: 8px;
  background: #102334;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
}

.ticket-input-grid input:focus {
  border-color: var(--green);
}

.ticket-detail-grid div {
  border-color: #254055;
  background: #0e1e2c;
}

.ticket-detail-grid span,
.ticket-detail-line {
  color: #7892a5;
}

.ticket-detail-grid strong {
  color: #eaf5f8;
}

.ticket-footer {
  border-top-color: #1f3547;
  background: #0a1622;
}

.ticket-summary-row {
  color: #eaf5f8;
}

.ticket-place-btn {
  min-height: 54px;
  border-radius: 10px;
  background: var(--green);
  color: #06221d;
  box-shadow: 0 10px 22px rgba(25, 211, 173, 0.18);
}

.ticket-place-btn:hover:not(:disabled) {
  background: #55e7c7;
  box-shadow: 0 12px 26px rgba(25, 211, 173, 0.3);
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  background: #06221d;
}

.performance-panel {
  background: #0e1b29;
}

.score-card {
  border-color: #244159;
  background: #102131;
}

.score-card span {
  color: #e2eef4;
}

.score-card strong {
  color: #65e8ca;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.score-card small {
  color: #82b6a8;
}

.verification-notice {
  border-color: #80612b;
  background: #2c2414;
  color: #ffd77b;
  box-shadow: var(--shadow);
}

.verification-notice span {
  color: #d2b56d;
}

.ghost-link {
  border-color: #53616d;
  background: #18242d;
  color: #e3eef2;
}

.modal-backdrop {
  background: rgba(3, 10, 17, 0.78);
}

.account-modal {
  border-color: #294359;
  background: #102131;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.modal-head p,
.form-help {
  color: #8ea5b7;
}

.icon-close {
  border-color: #2b4559;
  background: #0b1825;
  color: #d7e7ef;
}

.profile-preview {
  border-color: #294359;
  background: #0b1825;
}

.avatar-preview {
  border-color: #102131;
}

.form-section-title {
  color: #e8f2f6;
}

.modal-actions {
  border-top-color: #294359;
}

.primary-btn {
  border-color: var(--green);
  background: var(--green);
  color: #06221d;
}

.primary-btn:hover {
  background: #55e7c7;
}

.toast {
  border: 1px solid #2d5862;
  background: #102b36;
  color: #e7fffa;
  box-shadow: var(--shadow);
}

@media (max-width: 840px) {
  .fixture-matchup {
    gap: 10px;
    padding: 18px 14px;
  }

  .team-block strong {
    font-size: 15px;
  }

  .team-badge {
    width: 34px;
    height: 34px;
  }

  .prediction-row {
    grid-template-columns: 1fr;
  }

  .prediction-box {
    border-right: 0;
    border-bottom: 1px solid #20394d;
  }

  .prediction-box:last-child {
    border-bottom: 0;
  }

  .market-row {
    grid-template-columns: 1fr;
  }

  .market-name {
    padding-top: 4px;
  }
}

/* Reference layout v3: dense black sportsbook workspace. */
:root {
  --topbar-height: 74px;
  --left-rail-width: 292px;
  --right-rail-width: 292px;
  --bg: #0b0b0c;
  --panel: #111113;
  --panel-raised: #171719;
  --panel-soft: #141416;
  --ink: #f2f2f4;
  --muted: #77777c;
  --line: #29292c;
  --green: #00d98b;
  --green-dark: #00ad71;
  --gold: #f5c451;
  --blue: #86a7ff;
  --red: #ff6c70;
  --shadow: none;
}

html,
body {
  background: #0b0b0c;
}

body {
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

.app-shell {
  background: #0b0b0c;
}

.sidebar {
  top: var(--topbar-height);
  width: var(--left-rail-width);
  padding: 27px 14px 24px;
  border-right: 1px solid #252528;
  background: #111113;
}

.nav-list {
  gap: 2px;
}

.nav-item {
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  padding: 0 16px;
  color: #b3b3b7;
  font-size: 14px;
  font-weight: 600;
  transform: none;
}

.nav-item::before {
  display: none;
}

.nav-item:hover,
.nav-item.active {
  border: 0;
  background: #252527;
  color: #ffffff;
  transform: none;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--green);
}

.nav-icon {
  width: 20px;
  color: #8f8f94;
  font-size: 15px;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  color: var(--green);
}

.main {
  min-height: 100vh;
  margin-left: var(--left-rail-width);
  padding: calc(var(--topbar-height) + 22px) calc(var(--right-rail-width) + 28px) 32px 24px;
  background: #0b0b0c;
}

.topbar {
  grid-template-columns: var(--left-rail-width) minmax(0, 1fr) auto;
  height: var(--topbar-height);
  padding: 0 18px;
  border-bottom: 1px solid #252528;
  background: #0b0b0c;
  box-shadow: none;
}

.topbar-brand {
  gap: 9px;
}

.topbar-logo {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.topbar-brand-copy {
  gap: 0;
}

.topbar-brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.03em;
}

.topbar-brand-copy span {
  color: #68686c;
  font-size: 10px;
}

.topbar-center {
  justify-self: start;
  gap: 16px;
  padding-left: 30px;
}

.topbar-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid #5a5a5e;
  border-radius: 20px;
  background: #171719;
  color: #f5f5f6;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 800;
}

.topbar-nav-item span {
  color: var(--green);
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: #303034;
}

.topbar-product {
  color: #eeeeef;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.topbar-product-subtitle {
  padding-left: 0;
  border-left: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.account-card {
  gap: 14px;
  background: transparent;
}

.account-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #4c4c50;
  background: #27272a;
}

.account-label,
.account-balance span {
  color: #77777c;
}

.account-copy strong {
  color: #f4f4f5;
  font-size: 12px;
}

.account-balance strong {
  color: #f4c954;
  font-size: 16px;
}

.account-action {
  min-height: 34px;
  border-color: #3a3a3d;
  border-radius: 18px;
  background: #171719;
  color: #cccccf;
  font-size: 11px;
}

.account-action:hover,
.ghost-btn:hover {
  border-color: #707075;
  background: #262629;
  color: #ffffff;
}

.control-bar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 15px;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 1px solid #252528;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.control-bar .field {
  min-width: 130px;
}

.control-bar .search-field {
  flex: 1;
}

.field label {
  color: #69696e;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

select,
input {
  height: 34px;
  border-color: #343438;
  border-radius: 5px;
  background: #161618;
  color: #eeeeef;
  font-size: 12px;
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  background: #171719;
  color: #f4f4f5;
}

select option:checked,
select option:hover {
  background: #242428;
  color: #00d98b;
}

.date-input-wrap {
  position: relative;
}

#dateFilter {
  width: 100%;
  color: #ffffff;
  color-scheme: dark;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18M5 4h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

#dateFilter:hover,
#dateFilter:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300d98b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18M5 4h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
}

#dateFilter::-webkit-calendar-picker-indicator {
  width: 34px;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.01;
}

#dateFilter::-webkit-datetime-edit,
#dateFilter::-webkit-datetime-edit-fields-wrapper,
#dateFilter::-webkit-datetime-edit-text,
#dateFilter::-webkit-datetime-edit-month-field,
#dateFilter::-webkit-datetime-edit-day-field,
#dateFilter::-webkit-datetime-edit-year-field {
  color: #ffffff;
}

#dateFilter.date-empty,
#dateFilter.date-empty::-webkit-datetime-edit,
#dateFilter.date-empty::-webkit-datetime-edit-fields-wrapper,
#dateFilter.date-empty::-webkit-datetime-edit-text,
#dateFilter.date-empty::-webkit-datetime-edit-month-field,
#dateFilter.date-empty::-webkit-datetime-edit-day-field,
#dateFilter.date-empty::-webkit-datetime-edit-year-field {
  color: transparent;
}

.date-placeholder {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #eeeeef;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.date-input-wrap.has-date .date-placeholder {
  display: none;
}

.date-picker-popup {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  width: 238px;
  padding: 10px;
  border: 1px solid #343438;
  border-radius: 7px;
  background: #101012;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.date-picker-head,
.date-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.date-picker-head strong {
  flex: 1;
  color: #eeeeef;
  font-size: 12px;
  text-align: center;
}

.date-picker-nav,
.date-picker-actions button,
.date-picker-day {
  border: 1px solid #2f2f33;
  border-radius: 5px;
  background: #171719;
  color: #eeeeef;
  cursor: pointer;
}

.date-picker-nav {
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-picker-weekdays {
  margin: 10px 0 6px;
}

.date-picker-weekdays span {
  color: #77777d;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.date-picker-day {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 11px;
}

.date-picker-day.muted {
  color: #606066;
}

.date-picker-day.today {
  border-color: #00d98b;
}

.date-picker-day.selected,
.date-picker-day:hover,
.date-picker-nav:hover,
.date-picker-actions button:hover {
  border-color: #00d98b;
  background: #063d2d;
  color: #ffffff;
}

.date-picker-actions {
  margin-top: 10px;
}

.date-picker-actions button {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.ghost-btn {
  height: 34px;
  border-color: #3a3a3d;
  border-radius: 5px;
  background: #171719;
  color: #bbbbbf;
  font-size: 12px;
}

.content-grid {
  display: block;
}

.fixture-section,
.panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-heading {
  align-items: center;
  margin-bottom: 9px;
}

.section-heading h2 {
  color: #f0f0f2;
  font-size: 16px;
}

.section-heading p {
  margin-top: 3px;
  color: #707075;
  font-size: 11px;
}

.status-pill {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6b6b70;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
}

.fixture-list {
  gap: 0;
}

.fixture-card {
  display: block;
  border: 0;
  border-bottom: 1px solid #28282b;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fixture-card:hover {
  border-color: #38383c;
  background: #0f0f11;
  box-shadow: none;
}

.fixture-top {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 10px 6px 20px;
  border-bottom: 0;
}

.fixture-league {
  margin-bottom: 3px;
  color: #68686d;
  font-size: 10px;
  text-transform: none;
}

.fixture-context {
  margin-top: 0;
  color: #bdbdc1;
  font-size: 11px;
  font-weight: 600;
}

.fixture-time {
  color: #8e8e93;
  font-size: 11px;
}

.fixture-time span {
  color: #606066;
  font-size: 10px;
}

.fixture-row-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(330px, 1.9fr) 118px;
  gap: 17px;
  align-items: center;
  min-height: 134px;
  padding: 0 10px 15px 20px;
}

.fixture-matchup {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 6px;
  padding: 0;
  border-bottom: 0;
}

.team-block,
.team-away {
  justify-content: flex-start;
  gap: 9px;
  text-align: left;
}

.team-away .team-badge {
  order: 0;
}

.team-block strong {
  color: #f3f3f5;
  font-size: 14px;
  font-weight: 600;
}

.team-badge {
  width: 26px;
  height: 26px;
  border: 1px solid #454549;
  border-radius: 50%;
  background: #27272a;
  color: #cbcbcf;
  font-size: 11px;
}

.team-away .team-badge {
  border-color: #454549;
  background: #27272a;
  color: #cbcbcf;
}

.fixture-vs {
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f5f64;
  font-size: 9px;
  text-align: left;
  padding-left: 35px;
}

.markets-column {
  min-width: 0;
}

.markets-header {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 7px;
  margin-bottom: 6px;
  color: #616166;
  font-size: 10px;
  text-transform: uppercase;
}

.markets-header span:last-child {
  text-align: center;
}

.markets {
  gap: 6px;
  padding: 0;
}

.market-row {
  grid-template-columns: 76px repeat(3, minmax(70px, 1fr));
  gap: 7px;
}

.market-name {
  align-self: center;
  color: #747479;
  font-size: 10px;
  font-weight: 700;
}

.odds-btn {
  min-height: 34px;
  border: 1px solid #3b3b3f;
  border-radius: 18px;
  background: #252527;
  padding: 0 11px;
  color: #f0f0f1;
  box-shadow: none;
  transform: none;
}

.odds-btn:hover {
  border-color: #707075;
  background: #303034;
  transform: none;
  box-shadow: none;
}

.odds-btn.selected {
  border-color: var(--green);
  background: #0c634a;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 217, 139, 0.14);
}

.odds-btn span {
  color: #f0f0f2;
  font-size: 11px;
}

.odds-btn strong {
  color: var(--green);
  font-size: 13px;
}

.odds-btn.selected span,
.odds-btn.selected strong {
  color: #ffffff;
}

.odds-btn:disabled,
.odds-btn:disabled:hover {
  border-color: #303034;
  background: #1b1b1d;
  opacity: 0.6;
}

.odds-btn:disabled span,
.odds-btn:disabled strong {
  color: #69696e;
}

.fixture-insight {
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 0;
  padding-left: 13px;
  border-left: 1px solid #27272a;
}

.fixture-insight .prediction-box {
  min-height: 0;
  padding: 0;
  border: 0;
}

.fixture-insight .prediction-box > span,
.fixture-insight .prediction-label {
  color: #69696e;
  font-size: 9px;
}

.fixture-insight .prediction-box strong {
  margin-top: 4px;
  overflow: hidden;
  color: #dedee1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-insight .ai-prediction strong {
  color: var(--green);
}

.ai-badge {
  min-width: 22px;
  height: 16px;
  border-radius: 3px;
  background: var(--green);
  color: #06150f;
  font-size: 9px;
}

.ai-meter {
  height: 3px;
  margin-top: 6px;
  background: #303034;
}

.ai-meter i {
  background: var(--green);
  box-shadow: none;
}

.fixture-insight .ai-prediction small {
  margin-top: 4px;
  color: #68686d;
  font-size: 9px;
}

.fixture-insight-countdown {
  align-content: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.fixture-countdown-label {
  color: #77777d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.fixture-insight .fixture-countdown-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 28px;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.right-rail {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  bottom: 0;
  width: var(--right-rail-width);
  max-height: none;
  gap: 0;
  overflow-y: auto;
  border-left: 1px solid #252528;
  background: #111113;
}

.ticket-panel {
  height: calc(100vh - var(--topbar-height) - 92px);
  min-height: 550px;
  border: 0;
  border-radius: 0;
  background: #111113;
  box-shadow: none;
}

.ticket-tabs {
  margin: 18px 14px 14px;
  border: 1px solid #515156;
  border-radius: 22px;
}

.ticket-tab {
  min-height: 42px;
  color: #737378;
  font-size: 12px;
}

.ticket-tab.active {
  border-color: #eeeeef;
  background: #252527;
  color: #ffffff;
}

.ticket-scroll {
  padding: 0 14px 16px;
}

.ticket-empty {
  min-height: 230px;
  color: #77777c;
  font-size: 12px;
}

.ticket-clear-row {
  min-height: 24px;
  color: #77777c;
}

.ticket-bet-card {
  padding: 16px 2px;
  border-bottom-color: #29292c;
}

.ticket-title-row strong:first-child {
  color: #f2f2f4;
  font-size: 13px;
}

.ticket-title-row strong:last-child {
  color: var(--green);
  font-size: 14px;
}

.ticket-input-grid {
  gap: 8px;
}

.ticket-input-grid input,
.ticket-input-grid output {
  min-height: 38px;
  border-color: #3b3b3f;
  border-radius: 6px;
  background: #252527;
  font-size: 14px;
}

.ticket-footer {
  gap: 10px;
  padding: 13px 14px 17px;
  border-top-color: #29292c;
  background: #111113;
}

.ticket-summary-row {
  min-height: 26px;
  color: #bcbcc0;
  font-size: 12px;
}

.ticket-place-btn {
  min-height: 44px;
  border-radius: 22px;
  background: #272729;
  color: #77777c;
  box-shadow: none;
  font-size: 13px;
}

.ticket-place-btn:not(:disabled) {
  background: var(--green);
  color: #07140f;
}

.ticket-place-btn:hover:not(:disabled) {
  background: #36e8a5;
  box-shadow: none;
}

.performance-panel {
  margin: 0 14px 18px;
  padding: 14px 0 0;
  border-top: 1px solid #29292c;
}

.score-grid {
  gap: 6px;
}

.score-card {
  grid-template-columns: 1fr auto auto;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid #222225;
  border-radius: 0;
  background: transparent;
  padding: 7px 0;
}

.score-card span {
  color: #bcbcc0;
  font-size: 11px;
}

.score-card strong {
  color: var(--green);
  font-size: 12px;
}

.score-card small {
  color: #77777c;
  font-size: 10px;
}

.empty-state {
  min-height: 180px;
  border-color: #323236;
  border-radius: 4px;
  background: #111113;
  color: #818186;
}

@media (max-width: 1180px) {
  .main {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 18px) 16px 24px;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    position: fixed;
    display: flex;
    height: var(--topbar-height);
    margin: 0;
    padding: 0 16px;
  }

  .topbar-center {
    display: flex;
    margin-left: 20px;
    padding-left: 0;
  }

  .right-rail {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    border-left: 0;
  }

  .ticket-panel {
    height: auto;
    min-height: 620px;
  }

  .performance-panel {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 840px) {
  .topbar-center {
    display: none;
  }

  .account-card {
    margin-left: auto;
  }

  .control-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .control-bar .field,
  .control-bar .search-field {
    min-width: 0;
  }

  .control-bar .ghost-btn {
    width: 100%;
  }

  .fixture-top {
    padding-left: 8px;
  }

  .fixture-row-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 8px 16px;
  }

  .fixture-matchup {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
  }

  .team-away {
    justify-content: flex-end;
    text-align: right;
  }

  .team-away .team-badge {
    order: 2;
  }

  .fixture-vs {
    padding-left: 0;
    text-align: center;
  }

  .markets-header {
    display: none;
  }

  .market-row {
    grid-template-columns: 66px repeat(3, minmax(0, 1fr));
  }

  .fixture-insight {
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #27272a;
    border-left: 0;
    padding: 10px 0 0;
  }
}

@media (max-width: 560px) {
  .topbar-brand-copy,
  .account-action {
    display: none;
  }

  .account-card {
    gap: 10px;
  }


  .fixture-matchup {
    grid-template-columns: 1fr;
  }

  .team-away,
  .team-home {
    justify-content: flex-start;
    text-align: left;
  }

  .team-away .team-badge {
    order: 0;
  }

  .fixture-vs {
    display: none;
  }

  .market-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .market-name {
    padding-top: 6px;
  }
}

/* The right betting rail uses one mouse-scroll surface instead of nested scrolling. */
.right-rail {
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.right-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ticket-panel {
  height: auto;
  min-height: 0;
  display: block;
}

.ticket-scroll {
  max-height: none;
  overflow: visible;
  padding-bottom: 16px;
}

@media (max-width: 1180px) {
  .right-rail {
    overflow: visible;
  }

  .ticket-scroll {
    overflow: visible;
  }
}

/* Make the betting area an explicit desktop scroll container. */
@media (min-width: 1181px) {
  .right-rail {
    position: fixed;
    top: var(--topbar-height);
    right: 0;
    bottom: auto;
    height: calc(100vh - var(--topbar-height));
    max-height: calc(100vh - var(--topbar-height));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ticket-panel {
    min-height: 0;
    height: auto;
  }
}


/* Keep the bet action visible while only the selection list scrolls. */
@media (min-width: 1181px) {
  .right-rail {
    position: fixed;
    top: var(--topbar-height);
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--topbar-height));
    max-height: calc(100vh - var(--topbar-height));
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .ticket-panel {
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .ticket-scroll {
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ticket-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .performance-panel {
    min-height: 0;
    overflow: auto;
  }
}


.balance-warning {
  border: 1px solid #74434a;
  border-radius: 6px;
  background: #2d171b;
  color: #ff9a9e;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
}

.ticket-place-btn.balance-short {
  border: 1px solid #74434a;
  background: #3a2024;
  color: #ff9a9e;
}

.ticket-place-btn.balance-short:hover:not(:disabled) {
  background: #4a272d;
  color: #ffb2b5;
}


/* Keep filters fixed below the unchanged top bar on desktop. */
@media (min-width: 1181px) {
  .control-bar {
    position: fixed;
    z-index: 35;
    top: var(--topbar-height);
    right: var(--right-rail-width);
    left: var(--left-rail-width);
    height: 76px;
    margin: 0;
    padding: 17px 20px 12px;
    border-bottom: 1px solid #252528;
    background: #0b0b0c;
  }

  .main {
    padding-top: calc(var(--topbar-height) + 76px + 22px);
  }
}

@media (max-width: 1180px) {
  .control-bar {
    position: static;
    height: auto;
  }
}


/* Countdown replaces the removed fixture status copy. */
.fixture-top {
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 6px;
}

.fixture-countdown {
  color: #a6a6ab;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
}


.language-field {
  min-width: 116px;
}

@media (max-width: 840px) {
  .language-field {
    min-width: 0;
  }
}


/* Sidebar workspace pages */
.workspace-page {
  min-height: calc(100vh - var(--topbar-height) - 132px);
  color: #eeeeef;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #262629;
  margin-bottom: 14px;
}

.workspace-head h2 {
  color: #f4f4f5;
  font-size: 18px;
  line-height: 1.2;
}

.workspace-head p {
  margin-top: 5px;
  color: #77777d;
  font-size: 12px;
  line-height: 1.5;
}

.page-grid {
  display: grid;
  gap: 10px;
}

.asset-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.asset-card {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border: 1px solid #29292d;
  border-radius: 6px;
  background: #121214;
  padding: 14px;
}

.asset-card span,
.asset-section-head p,
.wallet-tx-row span,
.wallet-tx-balance {
  color: #78787e;
  font-size: 11px;
  line-height: 1.45;
}

.asset-card > span {
  font-weight: 800;
  text-transform: uppercase;
}

.asset-card strong {
  color: #f3f3f5;
  font-size: 18px;
  line-height: 1.2;
}

.asset-card.positive strong,
.wallet-tx-amount.positive {
  color: #36d399;
}

.asset-card.negative strong,
.wallet-tx-amount.negative {
  color: #ff6b6b;
}


.fund-request-panel {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #294359;
  border-radius: 8px;
  background: #102131;
}

.fund-request-form {
  display: grid;
  grid-template-columns: 120px 100px 120px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.fund-request-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.fund-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #294359;
  border-radius: 7px;
  background: #0b1825;
}

.fund-request-row span {
  display: block;
  color: #8ea5b7;
  font-size: 12px;
}

.wallet-ledger-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.asset-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 2px;
}

.asset-section-head h3 {
  margin: 0;
  color: #f2f2f4;
  font-size: 14px;
}

.asset-section-head p {
  margin-top: 4px;
}

.wallet-transaction-list {
  display: grid;
  gap: 8px;
}

.wallet-tx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #29292d;
  border-radius: 6px;
  background: #121214;
  padding: 12px 14px;
}

.wallet-tx-row strong {
  display: block;
  color: #f1f1f3;
  font-size: 13px;
  line-height: 1.35;
}

.wallet-tx-amount {
  font-weight: 900;
  white-space: nowrap;
}

.wallet-tx-balance {
  white-space: nowrap;
  text-align: right;
}

.ticket-detail-section-title {
  margin-top: 4px;
  color: #d7d7da;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-empty {
  grid-column: 1 / -1;
}

.page-grid .ticket-bet-card {
  border: 1px solid #29292d;
  background: #121214;
}

.info-grid,
.contact-grid,
.leaderboard-grid {
  display: grid;
  gap: 12px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.contact-grid > div,
.leaderboard-grid > div {
  border: 1px solid #29292d;
  border-radius: 6px;
  background: #121214;
  padding: 14px;
}

.info-card.wide {
  grid-column: 1 / -1;
}

.info-card span,
.contact-grid span {
  display: block;
  color: #78787e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-card strong,
.contact-grid strong {
  color: #f2f2f3;
  font-size: 18px;
  line-height: 1.25;
}

.info-card p {
  color: #c7c7cb;
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0 0;
}

.info-card .ghost-btn {
  width: auto;
  margin-top: 12px;
}

.referral-link-card {
  display: grid;
  gap: 8px;
}

.referral-link-text {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.5;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.data-actions .ghost-btn,
.data-actions .primary-btn {
  width: auto;
  min-width: 78px;
  height: 36px;
}

.data-export-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.data-export-form .field label {
  color: #85858b;
}

.data-policy {
  border: 1px solid #294359;
  border-radius: 6px;
  background: #0d1c2b;
  color: #a9bfd0;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.data-api-docs {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.data-api-doc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.data-api-doc-head h3,
.api-table-wrap h3,
.api-fields h3 {
  margin: 0;
  color: #f2f2f4;
  font-size: 14px;
}

.data-api-doc-head p {
  max-width: 620px;
  color: #85858b;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.api-doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.api-doc-card,
.api-table-wrap,
.api-fields {
  border: 1px solid #29292d;
  border-radius: 6px;
  background: #121214;
  padding: 12px;
}

.api-doc-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.api-doc-card span {
  color: #85858b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.api-doc-card strong {
  color: #f0fdf4;
  font-size: 14px;
}

.api-doc-card small,
.api-fields p {
  color: #9ea0a8;
  font-size: 12px;
  line-height: 1.5;
}

.api-endpoint,
.api-table code,
.api-fields code {
  border: 1px solid #303036;
  border-radius: 5px;
  background: #1c1c20;
  color: #70e0a7;
  padding: 2px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.api-endpoint {
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px;
}

.api-table-wrap {
  overflow-x: auto;
}

.api-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  margin-top: 8px;
}

.api-table th,
.api-table td {
  padding: 9px 10px;
  border-top: 1px solid #242428;
  color: #d8d8dc;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.api-table th {
  color: #8f8f96;
  font-size: 11px;
  text-transform: uppercase;
}

.api-fields p {
  margin-top: 8px;
}

.data-token-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #294359;
  border-radius: 6px;
  background: #0e1824;
  padding: 12px;
  margin-bottom: 12px;
}

.data-token-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.data-token-head h3 {
  margin: 0;
  color: #f2f2f4;
  font-size: 14px;
}

.data-token-head p,
.data-token-box span {
  margin-top: 5px;
  color: #8fa3b5;
  font-size: 12px;
  line-height: 1.5;
}

.data-token-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.data-token-actions .primary-btn,
.data-token-actions .ghost-btn {
  width: auto;
  min-width: 72px;
  height: 34px;
}

.data-token-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.data-token-box {
  display: grid;
  gap: 8px;
}

.data-token-box code {
  display: block;
  min-height: 38px;
  overflow-x: auto;
  border: 1px solid #303849;
  border-radius: 5px;
  background: #0a1018;
  color: #8cb7ff;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.data-token-box code.revealed {
  color: #70e0a7;
}

.data-export-preview {
  min-height: 64px;
  border: 1px solid #29292d;
  border-radius: 6px;
  background: #121214;
  overflow: hidden;
}

.data-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #29292d;
}

.data-preview-head strong {
  color: #36d399;
  font-size: 14px;
}

.data-preview-head span {
  max-width: 560px;
  color: #85858b;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.data-preview-table-wrap {
  overflow-x: auto;
}

.data-preview-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-preview-table th,
.data-preview-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #242428;
  color: #e8e8eb;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.data-preview-table th {
  color: #8f8f96;
  font-size: 11px;
  text-transform: uppercase;
}

.data-preview-table td span {
  display: block;
  color: #9ea0a8;
  margin-top: 3px;
}

.leaderboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leaderboard-grid h3 {
  margin: 0 0 12px;
  color: #f1f1f3;
  font-size: 14px;
}

.leader-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-top: 1px solid #252528;
  color: #bbbbbf;
  font-size: 12px;
}

.leader-row:first-child {
  border-top: 0;
}

.leader-row > span {
  color: #717178;
  font-weight: 800;
}

.leader-row strong {
  min-width: 0;
  overflow: hidden;
  color: #f4f4f5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-row em {
  color: #b9d9c8;
  font-style: normal;
  white-space: nowrap;
}

.leader-row small {
  color: #77777d;
  white-space: nowrap;
}

input[type="file"] {
  height: auto;
  min-height: 34px;
  padding: 7px 10px;
  color: #a9a9ae;
}

input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid #3a3a3d;
  border-radius: 5px;
  background: #202023;
  color: #eeeeef;
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .workspace-page {
    min-height: 0;
  }

  .info-grid,
  .contact-grid,
  .leaderboard-grid,
  .data-export-form,
  .api-doc-grid {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .data-preview-head,
  .data-api-doc-head,
  .data-token-head {
    align-items: stretch;
    flex-direction: column;
  }

  .data-token-actions {
    justify-content: flex-start;
  }

  .data-preview-head span,
  .data-api-doc-head p {
    max-width: none;
    text-align: left;
  }

  .asset-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-tx-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wallet-tx-balance {
    text-align: left;
  }

  .leader-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .leader-row em,
  .leader-row small {
    grid-column: 2;
  }
}


/* Settled bet outcome emphasis */
.ticket-bet-card.bet-won,
.page-grid .ticket-bet-card.bet-won {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(0, 215, 137, 0.08), transparent 42%);
}

.ticket-bet-card.bet-lost,
.page-grid .ticket-bet-card.bet-lost {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(255, 99, 99, 0.08), transparent 42%);
}

.ticket-bet-card.bet-won::before,
.ticket-bet-card.bet-lost::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 6px;
  width: 3px;
  border-radius: 999px;
}

.ticket-bet-card.bet-won::before {
  background: #00d789;
}

.ticket-bet-card.bet-lost::before {
  background: #ff6363;
}

.ticket-bet-card.bet-won .ticket-title-row strong,
.ticket-bet-card.bet-won .ticket-money-grid strong,
.ticket-bet-card.bet-won .ticket-detail-head button,
.ticket-bet-card.bet-won .ticket-subtitle {
  color: #00d789;
}

.ticket-bet-card.bet-lost .ticket-title-row strong,
.ticket-bet-card.bet-lost .ticket-money-grid strong,
.ticket-bet-card.bet-lost .ticket-detail-head button,
.ticket-bet-card.bet-lost .ticket-subtitle {
  color: #ff7777;
}

.ticket-bet-card.bet-won .ticket-detail-head button {
  border-color: rgba(0, 215, 137, 0.45);
  background: rgba(0, 215, 137, 0.12);
}

.ticket-bet-card.bet-lost .ticket-detail-head button {
  border-color: rgba(255, 99, 99, 0.45);
  background: rgba(255, 99, 99, 0.12);
}

/* Daily rewards */
.daily-reward-panel {
  color: #eeeeef;
}

.daily-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 12px;
}

.daily-today {
  display: grid;
  align-content: start;
  gap: 10px;
}

.daily-today small {
  color: #77777d;
  font-size: 12px;
}

.daily-claim-btn {
  width: max-content;
  margin-top: 4px;
}

.daily-claim-btn:disabled {
  border-color: #333338;
  background: #222225;
  color: #77777d;
  cursor: not-allowed;
}

.daily-rules {
  min-width: 0;
}

.daily-rule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 8px;
}

.daily-rule-item {
  display: grid;
  gap: 6px;
  min-height: 76px;
  border: 1px solid #29292d;
  border-radius: 6px;
  background: #171719;
  padding: 10px;
}

.daily-rule-item span {
  margin: 0;
  color: #85858b;
  font-size: 11px;
}

.daily-rule-item strong {
  color: #eeeeef;
  font-size: 17px;
}

.daily-rule-item.active {
  border-color: rgba(0, 215, 137, 0.55);
  background: rgba(0, 215, 137, 0.1);
}

.daily-rule-item.active strong {
  color: #00d789;
}

.daily-history {
  grid-column: 1 / -1;
}

.daily-history p {
  margin: 8px 0 0;
  color: #c7c7cb;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .daily-summary {
    grid-template-columns: 1fr;
  }

  .daily-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Compact account toolbar */
.account-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.account-icon-btn,
.topbar-language,
.account-toolbar .account-balance,
.account-user-menu {
  min-height: 34px;
  border: 1px solid #3a3a3d;
  border-radius: 18px;
  background: #171719;
  color: #f4f4f5;
}

.account-icon-btn {
  position: relative;
  width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.notification-btn i {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #171719;
  border-radius: 50%;
  background: #ff4d6d;
}

.topbar-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.topbar-language select {
  width: 126px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  padding: 0 14px 0 0;
  font-weight: 700;
}

.account-toolbar .account-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}

.account-toolbar .account-balance span {
  color: var(--green);
  font-size: 13px;
}

.account-toolbar .account-balance strong {
  color: #f4c954;
  font-size: 13px;
}

.account-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 4px;
}

.account-user-menu .account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #c45215;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background-size: cover;
  background-position: center;
}

.account-user-menu .account-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.account-user-menu .account-copy strong {
  max-width: 92px;
  overflow: hidden;
  color: #f4f4f5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user-menu .account-copy small {
  color: #85858b;
  font-size: 10px;
}

.account-chevron {
  color: #89898f;
  font-size: 13px;
}


.topbar-language select option {
  background: #171719;
  color: #f4f4f5;
}

.topbar-language select option:checked,
.topbar-language select option:hover {
  background: #242428;
  color: #00d98b;
}

.topbar-language select:focus {
  outline: none;
  color: #ffffff;
}


/* Weekly reward campaign */
.reward-nav {
  border-color: rgba(245, 201, 84, 0.28);
  background: linear-gradient(135deg, rgba(245, 201, 84, 0.14), rgba(0, 217, 139, 0.08));
}

.reward-nav .nav-icon {
  color: #f5c954;
}

.reward-pulse {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 201, 84, 0.72);
  background: linear-gradient(135deg, #251d08, #111d18 52%, #1f1307);
  color: #fff7d6;
  box-shadow: 0 0 0 1px rgba(245, 201, 84, 0.16), 0 10px 28px rgba(245, 201, 84, 0.16);
}

.reward-pulse::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 52%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: rewardSweep 3.2s ease-in-out infinite;
}

.reward-pulse.active,
.reward-pulse:hover {
  border-color: #f5c954;
  color: #ffffff;
}

@keyframes rewardSweep {
  0%, 48% { left: -70%; }
  72%, 100% { left: 125%; }
}

.reward-page {
  display: grid;
  gap: 16px;
}

.reward-page.hidden {
  display: none;
}

.reward-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(245, 201, 84, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 201, 84, 0.22), rgba(0, 217, 139, 0.12) 38%, rgba(11, 11, 12, 0.08)),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.16), transparent 24%),
    #0c0c0d;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.reward-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, #000, transparent 74%);
  pointer-events: none;
}

.reward-hero-copy,
.reward-prize-card {
  position: relative;
  z-index: 1;
}

.reward-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 58px);
}

.reward-kicker {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(245, 201, 84, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(245, 201, 84, 0.12);
  color: #f5c954;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reward-hero h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.reward-hero h2 strong {
  display: inline-block;
  color: #f5c954;
  font-size: 1.08em;
  text-shadow: 0 0 26px rgba(245, 201, 84, 0.28);
}

.reward-hero p {
  max-width: 560px;
  color: #d9d9dc;
  font-size: 16px;
  line-height: 1.65;
}



.reward-window {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(54, 211, 153, 0.38);
  border-radius: 8px;
  background: rgba(54, 211, 153, 0.1);
  padding: 10px 12px;
}

.reward-window span {
  color: #36d399;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reward-window strong {
  color: #ffffff;
  font-size: 14px;
}

.reward-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reward-cta,
.reward-secondary {
  min-width: 132px;
}

.reward-cta {
  border-color: #f5c954;
  background: #f5c954;
  color: #111113;
  box-shadow: 0 14px 34px rgba(245, 201, 84, 0.22);
}

.reward-cta:hover {
  background: #ffdb6f;
}

.reward-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f6;
}

.reward-prize-card {
  align-self: stretch;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  margin: 18px 18px 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  text-align: center;
}

.reward-prize-card span,
.reward-prize-card em {
  color: #d4d4d8;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reward-prize-card strong {
  color: #ffffff;
  font-size: clamp(80px, 12vw, 148px);
  line-height: 0.9;
  text-shadow: 0 0 36px rgba(0, 217, 139, 0.24);
}

.reward-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reward-board-card,
.reward-rules-grid > div {
  border: 1px solid #29292d;
  border-radius: 8px;
  background: #121214;
  padding: 16px;
}

.reward-board-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, #161617, #101011);
}

.reward-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2b2b2f;
}

.reward-board-head span {
  color: #f5c954;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reward-board-head strong {
  color: #ffffff;
  font-size: 20px;
}

.reward-podium {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid #29292d;
  border-radius: 7px;
  background: #0d0d0e;
  padding: 9px 11px;
}

.reward-podium b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5c954;
  color: #111113;
  font-size: 14px;
}

.reward-podium span {
  color: #d7d7da;
  font-weight: 800;
}

.reward-podium strong {
  color: #36d399;
  font-size: 16px;
  white-space: nowrap;
}

.reward-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reward-rules-grid > div span {
  color: #f5c954;
  font-size: 12px;
  font-weight: 900;
}

.reward-rules-grid > div strong {
  display: block;
  margin-top: 10px;
  color: #f4f4f5;
  font-size: 18px;
}

.reward-rules-grid > div p {
  margin-top: 8px;
  color: #8e8e95;
  font-size: 13px;
  line-height: 1.55;
}

.reward-notice {
  border: 1px solid rgba(245, 201, 84, 0.28);
  border-radius: 8px;
  background: rgba(245, 201, 84, 0.08);
  color: #d6d6da;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .reward-hero {
    grid-template-columns: 1fr;
  }

  .reward-prize-card {
    min-height: 220px;
    margin: 0 18px 18px;
  }
}

@media (max-width: 840px) {
  .reward-board-grid,
  .reward-rules-grid {
    grid-template-columns: 1fr;
  }

  .reward-hero-copy {
    padding: 26px 18px;
  }

  .reward-hero h2 {
    font-size: 42px;
  }

  .reward-podium {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .reward-podium strong {
    grid-column: 2;
  }
}



/* AI Showdown live page */
.showdown-nav .nav-icon {
  font-size: 11px;
  font-weight: 1000;
}

.ai-showdown-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-showdown-page.hidden {
  display: none;
}

.showdown-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(54, 211, 153, 0.18), rgba(96, 165, 250, 0.14) 45%, rgba(245, 201, 84, 0.14)),
    #121416;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

.showdown-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(54, 211, 153, 0.14);
  color: #8ff0c7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.showdown-hero h2 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.05;
}

.showdown-hero p,
.showdown-panel-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.showdown-live-card,
.showdown-metric,
.showdown-bot-card,
.showdown-chart-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(13, 15, 17, 0.78);
}

.showdown-live-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.showdown-live-card span,
.showdown-metric span,
.showdown-bot-stats span,
.showdown-progress-row,
.showdown-feed-item span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.showdown-live-card strong {
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
}

.showdown-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.showdown-metric {
  min-height: 112px;
  padding: 16px;
}

.showdown-metric strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.showdown-metric small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.showdown-bot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.showdown-bot-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.showdown-bot-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--bot-color);
}

.showdown-bot-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.showdown-bot-head div {
  display: grid;
  gap: 5px;
}

.showdown-bot-head span {
  color: var(--bot-color);
  font-size: 13px;
  font-weight: 1000;
}

.showdown-bot-head strong {
  color: #fff;
  font-size: 22px;
}

.showdown-bot-head em {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.showdown-bot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.showdown-bot-stats div {
  min-width: 0;
}

.showdown-bot-stats strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.showdown-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showdown-chart-panel {
  padding: 18px;
}

.showdown-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.showdown-panel-head h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 18px;
}

.showdown-chart {
  min-height: 260px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.showdown-svg {
  display: block;
  width: 100%;
  height: 260px;
}

.showdown-grid-lines line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.showdown-grid-lines text {
  fill: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 800;
}

.showdown-zero-line {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
}

.showdown-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.showdown-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.showdown-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.showdown-legend strong {
  color: #fff;
}

.showdown-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 16px;
}

.showdown-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.showdown-market-grid section {
  min-width: 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.showdown-market-grid h4 {
  margin: 0 0 12px;
  color: #fff;
}

.showdown-market-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.showdown-market-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.showdown-market-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.showdown-market-row strong {
  color: #fff;
  text-align: right;
}

.showdown-feed {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.showdown-feed-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.showdown-feed-item strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 14px;
}

.showdown-feed-item p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

/* Homepage grand prize teaser */
.grand-prize-teaser {
  appearance: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  position: relative;
  min-width: min(520px, 42vw);
  height: 46px;
  display: grid;
  grid-template-columns: 76px minmax(0, auto);
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(245, 201, 84, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(245, 201, 84, 0.18), rgba(54, 211, 153, 0.09) 48%, rgba(245, 201, 84, 0.12)),
    #101011;
  box-shadow: 0 0 0 1px rgba(245, 201, 84, 0.12), 0 14px 34px rgba(0, 0, 0, 0.32);
  padding: 6px 16px 6px 8px;
}

.grand-prize-teaser::after {
  content: "";
  position: absolute;
  inset: -55% auto -55% -80%;
  width: 34%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: grandPrizeSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

.grand-prize-mark {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 72px;
  height: 32px;
  border-radius: 999px;
  background: #f5c954;
  color: #101011;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
}

.grand-prize-teaser strong,
.grand-prize-teaser small {
  position: relative;
  z-index: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grand-prize-teaser strong {
  align-self: end;
  color: #ffffff;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.05;
}

.grand-prize-teaser small {
  align-self: start;
  color: #f5c954;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

@keyframes grandPrizeSweep {
  0%, 52% { left: -80%; }
  76%, 100% { left: 126%; }
}

@media (max-width: 1180px) {
  .grand-prize-teaser {
    min-width: min(430px, 42vw);
  }
}

@media (max-width: 840px) {
  .grand-prize-teaser {
    display: none;
  }
}


/* Mobile sportsbook experience: single feed + bottom nav + bet slip drawer. */
.mobile-slip-toggle,
.mobile-drawer-scrim {
  display: none;
}

@media (max-width: 840px) {
  :root {
    --topbar-height: 62px;
  }

  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  body.mobile-slip-open {
    overflow: hidden;
  }

  .app-shell,
  .main,
  .content-grid,
  .fixture-section,
  .workspace-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .main {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 12px) 12px 22px;
  }

  .topbar {
    position: fixed;
    z-index: 70;
    inset: 0 0 auto 0;
    height: var(--topbar-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
    border-bottom-color: #242428;
    background: rgba(11, 11, 12, 0.98);
  }

  .topbar-brand {
    min-width: 0;
  }

  .topbar-logo {
    width: 42px;
    height: 42px;
  }

  .topbar-brand-copy {
    display: grid;
  }

  .topbar-brand-copy strong {
    font-size: 15px;
  }

  .topbar-brand-copy span {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-center,
  .notification-btn,
  .account-copy,
  .account-chevron {
    display: none !important;
  }

  .account-toolbar {
    gap: 8px;
    min-width: 0;
  }

  .topbar-language {
    width: 42px;
    height: 42px;
    min-width: 42px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }

  .topbar-language span {
    display: none;
  }

  .topbar-language select {
    width: 42px;
    min-width: 42px;
    padding: 0 5px;
    text-align: center;
  }

  .account-toolbar .account-balance {
    min-width: 70px;
    align-items: flex-end;
  }

  .account-toolbar .account-balance strong {
    max-width: 78px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-user-menu {
    display: grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
  }

  .account-avatar {
    width: 34px;
    height: 34px;
    margin: auto;
  }

  .control-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .control-bar .search-field {
    grid-column: 1 / -1;
  }

  select,
  input {
    height: 42px;
    font-size: 13px;
  }

  .date-picker-popup {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    z-index: 90;
  }

  .date-picker-day {
    width: 100%;
    height: 36px;
  }

  .fixture-card {
    margin: 0 -12px;
    padding: 0 12px;
    border-bottom-color: #242428;
  }

  .fixture-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0 8px;
  }

  .fixture-time {
    text-align: right;
  }

  .fixture-row-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 0 0 14px;
  }

  .fixture-matchup {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .team-block strong {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .markets {
    gap: 9px;
  }

  .market-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .market-name {
    padding-top: 3px;
    font-size: 11px;
  }

  .market-row .odds-btn {
    min-height: 46px;
  }

  .market-row {
    display: grid;
  }

  .market-row:has(.odds-btn:nth-child(4)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-row:has(.odds-btn:nth-child(4)) .market-name {
    grid-column: 1 / -1;
  }

  .odds-btn {
    border-radius: 9px;
    padding: 0 6px;
  }

  .odds-btn span {
    font-size: 10px;
  }

  .odds-btn strong {
    font-size: 14px;
  }

  .fixture-insight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 10px;
  }

  .sidebar {
    display: block;
    position: fixed;
    z-index: 65;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    overflow: hidden;
    border-top: 1px solid #252528;
    border-right: 0;
    background: rgba(17, 17, 19, 0.98);
  }

  .nav-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    grid-template-columns: none;
    gap: 4px;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    min-height: 52px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 8px;
    padding: 3px 2px;
    text-align: center;
  }

  .nav-item .nav-icon {
    width: auto;
    font-size: 15px;
  }

  .nav-item span:last-child {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


  .right-rail {
    position: fixed;
    z-index: 85;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    width: auto;
    max-height: min(82vh, 720px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border-top: 1px solid #303034;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    background: #111113;
    box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.58);
    transform: translateY(105%);
    transition: transform 220ms ease;
  }

  body.mobile-slip-open .right-rail {
    transform: translateY(0);
  }

  .mobile-drawer-scrim {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.5);
  }

  .mobile-drawer-scrim.hidden {
    display: none;
  }

  .mobile-slip-toggle {
    position: fixed;
    z-index: 75;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    min-width: 132px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #28d99a;
    border-radius: 999px;
    background: #00d98b;
    color: #06150f;
    padding: 0 10px 0 16px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 217, 139, 0.26);
  }

  .mobile-slip-toggle strong {
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #06150f;
    color: #ffffff;
    font-size: 12px;
  }

  .mobile-slip-toggle:not(.has-selections) {
    border-color: #3d3d41;
    background: #1c1c1f;
    color: #d7d7da;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  }

  .ticket-panel {
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .ticket-tabs {
    margin: 12px 12px 10px;
  }

  .ticket-scroll {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 0 12px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .ticket-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .performance-panel {
    display: none;
  }

  .workspace-page {
    min-height: auto;
  }

  .workspace-head {
    display: grid;
    gap: 10px;
  }

  .workspace-head .ghost-btn,
  .workspace-head .primary-btn {
    width: 100%;
  }

  .asset-summary-grid,
  .leaderboard-grid,
  .contact-grid,
  .reward-board-grid,
  .reward-rules-grid,
  .data-doc-grid,
  .data-param-grid {
    grid-template-columns: 1fr !important;
  }

  .fund-request-form,
  .data-export-form {
    grid-template-columns: 1fr !important;
  }

  .reward-hero {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .reward-prize-card {
    min-height: 180px;
  }

  .account-modal {
    width: 100%;
    min-height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 16px;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .toast {
    right: 12px;
    bottom: calc(140px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .topbar-brand-copy span {
    max-width: 112px;
  }

  .account-toolbar .account-balance {
    display: none;
  }


  .fixture-top {
    grid-template-columns: 1fr;
  }

  .fixture-time {
    text-align: left;
  }

  .fixture-matchup {
    grid-template-columns: 1fr;
  }

  .team-away,
  .team-home {
    justify-content: flex-start;
    text-align: left;
  }

  .team-away .team-badge {
    order: 0;
  }

  .fixture-vs {
    display: none;
  }
}

/* AI Showdown season controls and daily risk allowance. */
.showdown-season-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.showdown-season-controls select { min-width: 132px; max-width: 100%; height: 36px; padding: 0 10px; border: 1px solid #454545; border-radius: 6px; background: #151515; color: #fff; font: inherit; }
.showdown-season-rules { margin: 0 0 20px; line-height: 1.6; color: #c7ccd0; overflow-wrap: anywhere; }
.showdown-daily-budget { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid #343434; }
.showdown-daily-budget span, .showdown-daily-budget small { color: #b3b9bf; font-size: 12px; }
.showdown-daily-budget strong { color: #fff; font-size: 14px; overflow-wrap: anywhere; }

/* Keep Showdown metrics readable independently of the sportsbook layout. */
.ai-showdown-page,
.ai-showdown-page > *,
.showdown-hero > *,
.showdown-bot-head > *,
.showdown-legend > span {
  min-width: 0;
}

.showdown-metric strong,
.showdown-bot-stats strong {
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
  white-space: nowrap;
}

.showdown-bot-stats span {
  display: block;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.showdown-bot-head {
  flex-wrap: wrap;
}

.showdown-bot-head > div {
  flex: 1 1 140px;
}

.showdown-bot-head strong,
.showdown-bot-head em {
  overflow-wrap: break-word;
}

.showdown-bot-head em {
  max-width: 100%;
  white-space: normal;
}

.showdown-progress-row {
  flex-wrap: wrap;
}

.showdown-legend i {
  flex: 0 0 9px;
}

.showdown-market-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.showdown-legend span {
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .showdown-summary-grid,
  .showdown-bot-grid,
  .showdown-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showdown-lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 840px) {
  .ai-showdown-page {
    gap: 14px;
    padding-bottom: 54px;
  }

  .showdown-season-controls {
    margin-bottom: 0;
  }

  .showdown-season-controls select {
    min-height: 44px;
  }

  .showdown-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
    border-radius: 8px;
  }

  .showdown-hero h2 {
    margin-top: 12px;
    font-size: 24px;
    line-height: 1.25;
  }

  .showdown-hero p,
  .showdown-panel-head p {
    font-size: 13px;
    line-height: 1.6;
  }

  .showdown-live-card {
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: none;
  }

  .showdown-live-card strong {
    font-size: 14px;
    line-height: 1.5;
  }

  .showdown-season-rules {
    margin-bottom: 0;
    font-size: 13px;
  }

  .showdown-summary-grid {
    gap: 10px;
  }

  .showdown-metric {
    min-height: 112px;
    padding: 12px;
    border-radius: 8px;
  }

  .showdown-metric > span {
    display: block;
    min-height: 2.8em;
    line-height: 1.4;
    overflow-wrap: break-word;
  }

  .showdown-metric strong {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.25;
  }

  .showdown-metric small {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
  }

  .showdown-bot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .showdown-bot-card {
    padding: 16px;
    border-radius: 8px;
  }

  .showdown-bot-head strong {
    font-size: 20px;
    line-height: 1.3;
  }

  .showdown-bot-head em {
    line-height: 1.4;
  }

  .showdown-bot-stats {
    gap: 14px 10px;
    margin-top: 16px;
  }

  .showdown-bot-stats span {
    min-height: 2.8em;
    font-size: 11px;
  }

  .showdown-bot-stats strong {
    font-size: 16px;
    line-height: 1.3;
  }

  .showdown-daily-budget strong {
    line-height: 1.5;
    overflow-wrap: normal;
  }

  .showdown-progress-row {
    line-height: 1.5;
  }

  .ai-showdown-page .showdown-chart-panel {
    padding: 14px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: none;
  }

  .showdown-chart,
  .showdown-market-grid section,
  .showdown-feed-item {
    border-radius: 8px;
  }

  .showdown-legend {
    gap: 8px;
  }

  .showdown-legend span {
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1.5;
  }

  .showdown-feed {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .showdown-feed-item strong,
  .showdown-feed-item p {
    overflow-wrap: break-word;
  }

  body:has(.ai-showdown-page:not(.hidden)) .mobile-slip-toggle:not(.has-selections) {
    display: none;
  }
}

@media (max-width: 560px) {
  .showdown-market-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .showdown-metric strong {
    font-size: 18px;
  }

  .showdown-bot-card {
    padding: 14px;
  }
}
