/* ════════════════════════════════════════════════
   AB Bet — Teletext theme
   ════════════════════════════════════════════════ */

:root {
  /* Priced Up / teletext: punchier yellow + green, higher contrast greys */
  --bg: #0a0a0a;
  --panel: #252525;
  --panel-2: #303030;
  --accent: #ffd60a;
  --accent-soft: rgba(255, 214, 10, 0.14);
  --mint: #3dffa7;
  --mint-soft: rgba(61, 255, 167, 0.12);
  --lime: #d4ff4a;
  --text: #f7f7f7;
  --muted: #c6c6c6;
  --muted-dim: #9a9a9a;
  --label: #d2ebe0;
  --border: #2e2e2e;
  --cell: #161616;
  --sans: 'Inter', system-ui, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  /* Header strip: wallet, account, odds, user email, log out */
  --topbar-control-fs: 0.8rem;
}

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

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
a:hover:not(.brand) { color: var(--mint); }

a.brand:hover .brand-ab {
  color: var(--text);
}

a.brand:hover .brand-bet {
  color: var(--lime);
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }

.mint { color: var(--mint); }
.muted { color: var(--muted); }
.muted-dim { color: var(--muted-dim); }

/* ── Site header (primary bar + TeamBet-style sub row) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Top bar (row 1) ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -1px 0 rgba(61, 255, 167, 0.22);
}

/* Row 2: shortcuts + odds */
.topbar-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  padding: 0.4rem 1.25rem;
  background: #0f1216;
  border-bottom: 1px solid rgba(61, 255, 167, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 214, 10, 0.06);
}

.topbar-sub__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.topbar-sub-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.12rem 0;
  border-bottom: 1px solid transparent;
}

.topbar-sub-link:hover,
.topbar-sub-link:focus-visible {
  color: var(--accent);
}

.topbar-sub-link--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.topbar-sub__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar-sub .odds-format-toggle {
  min-height: 0;
  gap: 0.4rem;
}

.topbar-sub .odds-format-toggle__label {
  font-size: 0.72rem;
  font-weight: 600;
}

.topbar-sub .odds-format-btn {
  padding: 0.26rem 0.5rem;
  font-size: 0.72rem;
}

/* Featured promotions rail (main column; full-bleed strip vs .main padding) */
.abb-promo-rail {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255, 214, 10, 0.18);
  padding: 0.45rem 0.75rem 0.55rem;
}

.abb-promo-rail__viewport {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.abb-promo-rail__track {
  display: flex;
  gap: 0.65rem;
  padding: 0.15rem 0;
}

.abb-promo-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
}

.abb-promo-card__hit {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 214, 10, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: #161616;
  cursor: pointer;
  text-align: left;
  position: relative;
  line-height: 0;
}

a.abb-promo-card__hit {
  color: inherit;
  text-decoration: none;
}

.abb-promo-card__hit:hover,
.abb-promo-card__hit:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 214, 10, 0.25);
}

.abb-promo-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.abb-promo-card__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.62rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.abb-promo-card__18 {
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  border-radius: 2px;
  padding: 0.08rem 0.25rem;
  font-size: 0.58rem;
}

.abb-promo-card__cta {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #111;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  line-height: 1.2;
}

.abb-promo-card__caption {
  padding: 0.35rem 0.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.abb-promo-card__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.abb-promo-card__teaser {
  font-size: 0.68rem;
  line-height: 1.25;
}

.abb-promo-page-h2 {
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  color: var(--accent);
}

.abb-promo-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.abb-promo-page-card__hit {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 214, 10, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: #161616;
  cursor: pointer;
  text-align: left;
  position: relative;
  line-height: 0;
}

a.abb-promo-page-card__hit {
  color: inherit;
  text-decoration: none;
}

.abb-promo-page-card__hit:hover,
.abb-promo-page-card__hit:focus-visible {
  border-color: var(--accent);
}

.abb-promo-page-card__hit img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.abb-promo-page-card__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.62rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
  text-decoration: none;
}

.brand-ab { color: var(--text); }
.brand-bet { color: var(--accent); margin-left: 0.25em; }

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

/* Shared nav label (also used on inner admin pages as a compact link) */
.topnav-link {
  font-family: var(--sans);
  font-size: var(--topbar-control-fs);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  margin: 0;
}

.topnav-link:hover { color: var(--accent); }
.topnav-link[data-active],
.topnav-link.topnav-link--active { color: var(--accent); }

/* Header only: same row height, alignment, and underline for <a> and dropdown <button> */
.topbar .topnav-link,
.topbar-right .topnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.22rem;
  box-sizing: border-box;
  min-height: 2rem;
  padding: 0.35rem 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

