/* ==========================================================================
   x2bet app theme: makes the betting app match the homepage ("Stadium night").
   Loaded after main.css, custom.css and x2-remap.css (generated colour remap).
   Only colours, type and component skins change; no layout or behaviour.
   ========================================================================== */

:root {
  /* homepage tokens (css/x2.css) */
  --x2-pitch: #06122A;
  --x2-stand: #0D1E3D;
  --x2-stand-2: #132a54;
  --x2-seam: #1C3360;
  --x2-band: #091833;
  --x2-flood: #2468E8;
  --x2-flood-ink: #7FB0FF;
  --x2-chalk: #EEF3FF;
  --x2-chalk-2: #A9B8D6;
  --x2-chalk-3: #7C8DB0;
  --x2-turf: #1FD07F;
  --x2-odds: #11843F;
  --x2-odds-hover: #149A4A;
  --x2-odds-locked: #0B4D2A;
  --x2-flare: #FF5A6B;
  --x2-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --x2-ui: "Archivo", system-ui, sans-serif;

  /* BetLab's own variables, pointed at the same palette (HSL triplets) */
  /* BetLab uses its "heading" font on buttons, labels and menus too, so it gets the UI font;
     the condensed display face is applied only to headings, team names and prices below. */
  --heading-font: var(--x2-ui);
  --body-font: var(--x2-ui);
  --base-h: 219; --base-s: 81%; --base-l: 52%;          /* flood blue */
  --dark-h: 221; --dark-s: 75%; --dark-l: 10%;           /* pitch */
  --text: 222 100% 97%;                                  /* chalk */
  --heading: 222 100% 97%;
  --border: 220 55% 24%;                                 /* seam */
  --success: 152 74% 47%;                                /* turf */
  --danger: 354 100% 68%;                                /* flare */
}