.topbar .topnav-link.topnav-link--active,
.topbar .topnav-link[data-active],
.topbar-right .topnav-link.topnav-link--active,
.topbar-right .topnav-link[data-active] {
  border-bottom-color: var(--accent);
}

/* Sports dropdown (header) — toggle on click, no navigation */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  /* .topnav-link supplies typography; keep layout only */
  cursor: pointer;
  text-align: left;
}

.nav-dropdown-chevron {
  display: block;
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.75;
  transition: transform 0.15s ease, opacity 0.15s ease, border-top-color 0.15s ease;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
  border-top-color: var(--accent);
  opacity: 1;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 11.5rem;
  max-width: min(18rem, calc(100vw - 2.5rem));
  max-height: min(70vh, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  background: #141816;
  border: 1px solid rgba(255, 214, 10, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(61, 255, 167, 0.08);
  z-index: 160;
  padding: 0.35rem 0;
}

.nav-dropdown-panel[hidden] {
  display: none !important;
}

.nav-dropdown-item {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-left: 2px solid transparent;
}

.nav-dropdown-item:hover {
  color: var(--text);
  background: rgba(255, 215, 0, 0.06);
}

.nav-dropdown-item--active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(255, 215, 0, 0.08);
}

.nav-dropdown-empty {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
}

@media (max-width: 600px) {
  .nav-dropdown-panel {
    left: auto;
    right: 0;
    max-width: min(20rem, calc(100vw - 1.5rem));
  }
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

/* Wallet dropdown (header): align panel to the right; metrics block */
.topbar-wallet {
  position: relative;
}

.topbar-wallet .nav-dropdown-panel--wallet {
  left: auto;
  right: 0;
  min-width: 13rem;
}

/* Account menu (header): panel opens right-aligned so it stays in view */
.nav-dropdown--account-header .nav-dropdown-panel {
  left: auto;
  right: 0;
  min-width: 14rem;
}

.wallet-dropdown-metrics {
  padding: 0.5rem 1rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.wallet-dropdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.78rem;
  padding: 0.2rem 0;
}

.wallet-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.88rem;
  padding: 0.28rem 0;
}

.wallet-dd-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--mint);
}

.nav-dropdown-item--subtle {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  opacity: 0.92;
}

.nav-dropdown-item--logout {
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
  color: var(--accent);
}

/* My bets page: Open | History tabs */
.abb-page-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  max-width: 700px;
}

.abb-page-tab {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.abb-page-tab:hover {
  color: var(--text);
}

.abb-page-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Header: fractional vs decimal odds */
.odds-format-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-height: 2rem;
}

.odds-format-toggle__label {
  font-family: var(--sans);
  font-size: var(--topbar-control-fs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.2;
}

.odds-format-toggle__seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.odds-format-btn {
  margin: 0;
  padding: 0.32rem 0.55rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--topbar-control-fs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  line-height: 1.2;
}

.odds-format-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.odds-format-btn.is-active {
  background: var(--accent);
  color: #111;
}

.odds-format-btn + .odds-format-btn {
  border-left: 1px solid var(--border);
}

.odds-format-btn__abbr {
  display: none;
}

@media (max-width: 720px) {
  .odds-format-toggle__label {
    display: none;
  }

  .odds-format-btn__full {
    display: none;
  }

  .odds-format-btn__abbr {
    display: inline;
  }

  .odds-format-btn {
    padding: 0.35rem 0.5rem;
    font-size: var(--topbar-control-fs);
  }

  .topbar-sub .odds-format-btn {
    font-size: 0.7rem;
    padding: 0.28rem 0.42rem;
  }
}

.nav-dropdown-user {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 1rem 0.55rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.nav-dropdown-user__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim, var(--muted));
}

.nav-dropdown-user__email {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mint);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.btn-accent {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #141414;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.btn-accent:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(61, 255, 167, 0.35);
}
.btn-accent.full { width: 100%; text-align: center; }

/* ── Shell body (sidebar + main) ── */
.shell-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 52px);
}

@media (max-width: 900px) {
  .shell-body { grid-template-columns: 1fr; }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: min(50vh, 420px);
  }
}

.sidebar {
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  border-right: 1px solid var(--border);
  box-shadow: inset -1px 0 0 rgba(255, 214, 10, 0.12);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  overflow-y: auto;
}

.side-heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mint);
  margin-top: 0.35rem;
}

.side-heading--sub {
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  color: var(--accent);
}

.side-list { list-style: none; margin: 0; padding: 0; }

.side-link {
  display: block;
  padding: 0.35rem 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid transparent;
}