/* ---------- Page ---------- */
body { background: var(--x2-pitch); color: var(--x2-chalk); font-family: var(--x2-ui); }
a { color: var(--x2-flood-ink); }
a:hover { color: var(--x2-chalk); }
h1, h2, h3, h4, h5, h6, .title { font-family: var(--x2-display); color: var(--x2-chalk); letter-spacing: -.005em; }
::selection { background: var(--x2-flood); color: #fff; }
.sports-body, .dashboard, .dashboard-body, main, section { background-color: transparent; }
.sports-body { background: var(--x2-pitch); }
.text-muted, .text--small, .text--extra-small { color: var(--x2-chalk-2) !important; }

/* ---------- Header ---------- */
.header, .header-fluid, .header-fluid-custom-parent, .header-top, .header-bottom { background: var(--x2-pitch) !important; border-bottom: 1px solid var(--x2-seam); }
.primary-menu-lg__link, .primary-menu__link { color: var(--x2-chalk) !important; font-weight: 500; }
.primary-menu-lg__link:hover, .primary-menu__link:hover { color: var(--x2-turf) !important; }
.bet-type__live, .bet-type__upcoming {
  border: 1px solid var(--x2-seam) !important; border-radius: 999px !important;
  background: transparent !important; color: var(--x2-chalk) !important; padding: 6px 14px !important;
}
.bet-type__live.active, .bet-type__upcoming.active { background: var(--x2-stand-2) !important; border-color: var(--x2-stand-2) !important; color: var(--x2-chalk) !important; }
.btn, button, .form-label, label { font-family: var(--x2-ui); }
.btn--signup { background: var(--x2-turf) !important; color: #03240F !important; border: 0 !important; border-radius: 999px !important; font-weight: 600; }
.btn--signup:hover { background: #3BE095 !important; }
.btn--login { background: transparent !important; color: var(--x2-chalk) !important; border: 1px solid var(--x2-seam) !important; border-radius: 999px !important; font-weight: 600; }
.btn--login:hover { border-color: var(--x2-chalk-3) !important; }
.select-lang .form-select, .oddsType, .langSel { background-color: var(--x2-stand) !important; color: var(--x2-chalk) !important; border: 1px solid var(--x2-seam) !important; border-radius: 8px; }

/* ---------- Sports sidebar ---------- */
.sports-category, .sub-category-drawer, .sports-category__list { background: var(--x2-band) !important; border-color: var(--x2-seam) !important; }
.sports-category__link, .sub-category-drawer__link { color: var(--x2-chalk-2) !important; }
.sports-category__link:hover, .sports-category__link.active, .sub-category-drawer__link:hover, .sub-category-drawer__link.active { color: var(--x2-turf) !important; }
.sub-category-drawer__link.active, .sports-category__item.active { background: var(--x2-stand-2) !important; }
.league-game-count, .sports-category .badge { background: var(--x2-flood) !important; color: #fff !important; }

/* ---------- Match cards ---------- */
.sports-card { background: var(--x2-stand) !important; border: 1px solid var(--x2-seam); border-radius: 14px !important; box-shadow: none !important; }
.sports-card__team-name { color: var(--x2-chalk) !important; font-family: var(--x2-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.sports-card__info-text { color: var(--x2-chalk-2) !important; }
.sports-card__stream, .sports-card__stream.live { color: var(--x2-flare) !important; }
.sports-card a, .sports-card .view-btn { color: var(--x2-flood-ink) !important; }

/* ---------- Odds buttons: solid green, like the homepage ---------- */
.oddBtn, .option-odd-list__item button {
  background: var(--x2-odds) !important; color: #fff !important; border: 0 !important; border-radius: 6px !important;
  font-family: var(--x2-display) !important; font-weight: 700 !important; font-size: 1.05rem !important;
  font-variant-numeric: tabular-nums; box-shadow: none !important;
  transition: background-color .15s, transform .12s cubic-bezier(.16, 1, .3, 1);
}
.oddBtn:hover, .option-odd-list__item button:hover { background: var(--x2-odds-hover) !important; color: #fff !important; }
.oddBtn:active { transform: scale(.97); }
.oddBtn.active, .option-odd-list__item button.active { background: var(--x2-chalk) !important; color: var(--x2-pitch) !important; }
.oddBtn.locked, .oddBtn:disabled, .option-odd-list__item button:disabled { background: var(--x2-odds-locked) !important; color: #9FD9B6 !important; opacity: 1 !important; cursor: not-allowed; }
.option-odd-list__item span, .option-odd-list__item small, .option-odd-list__item p { color: var(--x2-chalk-2) !important; }

/* Match page market buttons: name in the UI font, price in the scoreboard face */
.odd-list__option { font-family: var(--x2-ui) !important; font-size: .95rem !important; font-weight: 600 !important; }
.odd-list__option-text { color: #fff !important; font-family: var(--x2-ui); }
.odd-list__option-ratio { color: #fff !important; font-family: var(--x2-display); font-weight: 700; font-size: 1.15rem; }
.oddBtn.active .odd-list__option-text, .oddBtn.active .odd-list__option-ratio { color: var(--x2-pitch) !important; }
.odd-list__team-name { font-family: var(--x2-display); font-weight: 700; font-size: 1.2rem; color: var(--x2-chalk); }
.odd-list__team-divide { background: var(--x2-stand-2) !important; color: var(--x2-turf) !important; font-family: var(--x2-display); font-weight: 700; }
.accordion-button, .accordion-header { font-family: var(--x2-display) !important; font-weight: 700; font-size: 1.05rem; }
.accordion-button::after { filter: invert(1); }

/* Odds slider on the cards: a small solid arrow instead of a fade over the prices */
.option-odd-list .sports-category__arrow-next, .option-odd-list .sports-category__arrow-prev {
  background: transparent !important; color: var(--x2-chalk-2) !important; border: 0 !important;
  width: 20px !important; box-shadow: none !important;
}

/* Cookie notice */
.cookies-card { background: var(--x2-stand) !important; border: 1px solid var(--x2-seam); color: var(--x2-chalk) !important; box-shadow: 0 12px 32px rgba(0, 0, 0, .5) !important; }
.cookies-card p, .cookies-card__content { color: var(--x2-chalk-2) !important; }
.cookies-card__icon { background: var(--x2-stand-2) !important; color: var(--x2-turf) !important; }

/* Logo: same size as the homepage header */
.logo img, .header .logo img, .logo__is { max-height: 40px !important; width: auto !important; }

/* ---------- Bet slip ---------- */
.betslip, .betslip__body, .betslip__header, .betslip__footer, .betslip-wrapper { background: var(--x2-stand) !important; border-color: var(--x2-seam) !important; }
.betslip__header, .betslip .betslip__title { background: var(--x2-stand-2) !important; color: var(--x2-chalk) !important; font-family: var(--x2-display); }
.betTypeBtn, .bet-type__btn { background: var(--x2-band) !important; color: var(--x2-chalk-2) !important; border: 1px solid var(--x2-seam) !important; border-radius: 8px !important; }
.betTypeBtn.active, .bet-type__btn.active { background: var(--x2-flood) !important; color: #fff !important; border-color: var(--x2-flood) !important; }
.betslip__list-match, .betslip__list-content { color: var(--x2-chalk) !important; }
.betslip__list-ratio { color: var(--x2-turf) !important; font-family: var(--x2-display); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn--base, .btn--primary, .btn-primary { background: var(--x2-flood) !important; border-color: var(--x2-flood) !important; color: #fff !important; }
.btn--base:hover, .btn--primary:hover, .btn-primary:hover { background: #1D58C9 !important; }
.btn-light, .btn--light { background: var(--x2-stand-2) !important; color: var(--x2-chalk) !important; border-color: var(--x2-seam) !important; }
.btn--success, .btn-success { background: var(--x2-turf) !important; border-color: var(--x2-turf) !important; color: #03240F !important; }

/* ---------- Forms ---------- */
.form-control, .form--control, .form-select, .form--select .form-select, .input-group-text, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"] {
  background-color: var(--x2-band) !important; color: var(--x2-chalk) !important; border-color: var(--x2-seam) !important;
}
.form-control:focus, .form--control:focus, .form-select:focus { border-color: var(--x2-flood) !important; box-shadow: 0 0 0 3px rgba(36, 104, 232, .25) !important; }
.form-control::placeholder, .form--control::placeholder { color: var(--x2-chalk-3) !important; }
label, .form-label, .form--label { color: var(--x2-chalk-2) !important; }
.form-check-input { background-color: var(--x2-band); border-color: var(--x2-seam); }
.form-check-input:checked { background-color: var(--x2-flood); border-color: var(--x2-flood); }

/* ---------- Cards, tables, modals, menus (auth + dashboard) ---------- */
.card, .custom--card, .account-form, .login-area, .account-wrapper, .dashboard-widget, .widget, .modal-content, .dropdown-menu, .list-group-item, .accordion-item, .accordion-button {
  background: var(--x2-stand) !important; color: var(--x2-chalk) !important; border-color: var(--x2-seam) !important;
}
.card-header, .card-footer, .modal-header, .modal-footer { background: var(--x2-stand-2) !important; border-color: var(--x2-seam) !important; color: var(--x2-chalk) !important; }
.dropdown-item { color: var(--x2-chalk) !important; }
.dropdown-item:hover { background: var(--x2-stand-2) !important; }
.table, .custom--table { color: var(--x2-chalk) !important; --bs-table-bg: var(--x2-stand); --bs-table-color: var(--x2-chalk); border-color: var(--x2-seam) !important; }
.table thead th, .custom--table thead th { background: var(--x2-stand-2) !important; color: var(--x2-chalk) !important; border-color: var(--x2-seam) !important; }
.table td, .custom--table td { border-color: var(--x2-seam) !important; }
.btn-close, .close { filter: invert(1); }

/* ---------- Footer ---------- */
.footer, .footer-bottom, .footer-top, .sports-footer { background: var(--x2-band) !important; color: var(--x2-chalk-2) !important; border-color: var(--x2-seam) !important; }

/* ---------- Scrollbars and focus ---------- */
.simplebar-scrollbar::before { background: var(--x2-chalk-3); }
:focus-visible { outline: 2px solid var(--x2-flood-ink); outline-offset: 2px; }

/* ==========================================================================
   Desktop sidebar in the homepage style (partials/category.blade.php .x2-side)
   ========================================================================== */
.x2-side { display: none; }
@media (min-width: 992px) {
  /* the BetLab icon rail and leagues column give way to the homepage-style sidebar */
  .home-page .sports-category, .home-page .sports-sub-category, .home-page > .sub-category-drawer { display: none !important; }
  .home-page { background: var(--x2-pitch) !important; gap: 0; }
  .x2-side {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start;
    flex: 0 0 260px; width: 260px;
    position: sticky; top: 72px; max-height: calc(100vh - 84px); overflow-y: auto; scrollbar-width: thin;
    padding: 16px 0 16px 16px;
  }
  .x2-side::-webkit-scrollbar { width: 6px; }
  .x2-side::-webkit-scrollbar-thumb { background: var(--x2-seam); border-radius: 3px; }
}
.x2-side__search {
  display: flex; align-items: center; height: 46px; padding: 0 14px;
  border-radius: 10px; background: var(--x2-stand-2); border: 1px solid var(--x2-seam);
  transition: border-color .15s;
}
.x2-side__search:focus-within { border-color: var(--x2-flood); }
.x2-side__search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 !important; margin: 0;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: var(--x2-chalk) !important; font: 400 14px var(--x2-ui); outline: none;
}
.x2-side__search input::placeholder { color: var(--x2-chalk-3); }
.x2-side__search i { color: var(--x2-chalk-2); font-size: 20px; }
.x2-side__panel { padding: 6px; border-radius: 14px; background: var(--x2-stand); border: 1px solid var(--x2-seam); }
.x2-side__title { margin: 6px 8px 6px; font: 700 16px/1 var(--x2-display); color: var(--x2-chalk-2); letter-spacing: .02em; }
.x2-side__link, .x2-side__league {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--x2-chalk) !important; font: 500 14px/1.25 var(--x2-ui); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.x2-side__link:hover, .x2-side__league:hover { background: var(--x2-stand-2); }
.x2-side__link.is-active, .x2-side__league.is-active { background: var(--x2-stand-2); color: var(--x2-turf) !important; }
.x2-side__icon { width: 20px; display: grid; place-items: center; color: var(--x2-chalk-2); font-size: 19px; flex: none; }
.x2-side__icon i { font-size: 19px; }
.x2-side__link.is-active .x2-side__icon { color: var(--x2-turf); }
.x2-side__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x2-side__count {
  flex: none; min-width: 24px; padding: 2px 7px; border-radius: 999px; text-align: center;
  background: var(--x2-band); color: var(--x2-chalk-2); font: 600 12px/1.4 var(--x2-ui); font-variant-numeric: tabular-nums;
}
.x2-side__link.is-active .x2-side__count { background: var(--x2-odds); color: #fff; }
.x2-side__leagues { margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px solid var(--x2-seam); }
.x2-side__league { padding: 7px 8px; font-size: 13px; }
.x2-side__league img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.x2-side__empty { margin: 8px 10px; font-size: 13px; color: var(--x2-chalk-3); }
.x2-side [hidden] { display: none !important; }
.x2-side__promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 200px; padding: 18px; border: 0; border-radius: 14px; text-decoration: none; outline-offset: 3px;
  background: var(--x2-flood) url("/img/game1.jpg") center 40% / cover; background-blend-mode: luminosity;
}
.x2-side__promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6, 18, 42, .85) 0%, rgba(6, 18, 42, .6) 80%); }
.x2-side__promo-figure { font: 700 64px/.85 var(--x2-display); color: #F4C542; }
.x2-side__promo-figure small { font-size: .5em; }
.x2-side__promo-text { margin-top: 8px; color: var(--x2-chalk); font: 600 15px/1.3 var(--x2-ui); }
.x2-side__promo-cta {
  margin-top: 14px; height: 34px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--x2-turf); color: var(--x2-pitch); font: 600 13px var(--x2-ui);
}

/* Bet slip column: same panel look as the homepage slip */
@media (min-width: 992px) {
  .betslip { padding: 16px 16px 16px 0 !important; background: transparent !important; }
  .betslip__head, .betslip__body, .betslip__footer { border-radius: 14px !important; border: 1px solid var(--x2-seam) !important; }
}

/* ==========================================================================
   Polish after the taste-skill inspector (app mode)
   ========================================================================== */
/* Team badges stand plain, like the homepage, not in pale discs */
.sports-card__team-flag-img { background: transparent !important; padding: 0 !important; border-radius: 0 !important; object-fit: contain !important; }
.odd-list__team-img-is, .league-title__flag-img { background: transparent !important; border-radius: 0 !important; object-fit: contain; }
.cookies-card__icon { background: transparent !important; }
/* Nothing under 12px: the names under each price */
.option-odd-list__item span, .option-odd-list__item small, .option-odd-list__item p,
.text--extra-small, .sports-card__info-text { font-size: 12px !important; }
.oddBtn, .odd-list__option-ratio, .betslip__list-ratio, .x2-side__count { font-variant-numeric: tabular-nums; }
/* Links that sat on low contrast */
.betslip a, .footer-bottom a, .copyright a, .betslip__footer a, .betslip__list-odd { color: var(--x2-flood-ink) !important; }
/* The empty slip hugs its message instead of stretching a blank band */
@media (min-width: 992px) {
  .betslip__body:not(:has(.betslip__list li)) { height: auto !important; min-height: 0 !important; padding: 28px 16px !important; }
}
/* the page title is for screen readers only; keep its size out of the layout */
h1.visually-hidden { font-size: 1rem !important; }

/* Tablet and phone: keep text off the screen edge */
@media (max-width: 991px) {
  .app-nav { padding-left: 16px !important; padding-right: 16px !important; }
  .header-primary .container-fluid { padding-left: 16px !important; padding-right: 16px !important; }
  .sports-category__list { padding-left: 12px !important; padding-right: 12px !important; }
  .sports-sub-category .simplebar-content, .sports-sub-category .sports-category__list { padding-left: 12px !important; padding-right: 12px !important; }
}
/* selected sport / competition in the phone bar: turf, readable on navy */
.sports-category__link.active, .sports-category__link.active *, .sub-category-drawer__link.active, .sub-category-drawer__link.active * { color: var(--x2-turf) !important; }

/* ==========================================================================
   User dashboard (user/dashboard.blade.php .x2-dash) and account sidebar.
   Flat panels one tone step off the ground, figures in the scoreboard face,
   colour only on money outcomes: turf = won / money in, flare = lost / money out.
   ========================================================================== */
.user-dashboard { background: var(--x2-pitch) !important; padding-top: 24px; padding-bottom: 48px; }
.x2-dash { display: grid; gap: 16px; color: var(--x2-chalk); }

/* Title row */
.x2-dash__title { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.x2-dash__h1 { margin: 0; font: 700 30px/1 var(--x2-display) !important; letter-spacing: -.005em; color: var(--x2-chalk) !important; }
.x2-dash__sub { margin: 8px 0 0; color: var(--x2-chalk-2); font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; }
.x2-dash__sub a { color: var(--x2-flood-ink) !important; font-weight: 600; }
.x2-dash__sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--x2-chalk-3); margin: 0 10px; }
.x2-dash__actions { display: flex; gap: 8px; }

/* Buttons used on the dashboard */
.x2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font: 600 14px var(--x2-ui) !important; text-decoration: none !important;
  transition: background-color .15s, border-color .15s, transform .12s cubic-bezier(.16, 1, .3, 1);
}
.x2-btn:active { transform: scale(.97); }
.x2-btn--primary { background: var(--x2-turf) !important; color: #03240F !important; border: 0 !important; }
.x2-btn--primary:hover { background: #3BE095 !important; }
.x2-btn--ghost { background: transparent !important; color: var(--x2-chalk) !important; border: 1px solid var(--x2-seam) !important; }
.x2-btn--ghost:hover { border-color: var(--x2-chalk-3) !important; }

/* Notice (identity check) */
.x2-notice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 14px; background: var(--x2-stand); border: 1px solid var(--x2-seam);
}
.x2-notice--warn { border-color: rgba(244, 197, 66, .45); }
.x2-notice__title { margin: 0; font-weight: 600; color: var(--x2-chalk); }
.x2-notice--warn .x2-notice__title { color: #F4C542; }
.x2-notice__text { margin: 2px 0 0; font-size: 14px; color: var(--x2-chalk-2); max-width: 70ch; }

/* Grid: balance + record, chart + side column, transactions across */
.x2-dash__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.x2-trx { grid-column: 1 / -1; }
.x2-dash__side { display: grid; gap: 16px; }
@media (max-width: 1199px) { .x2-dash__grid { grid-template-columns: minmax(0, 1fr); } }

/* Cards */
.x2-card { padding: 20px; border-radius: 14px; background: var(--x2-stand); border: 1px solid var(--x2-seam); min-width: 0; }
.x2-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.x2-card__title { margin: 0 0 12px; font: 700 18px/1.1 var(--x2-display) !important; color: var(--x2-chalk) !important; letter-spacing: .005em; }
.x2-card__head .x2-card__title { margin: 0; }
.x2-card__text { margin: 0 0 12px; font-size: 14px; color: var(--x2-chalk-2); }
.x2-card__link { color: var(--x2-flood-ink) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.x2-card__link:hover { color: var(--x2-chalk) !important; }

/* Balance: the biggest figure on the screen */
.x2-balance__figure { margin: 0; font: 700 56px/1 var(--x2-display); font-variant-numeric: tabular-nums; color: var(--x2-chalk); letter-spacing: -.01em; overflow-wrap: anywhere; }
.x2-balance__facts { display: flex; gap: 32px; margin: 16px 0 20px; flex-wrap: wrap; }
.x2-balance__facts div { display: grid; gap: 2px; }
.x2-balance__facts dt { font-size: 13px; font-weight: 500; color: var(--x2-chalk-2); }
.x2-balance__facts dd { margin: 0; font: 700 20px/1.1 var(--x2-display); font-variant-numeric: tabular-nums; }
.x2-balance__facts dd a { color: var(--x2-chalk) !important; text-decoration: none; }
.x2-balance__facts dd a:hover { color: var(--x2-flood-ink) !important; }
.x2-balance__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Bet record: scoreline + one split bar */
.x2-record__score { margin: 4px 0 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 4px; font: 700 44px/1 var(--x2-display); font-variant-numeric: tabular-nums; }
.x2-record__score .is-won { color: var(--x2-turf); }
.x2-record__score .is-lost { color: var(--x2-flare); }
.x2-record__dash { color: var(--x2-chalk-3); margin: 0 4px; }
.x2-record__caption { flex-basis: 100%; margin-top: 4px; font: 500 13px var(--x2-ui); color: var(--x2-chalk-2); }
.x2-record__bar { display: flex; gap: 3px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--x2-band); }
.x2-record__bar span { flex-basis: 0; min-width: 6px; }
.x2-record .is-won, .x2-dot.is-won { --x2-tone: var(--x2-turf); }
.x2-record .is-lost, .x2-dot.is-lost { --x2-tone: var(--x2-flare); }
.x2-record .is-open, .x2-dot.is-open { --x2-tone: var(--x2-flood-ink); }
.x2-record .is-refunded, .x2-dot.is-refunded { --x2-tone: var(--x2-chalk-3); }
.x2-record__bar span, .x2-dot { background: var(--x2-tone); }
.x2-record__legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.x2-record__legend a { display: flex; align-items: center; gap: 8px; color: var(--x2-chalk-2) !important; font-size: 14px; text-decoration: none; }
.x2-record__legend a:hover { color: var(--x2-chalk) !important; }
.x2-record__legend b { margin-left: auto; color: var(--x2-chalk); font-variant-numeric: tabular-nums; }
.x2-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.x2-empty { margin: 4px 0 14px; color: var(--x2-chalk-2); font-size: 14px; }

/* Chart */
.x2-date {
  height: 34px; width: 210px; max-width: 100%; padding: 0 12px !important; border-radius: 8px !important;
  background: var(--x2-band) !important; border: 1px solid var(--x2-seam) !important; color: var(--x2-chalk) !important; font: 13px var(--x2-ui);
}
#betChart .apexcharts-text, #betChart .apexcharts-legend-text { fill: var(--x2-chalk-2) !important; color: var(--x2-chalk-2) !important; }
#betChart .apexcharts-tooltip { background: var(--x2-stand-2) !important; border: 1px solid var(--x2-seam) !important; color: var(--x2-chalk) !important; box-shadow: none !important; }
#betChart .apexcharts-tooltip-title { background: var(--x2-band) !important; border-color: var(--x2-seam) !important; }

/* Referral copy field */
.x2-copy { display: flex; gap: 8px; margin-bottom: 12px; padding: 0 !important; background: transparent !important; border: 0 !important; }
.x2-copy input { flex: 1; min-width: 0; height: 40px; padding: 0 12px !important; border-radius: 8px !important; background: var(--x2-band) !important; border: 1px solid var(--x2-seam) !important; color: var(--x2-chalk-2) !important; font: 13px var(--x2-ui); }

/* Support */
.x2-mini__row { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 14px; color: var(--x2-chalk-2); }
.x2-mini__row b { color: var(--x2-chalk); font: 700 18px/1 var(--x2-display); font-variant-numeric: tabular-nums; }
.x2-mini__links { display: flex; gap: 16px; margin-top: 12px; }

/* Transactions: rules and alignment, money right-aligned */
.x2-trx .bet-table { margin: 0; }
.x2-trx table { margin: 0 !important; background: transparent !important; border-collapse: collapse !important; border-spacing: 0 !important; }
.x2-trx th { background: transparent !important; color: var(--x2-chalk-2) !important; font: 500 13px var(--x2-ui) !important; text-transform: none !important; letter-spacing: 0 !important; border-bottom: 1px solid var(--x2-seam) !important; padding: 10px 12px !important; }
.x2-trx td { background: transparent !important; border-bottom: 1px solid var(--x2-seam) !important; padding: 12px !important; font-size: 14px; font-variant-numeric: tabular-nums; }
.x2-trx tr:last-child td { border-bottom: 0 !important; }
.x2-trx td:nth-child(3), .x2-trx td:nth-child(4), .x2-trx th:nth-child(3), .x2-trx th:nth-child(4) { text-align: right; }
.x2-trx .text-success { color: var(--x2-turf) !important; }
.x2-trx .text-danger { color: var(--x2-flare) !important; }

@media (max-width: 575px) {
  .x2-balance__figure { font-size: 44px; }
  .x2-dash__actions { width: 100%; }
  .x2-dash__actions .x2-btn { flex: 1; }
  .x2-card { padding: 16px; }
}

/* Account sidebar: the homepage's panel list */
.dashboard-sidebar { position: sticky; top: 88px; }
.dashboard-sidebar .widget-card--primary {
  background: var(--x2-stand) !important; border: 1px solid var(--x2-seam) !important; border-radius: 14px !important;
  box-shadow: none !important; margin-bottom: 14px; color: var(--x2-chalk) !important;
}
.dashboard-sidebar .widget-card--primary * { color: var(--x2-chalk); }
.widget-card__balance { font: 700 30px/1 var(--x2-display) !important; font-variant-numeric: tabular-nums; }
.widget-card__balance-text, .widget-card__id { color: var(--x2-chalk-2) !important; font-size: 13px !important; }
.widget-card__deposit { background: var(--x2-turf) !important; color: #03240F !important; border-radius: 999px !important; font-weight: 600 !important; border: 0 !important; }
.widget-card__reload { color: var(--x2-chalk-2) !important; background: transparent !important; }
.dashboard-menu { background: var(--x2-stand) !important; border: 1px solid var(--x2-seam) !important; border-radius: 14px !important; padding: 6px !important; box-shadow: none !important; }
.dashboard-menu__link, .dashboard-menu .accordion-button {
  display: flex !important; align-items: center; gap: 12px; padding: 9px 10px !important; border-radius: 8px !important;
  background: transparent !important; color: var(--x2-chalk) !important; font: 500 14px/1.25 var(--x2-ui) !important; box-shadow: none !important;
}
.dashboard-menu__link:hover, .dashboard-menu .accordion-button:hover { background: var(--x2-stand-2) !important; }
.dashboard-menu__link.active, .dashboard-menu .accordion-button.active, .has-submenu.active > .accordion-button { background: var(--x2-stand-2) !important; color: var(--x2-turf) !important; }
.dashboard-menu__icon, .accordion-button__icon { color: var(--x2-chalk-2) !important; background: transparent !important; font-size: 19px; width: 20px; }
.dashboard-menu__link.active .dashboard-menu__icon, .accordion-button.active .accordion-button__icon { color: var(--x2-turf) !important; }
.dashboard-menu__inner { margin: 2px 0 6px 20px !important; padding-left: 10px !important; border-left: 1px solid var(--x2-seam); }
.dashboard-menu__inner-link { display: block; padding: 7px 8px !important; border-radius: 6px; color: var(--x2-chalk-2) !important; font-size: 13px !important; }
.dashboard-menu__inner-link:hover, .dashboard-menu__inner-link.active { color: var(--x2-turf) !important; background: var(--x2-stand-2) !important; }
.dashboard-menu__head { background: var(--x2-stand-2) !important; color: var(--x2-chalk) !important; }
.user-header-primary { background: var(--x2-pitch) !important; border-bottom: 1px solid var(--x2-seam); }

/* Dashboard critique round 1 */
/* the balance already leads the dashboard; the sidebar copy stays on the other account pages */
.user-dashboard:has(.x2-dash) .dashboard-sidebar > .widget-card--primary { display: none !important; }
/* rows end together: stretch each row, pin the record's legend and the chart to their card's foot */
.x2-dash__grid { align-items: stretch; }
.x2-record, .x2-chart { display: flex; flex-direction: column; }
.x2-record__legend { margin-top: auto !important; padding-top: 14px; }
/* active menu item reads turf, text and icon */
.dashboard-menu__link.active .dashboard-menu__text, .dashboard-menu__link.active .dashboard-menu__icon,
.has-submenu.active > .accordion-button .accordion-button__text, .has-submenu.active > .accordion-button .accordion-button__icon { color: var(--x2-turf) !important; }
/* phone: the page keeps a 16px margin */
@media (max-width: 575px) { .user-dashboard > .container { padding-left: 16px !important; padding-right: 16px !important; } }
@media (max-width: 575px) { .x2-dash__h1 { font-size: 26px !important; } }

/* ==========================================================================
   Account shell (layouts/master.blade.php) + wallet-style dashboard
   Structure: grouped sidebar, top bar, balance band, transactions | invite + record.
   ========================================================================== */
.x2-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--x2-pitch); color: var(--x2-chalk); }

/* Sidebar */
.x2-shell__nav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin;
  padding: 24px 16px 32px; background: var(--x2-band); border-right: 1px solid var(--x2-seam);
}
.x2-shell__brand { display: block; padding: 4px 10px 18px; }
.x2-shell__brand img { height: 34px; width: auto; }
.x2-shell__group { margin: 18px 12px 6px; font: 600 13px var(--x2-ui); color: var(--x2-chalk-3); }
.x2-shell__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.x2-shell__link {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--x2-chalk-2) !important; font: 500 15px var(--x2-ui); text-decoration: none !important;
  transition: background-color .15s, color .15s;
}
.x2-shell__link i { font-size: 20px; width: 22px; text-align: center; color: var(--x2-chalk-3); }
.x2-shell__link:hover { background: var(--x2-stand); color: var(--x2-chalk) !important; }
.x2-shell__link.is-active { background: var(--x2-stand-2); color: var(--x2-chalk) !important; }
.x2-shell__link.is-active i { color: var(--x2-turf); }
.x2-shell__logout { margin-top: 18px; }

/* Top bar */
.x2-shell__main { min-width: 0; display: flex; flex-direction: column; }
.x2-shell__top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  height: 76px; padding: 0 32px; background: var(--x2-pitch); border-bottom: 1px solid var(--x2-seam);
}
.x2-shell__menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--x2-seam); background: transparent; color: var(--x2-chalk); font-size: 22px; }
.x2-shell__welcome { margin: 0; font: 700 24px/1 var(--x2-display); color: var(--x2-chalk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x2-shell__search {
  margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(360px, 40vw); height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--x2-stand); border: 1px solid var(--x2-seam); transition: border-color .15s;
}
.x2-shell__search:focus-within { border-color: var(--x2-flood); }
.x2-shell__search i { color: var(--x2-chalk-2); font-size: 18px; }
.x2-shell__search input { flex: 1; min-width: 0; height: 100%; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--x2-chalk) !important; font: 14px var(--x2-ui); outline: none; }
.x2-shell__search input::placeholder { color: var(--x2-chalk-3); }
.x2-shell__content { padding: 0 32px 48px; }
/* pages other than the dashboard start below the bar with breathing room */
.x2-shell__content > :first-child:not(.x2-hero) { margin-top: 28px; }

/* Buttons */
.x2-btn--light { background: var(--x2-stand-2) !important; color: var(--x2-chalk) !important; border: 1px solid var(--x2-seam) !important; }
.x2-btn--light:hover { border-color: var(--x2-chalk-3) !important; }
.x2-btn--block { display: flex; width: 100%; }
.x2-btn i { font-size: 17px; }
.x2-link { color: var(--x2-flood-ink) !important; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.x2-link:hover { color: var(--x2-chalk) !important; }

/* Balance band: full width of the content, the stadium photo under a navy scrim */
.x2-hero {
  margin: 0 -32px 28px; padding: 40px 32px 36px; min-height: 220px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--x2-stand) url("/img/banner.jpg") center 35% / cover;
  position: relative; isolation: isolate; border-bottom: 1px solid var(--x2-seam);
}
.x2-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 18, 42, .94) 0%, rgba(6, 18, 42, .82) 55%, rgba(6, 18, 42, .55) 100%); }
.x2-hero__figure { margin: 0; font: 700 clamp(48px, 6vw, 76px)/.95 var(--x2-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--x2-chalk); }
.x2-hero__cur { margin-left: 12px; color: var(--x2-chalk-3); }
.x2-hero__label { margin: 10px 0 0; font-size: 16px; color: var(--x2-chalk-2); }
.x2-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.x2-hero__actions .x2-btn { height: 46px; padding: 0 20px; }

/* Home grid */
.x2-home { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
.x2-home__side { display: grid; gap: 20px; }
.x2-shell .x2-notice { margin-bottom: 24px; }

/* Transactions list */
.x2-txns__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.x2-txns__title { margin: 0; font: 700 26px/1.1 var(--x2-display) !important; color: var(--x2-chalk) !important; }
.x2-txns__list { list-style: none; margin: 0; padding: 0; }
.x2-txn { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.x2-txn__icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--x2-seam); color: var(--x2-chalk-2); font-size: 22px;
}
.x2-txn__main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.x2-txn__title { font-size: 16px; font-weight: 500; color: var(--x2-chalk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x2-txn__meta { font-size: 13px; color: var(--x2-chalk-2); }
.x2-txn__amount { flex: none; font: 700 21px/1 var(--x2-display); font-variant-numeric: tabular-nums; color: var(--x2-chalk); white-space: nowrap; }
.x2-txn__amount.is-in { color: var(--x2-turf); }
.x2-txn__cur { margin-left: 5px; font-size: 15px; color: var(--x2-chalk-3); }
.x2-txns__empty { padding: 28px 0; display: grid; gap: 14px; justify-items: start; color: var(--x2-chalk-2); }
.x2-txns__empty p { margin: 0; }

/* Invite card: a ticket-stub edge (dashed, in the turf) */
.x2-invite { padding: 22px 24px; border-radius: 16px; background: rgba(31, 208, 127, .06); border: 1.5px dashed rgba(31, 208, 127, .5); }
.x2-invite__title { margin: 0; font: 700 24px/1.1 var(--x2-display) !important; color: var(--x2-chalk) !important; }
.x2-invite__text { margin: 8px 0 16px; font-size: 15px; color: var(--x2-chalk-2); }
.x2-invite .x2-copy { margin: 0; }

/* Bet record card */
.x2-recordcard { padding: 22px 24px; border-radius: 16px; background: var(--x2-stand); border: 1px solid var(--x2-seam); display: grid; gap: 0; }
.x2-recordcard__title { margin: 0 0 6px; font: 600 17px var(--x2-ui) !important; color: var(--x2-chalk) !important; }
.x2-recordcard__score { margin: 0; display: flex; align-items: baseline; gap: 4px; font: 700 44px/1 var(--x2-display); font-variant-numeric: tabular-nums; }
.x2-recordcard__score .is-won { color: var(--x2-turf); }
.x2-recordcard__score .is-lost { color: var(--x2-flare); }
.x2-recordcard__dash { color: var(--x2-chalk-3); margin: 0 4px; }
.x2-recordcard__unit { margin-left: 10px; font: 600 18px/1 var(--x2-display); color: var(--x2-chalk-3); }
.x2-recordcard__sub { margin: 8px 0 16px; font-size: 14px; color: var(--x2-chalk-2); }
.x2-ladder { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 3px; height: 24px; }
.x2-ladder span { border-radius: 3px; background: var(--x2-tone); }
.x2-ladder .is-won, .x2-recordcard .x2-dot.is-won { --x2-tone: var(--x2-turf); }
.x2-ladder .is-lost, .x2-recordcard .x2-dot.is-lost { --x2-tone: var(--x2-flare); }
.x2-ladder .is-open, .x2-recordcard .x2-dot.is-open { --x2-tone: var(--x2-flood-ink); }
.x2-ladder .is-refunded, .x2-recordcard .x2-dot.is-refunded { --x2-tone: var(--x2-chalk-3); }
.x2-recordcard .x2-dot { background: var(--x2-tone); }
.x2-recordcard__legend { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.x2-recordcard__legend a { display: flex; align-items: center; gap: 8px; color: var(--x2-chalk-2) !important; font-size: 14px; text-decoration: none; }
.x2-recordcard__legend a:hover { color: var(--x2-chalk) !important; }
.x2-recordcard__legend b { margin-left: auto; color: var(--x2-chalk); font-variant-numeric: tabular-nums; }
.x2-recordcard__open { margin-bottom: 16px; padding: 16px; border-radius: 12px; text-align: center; background: var(--x2-band); border: 1px dashed var(--x2-seam); }
.x2-recordcard__open-label { margin: 0; font-size: 14px; color: var(--x2-chalk-2); }
.x2-recordcard__open-figure { margin: 4px 0 0; font: 700 34px/1 var(--x2-display); color: var(--x2-flood-ink); font-variant-numeric: tabular-nums; }
.x2-recordcard__open-figure span { font: 500 15px var(--x2-ui); color: var(--x2-chalk-2); }

/* Tablet / phone: the sidebar becomes a drawer */
@media (max-width: 1199px) { .x2-home { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 991px) {
  .x2-shell { grid-template-columns: minmax(0, 1fr); }
  .x2-shell__nav {
    position: fixed; z-index: 1000; left: 0; top: 0; width: 280px; transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
  }
  .x2-shell__nav.is-open { transform: none; box-shadow: 12px 0 32px rgba(0, 0, 0, .45); }
  .x2-shell__menu { display: grid; place-items: center; flex: none; }
  .x2-shell__top { padding: 0 16px; gap: 12px; height: 64px; }
  .x2-shell__welcome { font-size: 20px; }
  .x2-shell__search { display: none; }
  .x2-shell__bet { margin-left: auto; height: 38px; padding: 0 14px; }
  .x2-shell__content { padding: 0 16px 96px; }
  .x2-hero { margin: 0 -16px 20px; padding: 28px 16px; min-height: 0; }
  .x2-hero__actions { width: 100%; }
  .x2-hero__actions .x2-btn { flex: 1; padding: 0 12px; }
}
@media (max-width: 575px) {
  .x2-txn__icon { width: 44px; height: 44px; font-size: 19px; }
  .x2-txn__amount { font-size: 18px; }
  .x2-txn__cur { display: none; }
}
@media (prefers-reduced-motion: reduce) { .x2-shell__nav { transition: none; } }

/* ==========================================================================
   App header: the homepage bar's proportions (72px, centred, room to breathe)
   ========================================================================== */
.header-primary { padding: 0 !important; border-bottom: 1px solid var(--x2-seam) !important; }
.header-primary .container-fluid, .header-primary .container { padding-left: 24px !important; padding-right: 24px !important; }
/* only the outer bar draws the line; the inner row had a second one */
.header-fluid-custom-parent, .header-fluid, .header-top, .header-bottom { border-bottom: 0 !important; background: transparent !important; }
.header-primary .header-fluid-custom-parent { min-height: 72px; align-items: center; gap: 32px; }
.header-primary .logo, .header-primary .logo a { display: flex; align-items: center; }
.header-primary .logo img { max-height: 36px !important; }
.header-primary .primary-menu-container { flex: 1; min-width: 0; display: flex; align-items: center; gap: 24px; }
.header-primary .primary-menu-lg { gap: 10px !important; align-items: center; }
.header-primary .right-side-nav { gap: 22px !important; align-items: center; margin-left: auto; }
.header-primary .right-side-nav > li { display: flex; align-items: center; }
.header-primary .btn--signup, .header-primary .btn--login { height: 40px; padding: 0 20px !important; display: inline-flex; align-items: center; line-height: 1; }
.header-primary .select-lang .form-select, .header-primary .oddsType { height: 40px; padding-top: 0 !important; padding-bottom: 0 !important; }
@media (min-width: 992px) { .x2-side { top: 84px; max-height: calc(100vh - 96px); } }
@media (max-width: 991px) {
  .header-primary .container-fluid, .header-primary .container { padding-left: 16px !important; padding-right: 16px !important; }
  .header-primary .header-fluid-custom-parent { min-height: 64px; gap: 16px; }
}

/* Bet slip items: readable market name and price */
.betslip__list-match, .betslip__list-team { color: var(--x2-chalk) !important; font-weight: 600; }
.betslip__list-question, .betslip__list-text { color: var(--x2-chalk-2) !important; }
.betslip__list-ratio { color: var(--x2-turf) !important; font: 700 18px/1.2 var(--x2-display) !important; }
.betslip__list-close { color: var(--x2-flare) !important; }
.betslip-return, .bet-return-amount { color: var(--x2-chalk-2) !important; }
.investAmount { background: var(--x2-band) !important; color: var(--x2-chalk) !important; border: 1px solid var(--x2-seam) !important; border-radius: 8px !important; }

/* Header controls in the homepage's button language:
   Dashboard / Sign up = green pill with icon; odds and language = outlined pills */
.header-primary .btn--signup, .header-primary .btn--login {
  gap: 8px; height: 40px; padding: 0 18px !important; border-radius: 999px !important;
  font: 600 14px var(--x2-ui) !important; letter-spacing: 0;
}
.header-primary .btn__icon { width: 18px; height: 18px; flex: none; }
.header-primary .select-lang--container { padding: 0 !important; }
.header-primary .select-lang {
  height: 40px; align-items: center; gap: 8px; padding: 0 34px 0 16px;
  border: 1px solid var(--x2-seam); border-radius: 999px; background: transparent;
  transition: border-color .15s;
}
.header-primary .select-lang:hover, .header-primary .select-lang:focus-within { border-color: var(--x2-chalk-3); }
.header-primary .select-lang::before { right: 14px !important; height: auto; font-size: 13px; color: var(--x2-chalk-2) !important; }
.header-primary .select-lang .form-select, .header-primary .select-lang .oddsType, .header-primary .select-lang .langSel {
  -webkit-appearance: none; appearance: none; width: auto; min-width: 0; height: 100%; margin: 0;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: transparent none !important; color: var(--x2-chalk) !important;
  font: 500 14px var(--x2-ui) !important; cursor: pointer;
}
.header-primary .select-lang__icon { position: static !important; transform: none !important; color: var(--x2-chalk-2) !important; font-size: 16px; line-height: 1; }
.header-primary .select-lang option { background: var(--x2-stand); color: var(--x2-chalk); }

/* ==========================================================================
   News (blog.blade.php, blog_details.blade.php): hero band, 3-column cards,
   article with a narrow reading column. Structure after the brief's reference.
   ========================================================================== */
.x2-newshero { padding: 72px 0 64px; background: var(--x2-band); border-bottom: 1px solid var(--x2-seam); }
.x2-newshero__title { margin: 0; max-width: 18ch; font: 700 clamp(40px, 5vw, 64px)/.98 var(--x2-display) !important; letter-spacing: -.01em; color: var(--x2-chalk) !important; }
.x2-newshero__text { margin: 18px 0 0; max-width: 56ch; font-size: 18px; line-height: 1.55; color: var(--x2-chalk-2); }

.x2-news { padding: 56px 0 88px; background: var(--x2-pitch); }
.x2-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991px) { .x2-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .x2-news__grid { grid-template-columns: minmax(0, 1fr); } }
.x2-news__empty { color: var(--x2-chalk-2); }
.x2-news__pages { margin-top: 48px; display: flex; justify-content: center; }
.x2-news__pages .pagination { gap: 6px; margin: 0; }
.x2-news__pages .page-link { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px !important; background: var(--x2-stand) !important; border: 1px solid var(--x2-seam) !important; color: var(--x2-chalk) !important; font-weight: 600; }
.x2-news__pages .page-item.active .page-link { background: var(--x2-flood) !important; border-color: var(--x2-flood) !important; color: #fff !important; }
.x2-news__pages .page-item.disabled .page-link { color: var(--x2-chalk-3) !important; }

/* Post card */
.x2-post { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--x2-stand); border: 1px solid var(--x2-seam); transition: border-color .15s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.x2-post:hover { border-color: var(--x2-chalk-3); transform: translateY(-2px); }
.x2-post__thumb { display: block; aspect-ratio: 83 / 50; overflow: hidden; background: var(--x2-band); }
.x2-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x2-post__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.x2-post__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; font-size: 13px; color: var(--x2-chalk-2); }
.x2-post__title { margin: 0; font: 700 22px/1.2 var(--x2-display) !important; letter-spacing: .002em; }
.x2-post__title a { color: var(--x2-chalk) !important; text-decoration: none; }
.x2-post__title a:hover { color: var(--x2-flood-ink) !important; }
.x2-post__excerpt { margin: 10px 0 18px; font-size: 15px; line-height: 1.55; color: var(--x2-chalk-2); }
.x2-post__more { margin-top: auto; align-self: start; color: var(--x2-flood-ink) !important; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.x2-post__more:hover { color: var(--x2-chalk) !important; }

/* Category chips: one tint per kind of post */
.x2-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font: 600 12px var(--x2-ui); background: rgba(127, 176, 255, .14); color: var(--x2-flood-ink); }
.x2-chip--sport-news { background: rgba(31, 208, 127, .14); color: var(--x2-turf); }
.x2-chip--betting-basics { background: rgba(127, 176, 255, .14); color: var(--x2-flood-ink); }
.x2-chip--sport-explainers { background: rgba(244, 197, 66, .14); color: #F4C542; }
.x2-chip--responsible-play { background: rgba(255, 90, 107, .14); color: #FF8A96; }
.x2-chip--platform-updates { background: rgba(169, 184, 214, .14); color: var(--x2-chalk); }

/* Article */
.x2-article { background: var(--x2-pitch); padding-bottom: 72px; }
.x2-article__head { padding: 48px 0 32px; background: var(--x2-band); }
.x2-article__narrow { width: min(720px, calc(100% - 32px)); margin: 0 auto; }
.x2-article__back { display: inline-block; margin-bottom: 22px; color: var(--x2-flood-ink) !important; font-weight: 600; font-size: 14px; }
.x2-article__back::before { content: "\2190"; margin-right: 6px; }
.x2-article__title { margin: 4px 0 24px; font: 700 clamp(34px, 4.6vw, 54px)/1.02 var(--x2-display) !important; letter-spacing: -.008em; color: var(--x2-chalk) !important; }
.x2-article__byline { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--x2-seam); font-size: 14px; color: var(--x2-chalk-2); line-height: 1.35; }
.x2-article__byline strong { color: var(--x2-chalk); }
.x2-article__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--x2-stand-2); overflow: hidden; }
.x2-article__avatar img { width: 100%; height: 100%; object-fit: cover; }
.x2-article__cover { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding-top: 8px; position: relative; }
.x2-article__head + .x2-article__cover { margin-top: -8px; }
.x2-article__cover img { width: 100%; height: auto; aspect-ratio: 83 / 50; object-fit: cover; border-radius: 16px; display: block; }
.x2-article__cover figcaption { margin-top: 8px; font-size: 12px; color: var(--x2-chalk-3); text-align: right; }

.x2-article__body { padding-top: 40px; font-size: 18px; line-height: 1.7; color: var(--x2-chalk); }
.x2-article__body p { margin: 0 0 20px; }
.x2-article__body h2 { margin: 40px 0 14px; font: 700 30px/1.15 var(--x2-display) !important; color: var(--x2-chalk) !important; }
.x2-article__body h3 { margin: 28px 0 10px; font: 700 22px/1.2 var(--x2-display) !important; }
.x2-article__body ul, .x2-article__body ol { margin: 0 0 22px; padding-left: 22px; }
.x2-article__body li { margin-bottom: 8px; }
.x2-article__body li::marker { color: var(--x2-turf); }
.x2-article__body strong { color: #fff; }
.x2-article__body a { color: var(--x2-flood-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.x2-table { margin: 8px 0 26px; overflow-x: auto; border: 1px solid var(--x2-seam); border-radius: 12px; }
.x2-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.x2-table th { text-align: left; padding: 12px 14px; background: var(--x2-stand-2); color: var(--x2-chalk-2); font-weight: 600; font-size: 13px; }
.x2-table td { padding: 12px 14px; border-top: 1px solid var(--x2-seam); font-variant-numeric: tabular-nums; }
.x2-note { margin: 26px 0; padding: 18px 20px; border-radius: 12px; background: var(--x2-stand); border: 1px solid var(--x2-seam); border-left: 3px solid var(--x2-turf); }
.x2-note p { margin: 0; font-size: 16px; color: var(--x2-chalk-2); }
.x2-note .x2-note__title { margin-bottom: 4px; font-weight: 700; color: var(--x2-chalk); font-size: 16px; }
.x2-source { margin-top: 28px !important; font-size: 13px !important; color: var(--x2-chalk-3); }
.x2-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 16px; background: var(--x2-flood); }
.x2-cta__title { margin: 0 !important; font: 700 22px/1.15 var(--x2-display); color: #fff; }
.x2-cta__text { margin: 4px 0 0 !important; font-size: 15px; color: #DCE7FF; }
.x2-more { padding-top: 64px; }
.x2-more__title { margin: 0 0 24px; font: 700 30px/1.1 var(--x2-display) !important; color: var(--x2-chalk) !important; }
@media (max-width: 599px) {
  .x2-newshero { padding: 48px 0 40px; }
  .x2-article__body { font-size: 17px; }
  .x2-cta .x2-btn { width: 100%; }
}

/* News critique round 1 */
.x2-newshero { border-bottom: 0; }
.x2-post { border: 0; }
.x2-post:hover { border: 0; background: var(--x2-stand-2); }
.x2-post__excerpt { font-size: 16px; }
.x2-chip { height: 26px; font-size: 13px; }
.x2-article__cover figcaption { font-size: 13px; }
.x2-article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; font-size: 14px; color: var(--x2-chalk-2); }
.x2-article__byline { border-top: 0; padding-top: 0; }
.x2-note { border: 0; border-left: 0; background: var(--x2-stand-2); }
.x2-article__body .x2-cta .x2-btn--primary, .x2-article__body .x2-cta .x2-btn--primary:hover { color: #03240F !important; text-decoration: none; }
.x2-newshero .container, .x2-news .container, .x2-more .container { padding-left: 16px; padding-right: 16px; }
@media (max-width: 599px) {
  .x2-article__title { font-size: 32px !important; }
  .x2-post__title { font-size: 20px !important; }
}
.x2-cta__text { color: #fff !important; }

/* Phones and tablets: iPhone Safari zooms into any field with text under 16px and never zooms back.
   16px text in every field stops that, while pinch-zoom still works for anyone who needs it. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  select, textarea, .form-control, .form-select, .form--control { font-size: 16px !important; }
}

/* ---------- Match card odds: an even grid under the teams (markets with up to 3 choices) ---------- */
.option-odd-list.is-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.option-odd-list.is-grid .option-odd-list__item { width: auto !important; min-width: 0; display: block !important; }
.option-odd-list.is-grid .option-odd-list__item > div { display: grid; gap: 4px; min-width: 0; }
.option-odd-list.is-grid .option-odd-list__item button { width: 100%; min-width: 0; }
.option-odd-list.is-grid .option-odd-list__item span {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center; font-size: 12px !important; line-height: 1.3;
}
/* Slimmer odds buttons everywhere on the cards */
.sports-card .option-odd-list__item button { height: 38px; padding: 0 8px !important; font-size: 1rem !important; line-height: 38px; }
@media (max-width: 575px) {
  .sports-card .option-odd-list__item button { height: 36px; line-height: 36px; font-size: .95rem !important; }
}

/* ---------- Responsible gambling notice (footer, same as the homepage) ---------- */
.x2-rg { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 760px; margin: 0 auto 18px; padding-bottom: 18px; border-bottom: 1px solid var(--x2-seam); font-size: 13px; line-height: 1.55; color: var(--x2-chalk-2); text-align: center; }
@media (max-width: 640px) { .x2-rg { flex-direction: column; gap: 10px; } }
.x2-rg__badge { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--x2-flare); font: 700 15px/1 var(--x2-display); color: var(--x2-chalk); }
.x2-rg__text { min-width: 0; }
.x2-rg__text p { margin: 0; color: var(--x2-chalk-2) !important; }
.x2-rg__contact { margin-top: 6px !important; }
.x2-rg a { color: var(--x2-chalk) !important; text-decoration: underline; text-underline-offset: 2px; }
.x2-rg a:hover { color: var(--x2-flood-ink) !important; }