.side-link:hover { color: var(--accent); }
.side-link.active {
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

/* ── Main ── */
.main {
  padding: 1rem 1.25rem 2rem;
  min-width: 0;
  max-width: 100%;
}

.main > .abb-promo-rail:first-child {
  margin: -1rem -1.25rem 0.65rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.page-head { margin-bottom: 0.85rem; }

/* Help centre (/Help) */
.help-toc {
  margin-bottom: 1rem;
}

.help-toc__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  padding: 0.55rem 0.85rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.help-toc__inner a {
  color: var(--muted);
  text-decoration: none;
}

.help-toc__inner a:hover,
.help-toc__inner a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-toc__sep {
  color: var(--muted-dim);
  user-select: none;
}

.help-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46rem;
}

.help-section[id] {
  scroll-margin-top: 6rem;
}

.help-section__body {
  padding: 0.75rem 1rem 1rem;
}

/* Account log in / short auth forms: centre in main column */
.auth-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-page--centered {
  justify-content: center;
  min-height: min(82vh, 42rem);
  padding: 1rem 0 2.5rem;
  box-sizing: border-box;
}

.auth-page-card {
  width: 100%;
  max-width: 460px;
  min-width: 0;
}

.auth-page--centered .page-head {
  text-align: center;
  width: 100%;
}

.page-title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 24px rgba(255, 214, 10, 0.12);
}

.page-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-sub a { color: var(--accent); }

/* Day + Markets filter (TeamBet-style, dark theme) */
.abb-filter-summary {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.35;
}

.abb-market-filter {
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 720px;
}

.abb-market-filter--horse {
  max-width: none;
}

.abb-market-filter-row {
  display: flex;
  align-items: center;
  gap: 0.45rem 0.65rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
}

.abb-market-filter-row + .abb-market-filter-row {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

.abb-market-filter-label {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 3.5rem;
}

.abb-market-filter-label::after {
  content: ':';
}

.abb-market-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.abb-filter-pill {
  border: 1px solid var(--border);
  background: var(--cell);
  color: var(--text);
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.abb-filter-pill:hover:not(:disabled) {
  border-color: var(--muted);
  color: var(--accent);
}

.abb-filter-pill--day.is-active {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.abb-filter-pill--market.is-active {
  background: var(--mint);
  color: #0a0a0a;
  border-color: var(--mint);
}

.abb-filter-pill:disabled {
  opacity: 0.85;
  cursor: default;
}

.abb-market-filter--catalog-wide {
  max-width: 56rem;
}

/* ── Catalog sport: event hero (TeamBet-style layout + bookmaker rail look) ── */
.catalog-fixtures--events {
  max-width: 56rem;
}

.abb-catalog-fixture--event {
  border: 1px solid rgba(255, 214, 10, 0.22);
  border-radius: 12px;
  background: #080808;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(61, 255, 167, 0.06);
}

.abb-event-hero {
  position: relative;
  padding: 0.85rem 1rem 0.75rem;
  background-color: #060607;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.4l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM27 42.31l-11-6.35V41h2v-8.21L27 35.81v2.3zm0-18.5L15 17.9v-8.17l11-6.35v2.28z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.abb-event-hero__league-line {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(61, 255, 167, 0.85);
}

.abb-event-hero__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.75rem;
}

.abb-event-hero__teams--single {
  justify-content: center;
}

.abb-event-hero__teams--single .abb-event-hero__team {
  text-align: center;
  font-size: clamp(1.05rem, 3.5vw, 1.45rem);
}

.abb-event-hero__side {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.abb-event-hero__side-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}

.abb-team-badge-img {
  display: block;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.abb-team-badge-img--hero {
  width: clamp(2rem, 8vw, 2.65rem);
  height: clamp(2rem, 8vw, 2.65rem);
}

.abb-team-badge-img--market {
  width: 1.35rem;
  height: 1.35rem;
}

.abb-team-badge-img--home-row {
  width: 1.25rem;
  height: 1.25rem;
}

.abb-event-hero__team {
  display: block;
  font-weight: 800;
  font-size: clamp(0.95rem, 3.2vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.abb-event-hero__vs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  background: linear-gradient(145deg, #2a9d8f, #1f7a70);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(45, 155, 139, 0.35);
}

.abb-event-hero__vs span {
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  color: #fff;
  font-family: var(--sans);
}

.abb-event-hero__kickoff {
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.abb-bet-builder-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(90deg, #0c0c0d 0%, #101012 100%);
  border-bottom: 1px solid var(--border);
}

.abb-bet-builder-strip__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.abb-bet-builder-strip__logo {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  background: #141416;
  border: 1px solid rgba(255, 214, 10, 0.35);
  color: var(--accent);
  font-family: var(--mono);
}

.abb-bet-builder-strip__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.abb-bet-builder-strip__text strong {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.abb-bet-builder-strip__sub {
  font-size: 0.68rem;
  line-height: 1.25;
}

.abb-bet-builder-strip__cta {
  flex-shrink: 0;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #0a0a0a;
  cursor: not-allowed;
  opacity: 0.65;
}

.abb-catalog-fixture__markets {
  padding: 0.35rem 0.5rem 0.65rem;
  background: #060606;
}

.abb-catalog-market-panel {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.4rem;
  background: #0a0a0a;
  overflow: hidden;
}

.abb-catalog-market-panel:last-child {
  margin-bottom: 0;
}

.abb-catalog-market-panel__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  color: #f2f7f4;
  background: linear-gradient(90deg, #2a3030 0%, #1a1e1e 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.abb-catalog-market-panel__summary::-webkit-details-marker {
  display: none;
}

.abb-catalog-market-panel__title {
  flex: 1;
  min-width: 0;
}

.abb-catalog-market-panel__chev::before {
  content: '⌃';
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.15s ease;
}

.abb-catalog-market-panel[open] .abb-catalog-market-panel__chev::before {
  transform: rotate(180deg);
}

.abb-catalog-market-panel__body {
  padding: 0.55rem 0.6rem 0.65rem;
  background: #101012;
}

.abb-market-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.abb-market-3col__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem 0.5rem;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.abb-market-3col__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--text);
}

.abb-market-3col__name-text {
  min-width: 0;
}

.abb-market-3col__odds {
  width: 100%;
}

.abb-market-3col__odds .abb-catalog-odds-btns {
  justify-content: center;
}

.abb-catalog-runners-table {
  width: 100%;
  margin: 0;
}

.abb-catalog-runners-table tbody tr:nth-child(even) td {
  background: #121214;
}

/* Tab-style market pills (yellow active rail) */
.abb-market-filter--catalog-wide .abb-filter-pill--market {
  border-color: rgba(255, 214, 10, 0.45);
  background: transparent;
  color: var(--accent);
}

.abb-market-filter--catalog-wide .abb-filter-pill--market:hover:not(:disabled) {
  background: rgba(255, 214, 10, 0.08);
  color: var(--accent);
}

.abb-market-filter--catalog-wide .abb-filter-pill--market.is-active {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  box-shadow: none;
}

.abb-market-filter--catalog-wide .abb-filter-pill--day.is-active {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  box-shadow: none;
}

/* ── Teletext frame ── */
.tt-frame {
  border: 1px solid rgba(255, 214, 10, 0.28);
  background: #080808;
  box-shadow: 0 0 0 1px rgba(61, 255, 167, 0.06);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.tt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--mint);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0a0a0a;
}

/* Right-hand / secondary label on teletext headers (still readable on mint) */
.tt-header .muted {
  color: rgba(10, 10, 10, 0.58);
  font-weight: 600;
}

.tt-header .mint {
  color: rgba(10, 10, 10, 0.78);
}

/* Homepage horse racing: yellow strip + dark sans text (readable; avoids green/yellow clash) */
.tt-header--horse-home {
  background: var(--accent);
  color: #0a0a0a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-family: var(--sans);
  letter-spacing: 0.1em;
}

.tt-header--horse-home > span:first-child {
  color: #0a0a0a;
  font-weight: 800;
}

.tt-header--horse-home .muted {
  color: rgba(10, 10, 10, 0.55);
}

.empty-state {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.empty-state h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-state strong { color: var(--accent); }

/* ── Meeting ── */
.meeting { border-bottom: 1px solid var(--border); }
.meeting:last-child { border-bottom: none; }

.meeting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(90deg, rgba(255, 214, 10, 0.08) 0%, var(--panel) 55%);
  border-bottom: 1px solid rgba(61, 255, 167, 0.15);
}

.meeting-venue {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.meeting-venue::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.6rem;
}

.meeting-country {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Race ── */
.race {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.race-header {
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.race-time {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  min-width: 3.25rem;
}

.race-name {
  flex: 1 1 160px;
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 0;
}

.race-badges { display: flex; flex-wrap: wrap; gap: 4px; }

.badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--border);
  background: var(--cell);
  color: #c8ddd2;
}

.badge-handicap { color: var(--accent); border-color: #444; }
.badge-result { color: var(--mint); border-color: #2a4a3a; }

.place-terms {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--mint);
  padding: 0.4rem 0.75rem;
  background: #101010;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Runners table ── */
.runners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.runners-table th {
  text-align: left;
  padding: 0.45rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c8e8d8;
  background: var(--cell);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
}

.runners-table th:nth-child(1) { width: 3rem; text-align: center; }
.runners-table th:nth-child(3) { text-align: center; width: 5.5rem; }

.runners-table td {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  background: var(--bg);
  vertical-align: middle;
}

.runners-table tr:hover td { background: #141414; }

/* Customer home horse block: hide a 4th “Updated” column if an older cached odds-grid.js still renders it. */
#meetings .runners-table thead tr > th:nth-child(n + 4),
#meetings .runners-table tbody tr > td:nth-child(n + 4) {
  display: none !important;
}

.cloth-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border: 1px solid var(--border);
  background: var(--cell);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
}

.horse-name { font-weight: 600; }

.odds-cell {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: var(--cell) !important;
  transition: color 0.3s;
}

.odds-cell.no-price { color: var(--muted); font-size: 0.85rem; }

.runner-withdrawn td { opacity: 0.55; }
.runner-withdrawn .horse-name { text-decoration: line-through; color: #e88; }
.runner-withdrawn .odds-cell { color: #e88 !important; font-size: 0.8rem; }
.runner-winner .horse-name { color: var(--mint); }
.runner-winner .horse-name::after { content: ' ★'; color: var(--accent); }
.runner-placed .horse-name { color: #8ec5ff; }

@keyframes flashTeletext {
  0% { background: #4a3d00 !important; color: var(--accent) !important; }
  100% { background: var(--cell) !important; color: var(--text) !important; }
}

.odds-flash { animation: flashTeletext 2s ease-out; }

/* Shorter than horse poll interval (1s) so one pulse can finish before DOM refresh. Catalog live script uses 2s poll and may restart mid-animation occasionally. */
@keyframes oddsFlashUp {
  0% {
    background: rgba(34, 197, 94, 0.55) !important;
    color: #052e14 !important;
  }
  70% {
    background: rgba(34, 197, 94, 0.28) !important;
  }
  100% {
    background: var(--cell) !important;
    color: var(--text) !important;
  }
}

@keyframes oddsFlashDown {
  0% {
    background: rgba(239, 68, 68, 0.55) !important;
    color: #fff !important;
  }
  70% {
    background: rgba(239, 68, 68, 0.28) !important;
  }
  100% {
    background: var(--cell) !important;
    color: var(--text) !important;
  }
}

.odds-flash-up {
  animation: oddsFlashUp 0.85s ease forwards;
}

.odds-flash-down {
  animation: oddsFlashDown 0.85s ease forwards;
}

.abb-catalog-odds-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.odds-pick.odds-pick--compact {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  min-width: 0;
}

.catalog-odds-suspended {
  opacity: 0.45;
  cursor: not-allowed;
}

.catalog-fixtures .odds-flash-up {
  animation-duration: 3s;
}

.catalog-fixtures .odds-flash-down {
  animation-duration: 3s;
}

/* ── Forms ── */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  min-width: 0;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--label);
}

.form-input {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--cell);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 255, 167, 0.35);
}

.form-footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.form-footer a { color: var(--accent); }

.form-error {
  color: #e88;
  font-size: 0.82rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #6a2222;
  background: #1a0a0a;
}

/* ── Page shell & compliance footer ── */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.page-shell .shell-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.site-footer {
  border-top: 1px solid rgba(61, 255, 167, 0.2);
  background: #080808;
  padding: 0.5rem 0.75rem 0.65rem;
  margin-top: auto;
  box-shadow: inset 0 1px 0 rgba(255, 214, 10, 0.08);
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Row 1: 18+ + tagline + policy links */
.site-footer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.site-footer-strip__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 min(14rem, 100%);
  min-width: 0;
}

.site-footer-strip__tagline {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
}

.site-footer-strip__tagline-more {
  color: var(--muted-dim);
}

.site-footer-strip__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer-strip__nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 0.1rem 0;
}

.site-footer-strip__nav a:hover {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-strip__sep {
  color: var(--muted-dim);
  user-select: none;
}

/* UK compliance logos */
.site-footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  padding: 0.35rem 0 0.45rem;
  border-bottom: 1px solid var(--border);
}

.site-footer-badges__link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.site-footer-badges__link:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.site-footer-badges__pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
  min-height: 2.25rem;
}

.site-footer-badges__pill img {
  display: block;
  height: 1.35rem;
  width: auto;
  max-width: min(120px, 28vw);
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-footer-badges__pill img {
    height: 1.55rem;
    max-width: none;
  }
}

/* Row 2: two columns — support links | operator */
.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.5rem 1.25rem;
  align-items: start;
}

@media (max-width: 720px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

.site-footer-block__title {
  margin: 0 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.site-footer-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.08rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .site-footer-block__list {
    grid-template-columns: 1fr;
  }
}

.site-footer-block__list a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-block__list a:hover {
  color: var(--accent);
}

.site-footer-block__text {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.site-footer-block__text:last-of-type {
  margin-bottom: 0.15rem;
}

.site-footer-block__text strong {
  color: var(--text);
}

.site-footer-block__text a {
  color: var(--accent);
}

.site-footer-block__text a:hover {
  color: var(--mint);
}

.site-footer-block__text--fine {
  font-size: 0.68rem;
  color: var(--muted-dim);
  line-height: 1.3;
}

.badge-18 {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 2px;
}

.badge-18--footer {
  min-width: 2rem;
  height: 2rem;
  font-size: 0.72rem;
}
.small { font-size: 0.92em; }

/* Cookie consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border-top: 1px solid var(--border);
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner.is-visible { display: flex; }

.cookie-banner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1 1 240px;
}

.cookie-banner a { color: var(--accent); }

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  color: var(--text);
}

.form-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-check span { font-size: 0.82rem; line-height: 1.4; }
.form-check span a { color: var(--accent); }

/* Legal prose */
.legal-prose {
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.legal-prose h2 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-prose p { margin: 0 0 0.75rem; }
.legal-prose ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.legal-prose a { color: var(--accent); }

/* ── Betslip (TeamBet-style: mobile bar + desktop FAB + panel) ── */
.abb-betslip-mount {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

.abb-betslip-mount .abb-betslip {
  pointer-events: none;
}

.abb-betslip-mount button,
.abb-betslip-mount .abb-betslip-panel {
  pointer-events: auto;
}

.abb-dock-mobile {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  background: #1e3a5f;
  border-top: 1px solid #2a5a8a;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.abb-dock-mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.35rem;
  padding: 0.5rem 0.35rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.abb-dock-mobile-btn + .abb-dock-mobile-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.abb-dock-mobile-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.abb-dock-mobile-icon {
  display: flex;
  opacity: 0.95;
}

.abb-dock-desktop {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 91;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0.75rem;
  background: #1e3a5f;
  color: #fff;
  border: 1px solid #2a5a8a;
  border-radius: 0.5rem 0 0 0.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  font-size: 0.88rem;
  font-weight: 600;
}

.abb-dock-desktop-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.abb-dock-desktop-icon {
  display: flex;
  position: relative;
}

.abb-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  padding: 0 0.25rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.abb-count--badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  background: #ef4444;
  font-size: 0.62rem;
}

.abb-betslip-panel {
  position: fixed;
  z-index: 92;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78vh, 32rem);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1a2220 0%, #0a0f0d 100%);
  border: 1px solid rgba(255, 214, 10, 0.28);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(61, 255, 167, 0.12);
  animation: abb-slip-up 0.28s ease-out;
}

/* display:flex above wins over the [hidden] attribute unless we force it off */
.abb-betslip-panel[hidden] {
  display: none !important;
  animation: none;
}

.abb-betslip-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.abb-betslip-title {
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

.abb-icon-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
}

.abb-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.abb-betslip-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  flex-shrink: 0;
}

.abb-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.65rem 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.abb-tab.is-active {
  color: #fff;
  background: rgba(61, 255, 167, 0.1);
  box-shadow: inset 0 -2px 0 var(--mint);
}

.abb-betslip-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 0.65rem 0.75rem 0.85rem;
}

.abb-slip-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  padding: 1.25rem 0.5rem;
  margin: 0;
}

.abb-slip-error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  color: #fecaca;
  font-size: 0.78rem;
}

.abb-slip-error-dismiss {
  border: none;
  background: transparent;
  color: #fecaca;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.15rem;
}

.abb-slip-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

.abb-slip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
}

.abb-slip-item.abb-slip-item--started {
  opacity: 0.72;
  border-color: rgba(248, 113, 113, 0.35);
}

.abb-slip-started-note {
  font-size: 0.68rem;
  color: #f87171;
  margin-top: 0.2rem;
  font-weight: 600;
}

.abb-slip-warning-banner {
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.abb-slip-sel {
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
}

.abb-slip-match {
  font-size: 0.68rem;
  margin-top: 0.12rem;
}

.abb-slip-odds {
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  border-radius: 0.3rem;
  padding: 0.12rem 0.35rem;
  display: inline-block;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.abb-slip-odds--pending {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 45%, #f0c14a 100%);
  color: #1a1204;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.abb-slip-remove {
  border: none;
  background: transparent;
  color: #f87171;
  font-size: 1rem;
  padding: 0.2rem 0.35rem;
  margin-left: 0.25rem;
}

.abb-slip-totals {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.45rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.65rem;
}

.abb-slip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
}

.abb-slip-row + .abb-slip-row {
  margin-top: 0.35rem;
}

.abb-slip-stake-row {
  margin-bottom: 0.65rem;
}

.abb-slip-stake-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
}

.abb-slip-stake-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.abb-slip-stake-field .abb-slip-stake-input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.abb-slip-stake-ew-x2 {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.35rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.abb-slip-stake-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.abb-slip-actions {
  margin-top: 0.35rem;
}

.abb-slip-send-error {
  color: #fecaca;
  font-size: 0.78rem;
  margin: 0.35rem 0 0;
}

.abb-slip-success {
  text-align: center;
  padding: 0.75rem 0.35rem;
  color: #fff;
  font-size: 0.85rem;
}

.abb-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.abb-btn-primary {
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
  width: 100%;
  margin-top: 0.35rem;
}

.abb-my-bets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.abb-my-bet {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.5rem;
}

.abb-my-bet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.abb-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
}

.abb-my-leg {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.25rem;
}

@keyframes abb-slip-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes abb-slip-in {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .abb-dock-mobile {
    display: none;
  }

  .abb-dock-desktop {
    display: flex;
  }

  .abb-betslip-panel {
    left: auto;
    top: auto;
    width: 22rem;
    max-height: 70vh;
    bottom: 1rem;
    right: 1rem;
    border-radius: 0.65rem;
    animation: abb-slip-in 0.26s ease-out;
  }

  html.abb-betslip-open .shell-body {
    padding-bottom: 0;
  }
}

@media (max-width: 1023.98px) {
  html.abb-betslip-open .shell-body {
    padding-bottom: 3.6rem;
  }
}

/* Horse grid: odds as betslip pick */
.odds-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid #2a5a8a;
  border-radius: 0.25rem;
  background: #1b3a5c;
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.odds-pick:hover {
  background: #244b75;
}

.odds-pick.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Win / Place / EW stacked picks on the home racing grid */
.abb-odds-picks {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: stretch;
}

.abb-odds-picks .odds-pick {
  min-width: 0;
  width: 100%;
  font-size: 0.78rem;
  min-height: 1.85rem;
  padding: 0.12rem 0.35rem;
}

/* Support inbox (header, TeamBet-style) */
.support-inbox-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.support-inbox-nav__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.45rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0.35rem;
  font-family: var(--sans);
  font-size: var(--topbar-control-fs);
  font-weight: 500;
}

.support-inbox-nav__btn:hover {
  color: var(--text);
  background: var(--cell);
}

.support-inbox-nav__bell {
  font-size: 1.2em;
  line-height: 1;
}

.support-inbox-nav__badge {
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #c9a227;
  color: #0d0d0d;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-inbox-nav__panel {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.35rem;
  width: 18rem;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.support-inbox-nav__heading {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.support-inbox-nav__heading--secondary {
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.support-inbox-nav__list {
  padding: 0.25rem 0;
}

.support-inbox-nav__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  border-bottom: 1px solid var(--border);
}

.support-inbox-nav__item:last-child {
  border-bottom: none;
}

.support-inbox-nav__item:hover {
  background: var(--cell);
}

.support-inbox-nav__item--unread {
  font-weight: 600;
}

.support-inbox-nav__item-subject {
  display: block;
  font-size: 0.85rem;
}

.support-inbox-nav__item-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.support-inbox-nav__footer {
  display: block;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}

.support-inbox-nav__footer:hover {
  text-decoration: underline;
}

/* KYCAid embedded form (see docs.kycaid.com/guides/form-integration) */
.kyc-iframe-wrap {
  margin-top: 1rem;
  width: 100%;
  max-width: 42rem;
  min-height: 700px;
  border: 1px solid var(--border);
  background: var(--cell);
  overflow: hidden;
}

.kyc-iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  border: 0;
}

/* ── Home: racing + main events (catalog rows) ── */
.home-accordion {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--panel);
  overflow: hidden;
}

.home-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.12) 0%, transparent 100%);
}

.home-accordion__summary::-webkit-details-marker {
  display: none;
}

.home-accordion__chev::before {
  content: '\25BC';
  font-size: 0.65rem;
  color: var(--muted);
  display: inline-block;
  transition: transform 0.2s ease;
}

.home-accordion:not([open]) .home-accordion__chev::before {
  transform: rotate(-90deg);
}

.home-accordion__body {
  padding: 0.75rem 0.85rem 1rem;
  border-top: 1px solid var(--border);
}

.tt-frame--home-racing {
  margin-top: 0.65rem;
}

.home-racing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.home-racing-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--cell);
  color: var(--text);
}

.home-racing-tabs__tab--active {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.home-racing-tabs__tab--link {
  text-decoration: none;
  color: var(--text);
}

.home-racing-tabs__tab--link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.home-sport-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.home-sport-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--cell);
  color: var(--text);
  cursor: pointer;
}

.home-sport-pill.is-active {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.home-sport-block--hidden {
  display: none !important;
}

.home-sport-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.home-sport-block__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.home-sport-block__more {
  font-size: 0.72rem;
  font-weight: 600;
  color: #f5d000;
  text-decoration: none;
  white-space: nowrap;
}

.home-sport-block__more:hover {
  text-decoration: underline;
}

.home-league {
  margin-bottom: 1rem;
}

.home-league:last-child {
  margin-bottom: 0;
}

.home-league__bar,
.home-fixture-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(4.25rem, 0.55fr) minmax(4.25rem, 0.55fr) minmax(4.25rem, 0.55fr);
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.home-league__bar {
  padding: 0.4rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  margin-bottom: 0.35rem;
}

.home-league__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-league__hdr {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  text-align: center;
}

.home-league__hdr--prices {
  grid-column: 2 / -1;
  text-align: right;
}

.home-fixture-row {
  padding: 0.5rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-fixture-row--three-way {
  display: block;
}

.home-fixture-row:last-child {
  border-bottom: none;
}

.home-fixture-row__teams {
  min-width: 0;
}

.home-fixture-row__matchup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
}

.home-fixture-row__side {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.home-fixture-row__team {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.25;
}

.home-fixture-row__team--full {
  white-space: normal;
}

.home-fixture-row__vs {
  display: inline;
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0 0.2rem;
}

.home-fixture-row__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.home-fixture-row__meta--stacked {
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.home-fixture-row__time {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #2dd4bf;
}

.home-fixture-row__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.45);
}

.home-odds-box {
  display: flex;
  align-items: center;
  justify-content: stretch;
  min-height: 2.5rem;
}

.home-fixture-picks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-fixture-pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.home-fixture-pick-row__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.home-fixture-pick-row__label-text {
  min-width: 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.25;
}

.home-fixture-pick-row__odds {
  justify-self: end;
}

.home-fixture-pick-row__odds .abb-catalog-odds-btns {
  justify-content: flex-end;
}

.home-odds-box__inner {
  flex: 1;
  display: flex;
  justify-content: center;
}

.home-odds-box__inner .abb-catalog-odds-btns {
  justify-content: center;
}

.home-odds-box--span {
  grid-column: 2 / -1;
  justify-content: flex-start;
}

.home-fixture-row--simple {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.65fr);
}

.home-fixture-row__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f5d000;
}

.odds-pick--plain-win {
  min-width: 3.5rem;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
}

.home-main-events-empty {
  margin: 0;
  font-size: 0.85rem;
}

.home-odds-box.odds-flash-up,
.home-odds-box.odds-flash-down {
  animation-duration: 3s;
}

@media (max-width: 640px) {
  .topbar,
  .topbar-sub {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .topbar {
    position: relative;
    gap: 0.55rem 0.85rem;
    align-items: flex-start;
    /* Leave room on the right for the absolutely positioned notification bell. */
    padding-right: 3.25rem;
  }

  .topnav,
  .topbar-right,
  .topbar-sub__nav,
  .topbar-sub__right {
    width: 100%;
    min-width: 0;
  }

  .topbar-right {
    margin-left: 0;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
    align-items: flex-start;
  }

  .topbar-right > * {
    min-width: 0;
    max-width: 100%;
  }

  /* Pin the notification bell to the top-right corner of the topbar,
     next to the AB BET brand. */
  .topbar-right .support-inbox-nav {
    position: absolute;
    top: 0.6rem;
    right: 0.85rem;
    max-width: none;
  }

  /* A-Z sports list is redundant when the Sports dropdown is available. */
  .shell-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .nav-dropdown {
    max-width: 100%;
  }

  .nav-dropdown-panel,
  .topbar-wallet .nav-dropdown-panel--wallet,
  .nav-dropdown--account-header .nav-dropdown-panel {
    left: 0;
    right: auto;
    min-width: min(16rem, calc(100vw - 1.7rem));
    max-width: calc(100vw - 1.7rem);
  }

  .main {
    padding: 0.85rem 0.85rem 5rem;
  }

  .main > .abb-promo-rail:first-child {
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .form-stack {
    padding: 0.9rem;
  }

  .kyc-iframe-wrap,
  .kyc-iframe {
    min-height: 78vh;
  }

  .home-fixture-row:not(.home-fixture-row--simple):not(.home-fixture-row--three-way) {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .home-fixture-row:not(.home-fixture-row--simple):not(.home-fixture-row--three-way) .home-odds-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .home-fixture-pick-row {
    gap: 0.55rem;
  }

  .home-fixture-row--simple {
    grid-template-columns: 1fr;
  }
}

/* Betslip: promotion / free-bet picker */
.abb-bonus-grant-dialog {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  max-width: min(22rem, 92vw);
}
.abb-bonus-grant-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.abb-bonus-grant-dialog__inner {
  padding: 1rem 1.15rem;
}
.abb-bonus-grant-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.abb-bonus-grant-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.4rem 0;
  cursor: pointer;
}
.abb-bonus-grant-dialog__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
