/* Copy Animation */
:root {
  /*
    The template uses both --base and --primary for "brand" accents.
    Admin "Site Base Color" updates --base (via color.php). Map --primary (and --main used by this file)
    to --base so more UI elements follow the chosen brand color consistently.
  */
  --primary: var(--base);
  --main: var(--base);
}

/*
  Constrain site width on larger monitors for better readability.
  Up to 1920px wide, the layout uses the full width.
  Above that, the main content stays at 1920px and is centered.
*/
@media screen and (min-width: 1400px) {
  /* Make the outer gutters match the dark header/sidebar instead of pure white */
  body {
    background: var(--header-sidebar-bg);
  }

  /* Header: bar stays full-width, inner content is constrained */
  .header-primary .container-fluid {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Main layout wrapper (sidebar + content + bet slip) */
  .home-page {
    max-width: 1920px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  /* Let the center column shrink so bet slip and content fit; prevents overflow on wide screens */
  .home-page > .sports-body {
    min-width: 0;
  }
}

/* Prevent odds cards from causing horizontal page scroll on any screen */
.sports-body {
  overflow-x: hidden;
  max-width: 100%;
}

@media screen and (min-width: 1400px) {
  /* Footer: constrain inner content */
  .footer-bottom .container-fluid {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer.footer--light {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  /*
    User dashboard: light text only when body has dark background (this breakpoint).
    Below 1400px the body is light, so default dark text stays readable.
  */
  .user-dashboard .dashboard-sidebar .dashboard-menu__link,
  .user-dashboard .dashboard-sidebar .dashboard-menu__text,
  .user-dashboard .dashboard-sidebar .dashboard-menu__icon {
    color: #e8e8e8 !important;
  }
  .user-dashboard .dashboard-sidebar .dashboard-menu__link:hover .dashboard-menu__icon,
  .user-dashboard .dashboard-sidebar .dashboard-menu__link:hover .dashboard-menu__text {
    color: #ffab91 !important;
  }
  .user-dashboard .dashboard-sidebar .dashboard-menu__link.active,
  .user-dashboard .dashboard-sidebar .dashboard-menu__link.active .dashboard-menu__icon,
  .user-dashboard .dashboard-sidebar .dashboard-menu__link.active .dashboard-menu__text {
    color: #ffab91 !important;
  }
  .user-dashboard .dashboard-right h5,
  .user-dashboard .dashboard-right .pageTitle,
  .user-dashboard .dashboard-right .mb-4 h5 {
    color: #eee !important;
  }

  /* Section titles on dark body: force light text so they stay legible */
  body .sports-menu__title,
  body .markets-category__title {
    color: #e8e8e8 !important;
  }
  body .markets-category__title {
    border-bottom-color: hsl(0 0% 100% / 0.2);
  }
  /* Subgroup toggles (e.g. Points, Rebounds under Player props) on dark background */
  body .markets-subgroup__toggle {
    color: #e8e8e8 !important;
    background: hsl(0 0% 100% / 0.08);
    border-color: hsl(0 0% 100% / 0.2);
    border-left-color: hsl(var(--base));
  }
  body .markets-subgroup__toggle:hover,
  body .markets-subgroup__toggle:not(.collapsed) {
    color: #fff !important;
    background: hsl(0 0% 100% / 0.12);
    border-color: hsl(0 0% 100% / 0.25);
  }
  body .markets-subgroup__toggle::after {
    color: #e8e8e8;
  }
}

/*
  When system/browser is in dark mode, section titles on the main content must stay light
  (covers viewports under 1400px where the browser may still force a dark canvas).
*/
@media (prefers-color-scheme: dark) {
  body .sports-menu__title,
  body .markets-category__title {
    color: #e8e8e8 !important;
  }
  body .markets-category__title {
    border-bottom-color: hsl(0 0% 100% / 0.2);
  }
  body .markets-subgroup__toggle {
    color: #e8e8e8 !important;
    background: hsl(0 0% 100% / 0.08);
    border-color: hsl(0 0% 100% / 0.2);
    border-left-color: hsl(var(--base));
  }
  body .markets-subgroup__toggle:hover,
  body .markets-subgroup__toggle:not(.collapsed) {
    color: #fff !important;
    background: hsl(0 0% 100% / 0.12);
    border-color: hsl(0 0% 100% / 0.25);
  }
  body .markets-subgroup__toggle::after {
    color: #e8e8e8;
  }
}

/*
  Header & sidebar: dark background for white-dominant logo (Bettah v2 with coral/light blue accents).
  Change --header-sidebar-bg to try other colors.
*/
:root {
  --header-sidebar-bg: #0a0a0a;
  --header-sidebar-border: #2a2a2a;
  --header-sidebar-text: #fff;
}
.header-primary,
.sports-category,
.app-nav,
.app-nav__drawer {
  background: var(--header-sidebar-bg) !important;
  border-color: var(--header-sidebar-border) !important;
}
.header-primary {
  border-bottom: 1px solid var(--header-sidebar-border);
}
.sports-category {
  border-right-color: var(--header-sidebar-border) !important;
}
/* Light text on dark header/sidebar */
.header-primary a,
.header-primary .text-white,
.header-primary .text-muted,
.header-primary .language-text,
.header-primary .user-profile-btn,
.sports-category__text,
.sports-category__icon,
.app-nav__menu-text,
.app-nav__menu-icon,
.app-nav__drawer-link,
.app-nav__drawer-text,
.app-nav__drawer-icon {
  color: var(--header-sidebar-text) !important;
}
.header-primary .dropdown-menu,
.header-primary .form-select {
  background: hsl(0, 0%, 100%);
  color: hsl(0, 0%, 20%);
}

/* Header balance box (logged-in users) */
.header-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.header-primary .header-balance,
.header-primary .header-balance i {
  color: #fff !important;
}
.header-balance i {
  font-size: 1rem;
}
/* Profile dropdown: ensure menu items are readable (dark text on white) */
.header-primary .user-profile-dropdown .dropdown-menu .dropdown-item {
  color: #1a1a1a !important;
}
.header-primary .user-profile-dropdown .dropdown-menu .dropdown-item:hover,
.header-primary .user-profile-dropdown .dropdown-menu .dropdown-item:focus {
  background: hsl(0, 0%, 96%);
  color: #1a1a1a !important;
}
.sports-category__link:hover .sports-category__icon,
.sports-category__link:hover .sports-category__text,
.app-nav__drawer-link:hover {
  color: #ffab91 !important;
}
.sports-category__link.active .sports-category__icon,
.sports-category__link.active .sports-category__text {
  color: #ffab91 !important;
}
.app-nav__menu-link.active .app-nav__menu-icon {
  color: #ffab91 !important;
}
.app-nav__menu-link-important {
  background: #ff7043 !important;
  border-color: #fff !important;
  color: #fff !important;
}

.base-color {
  color: hsl(var(--main)) !important;
}

/*
  Login modal: ensure "Don't have account?" and "Create account" are readable on white background.
*/
.login-modal .modal-body .sm-text,
.login-modal .modal-body span.sm-text {
  color: #333 !important;
}
.login-modal .modal-body a.t-link--base,
.login-modal .modal-body .t-link--base.base-clr {
  color: #0d6efd !important;
}
.login-modal .modal-body a.t-link--base:hover,
.login-modal .modal-body .t-link--base.base-clr:hover {
  color: #0a58ca !important;
}

/* Dashboard date range input: just wide enough for full range (e.g. 02/12/2026 - 02/12/2026) */
.user-dashboard input#date,
.user-dashboard input.form-control[name="date"] {
  min-width: 192px;
  width: 192px;
}

/*
  Homepage empty state: keep "No game available" visible and clearly above the footer.
  Default .empty-message height can collapse on short viewports and footer overlaps it.
*/
.sports-body .empty-message {
  min-height: 220px;
  margin-bottom: 1.5rem;
  padding: 2rem 1rem;
}
.sports-body .footer.footer--light {
  margin-top: 0.5rem;
}

/*
  Bet slip header buttons: ensure "Bet Slip" and "My Bets" are readable on both dark and light backgrounds.
  Unchecked buttons get a light background with dark text; checked/hovered buttons use colored background with white text.
*/
.betslip .bet-type__btn {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #333 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}
.betslip .bet-type__btn:hover,
.betslip .bet-type__btn:has(input:checked) {
  background: hsl(var(--base)) !important;
  color: #fff !important;
  border-color: hsl(var(--base)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: #ff7000;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}

.cookies-card {
  width: 520px;
  padding: 30px;
  color: #1e2337;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all 0.5s;
  background: #d1d1d1;
  border-radius: 5px;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #6e6f70;
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}

@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }
}

.hover-input-popup {
  position: relative;
  z-index: 9999;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 5px !important;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: "";
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  content: "";
  font-family: "Line Awesome Free";
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}

.show-filter {
  display: none;
}

@media (max-width: 767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}

/* ////////////////// select 2 css //////////////// */
.select2-dropdown {
  border: 0 !important;
  margin-top: 8px !important;
  border-radius: 5px !important;
  box-shadow: 0 3px 9px rgba(50, 50, 9, 0.05),
    6px 4px 19px rgb(115 103 240 / 20%);
}

.select2-search--dropdown {
  padding: 10px 10px !important;
  border-color: #ced4da !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: #ced4da !important;
  padding: 10px 20px;
}

.select2-results__option.select2-results__option--selected,
.select2-results__option--selectable,
.select2-container--default .select2-results__option--disabled {
  padding: 12px 14px !important;
  border-bottom: 1px solid #eee;
}

.select2-results__option.select2-results__message {
  text-align: center !important;
  padding: 12px 14px !important;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar {
  width: 8px;
  border-radius: 5px;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar-thumb {
  background: #ddd;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #ddd;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  display: none;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow:after {
  position: absolute;
  right: 10px;
  top: 0;
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  transition: 0.3s;
}

.select2-container--default .select2-selection--single {
  border-color: #d9d9d9 !important;
  border-width: 1px !important;
  border-radius: 0.375rem !important;
  padding: 0.375rem 0.75rem !important;
  height: 100% !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 31px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 8px !important;
}

.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow:after {
  transform: rotate(-180deg);
}

.select2-results__option:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.select2-results__option:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.select2-results__option.select2-results__option--selected,
.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #f1f1f1 !important;
  color: #000 !important;
}

.select2-container--default
  .select2-search--dropdown
  .select2-search__field:focus {
  border-color: hsl(var(--base)) !important;
  box-shadow: 0 0 25px rgba(115, 103, 240 0.071) !important;
  outline: 0 !important;
}

.select2-dropdown .country-flag {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.select2-dropdown .gateway-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0px !important;
}

.select2-dropdown .gateway-subtitle {
  font-size: 12px;
  margin-bottom: 0px !important;
}
.select2-container--open .select2-selection.select2-selection--single,
.select2-container--open .select2-selection.select2-selection--multiple {
  border-color: hsl(var(--base)) !important;
  border-radius: 0.375rem !important;
}

.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: hsl(var(--base));
  border-radius: 5px;
  border: 0;
  margin-bottom: 0px;
  color: #fff;
}

.payment-system-list {
  --thumb-width: 100px;
  --thumb-height: 40px;
  --radio-size: 12px;
  --border-color: #cccccf59;
  --hover-border-color: hsl(var(--base));
  background-color: #fff;
  border-radius: 5px;
  height: 100%;
}

.payment-system-list.is-scrollable {
  max-height: min(340px, 70vh);
  overflow-x: auto;
  padding-block: 4px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: hsl(var(--dark) / 0.07);
  border-radius: 10px;
}

.payment-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-top-color: var(--border-color);
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.payment-item:first-child {
  border-top-color: #fff;
  border-radius: 5px 5px 0 0;
}

.payment-item:has(.payment-item__radio:checked) {
  border-left: 3px solid var(--hover-border-color);
  border-radius: 0px;
}

.payment-item__check {
  border: 3px solid transparent;
}

.payment-item:has(.payment-item__radio:checked) .payment-item__check {
  border: 3px solid hsl(var(--base));
}

.payment-item__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - var(--thumb-width));
}

.payment-item__check {
  width: var(--radio-size);
  height: var(--radio-size);
  border: 1px solid hsl(var(--base));
  display: inline-block;
  border-radius: 100%;
}

.payment-item__name {
  padding-left: 10px;
  width: calc(100% - var(--radio-size));
  transition: all 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.payment-item__thumb {
  width: var(--thumb-width);
  height: var(--thumb-height);
  text-align: right;
  padding-left: 10px;

  &:has(.text) {
    width: fit-content;
  }
}

.payment-item__thumb img {
  max-width: var(--thumb-width);
  max-height: var(--thumb-height);
  object-fit: cover;
}

.deposit-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.deposit-info__title {
  max-width: 50%;
  margin-bottom: 0px;
  text-align: left;
}

.deposit-info__input {
  max-width: 50%;
  text-align: right;
  width: 100%;
}

.deposit-info__input-select {
  border: 1px solid var(--border-color);
  width: 100%;
  border-radius: 5px;
  padding-block: 6px;
}

.deposit-info__input-group {
  border: 1px solid var(--border-color);
  border-radius: 5px;

  .deposit-info__input-group-text {
    align-self: center;
    padding-left: 5px;
  }
}

.deposit-info__input-group .form--control {
  padding: 5px;
  border: 0;
  height: 35px;
  text-align: right;
}

.deposit-info__input-group .form--control:focus {
  box-shadow: unset;
}

.info-text .text,
.deposit-info__input .text {
  font-size: 14px;
}

.deposit-info__title .text.has-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.total-amount {
  border-top: 1px solid var(--border-color);
}

.total-amount .deposit-info__title {
  font-weight: 600;
}

.payment-item__btn {
  border: 0;
  border-block: 1px solid var(--border-color);
  border-bottom: 0;
  background: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  font-weight: 500;
}

.payment-item:hover + .payment-item__btn {
  border-top-color: #fff;
}

button .spinner-border {
  --bs-spinner-width: 1.5rem;
  --bs-spinner-height: 1.5rem;
}

label.required:after {
  content: "*";
  color: #dc3545 !important;
  margin-left: 2px;
}

.mobile-code {
  cursor: pointer;
  padding-right: 5px;
  font-size: 0.875rem;
  font-weight: 500;
}

.text--extra-small {
  font-size: 0.625rem !important;
}

.text--small {
  font-size: 0.75rem !important;
}

.social-login-btn {
  border: 1px solid #cbc4c4;
}

.register-disable {
  padding-block: 80px;
  width: 100%;
  background-color: #fff;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-disable-image img {
  width: 100%;
}

.register-disable-title {
  color: rgb(0 0 0 / 80%);
  font-size: 42px;
  margin-bottom: 18px;
}

.register-disable-icon {
  font-size: 16px;
  background: rgb(255, 15, 15, 0.07);
  color: rgb(255, 15, 15, 0.8);
  border-radius: 3px;
  padding: 6px;
  margin-right: 4px;
}

.register-disable-desc {
  color: rgb(0 0 0 / 50%);
  font-size: 18px;
  max-width: 565px;
  width: 100%;
  margin-bottom: 32px;
}

.register-disable-footer-link {
  color: #fff;
  background-color: #5b28ff;
  padding: 13px 24px;
  border-radius: 6px;
  text-decoration: none;
}

.register-disable-footer-link:hover {
  background-color: #440ef4;
  color: #fff;
}

@media (max-width: 1199px) {
  .payment-item {
    padding: 10px 6px;
  }
  .payment-item__name {
    font-size: 0.875rem;
  }
}


.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker .ranges li.active {
  background-color: hsl(var(--base)) !important;
}

/* Home: sports menu (choose a sport) */
.sports-menu {
  padding: 1rem 0 2rem;
}
.sports-menu__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: inherit;
}
.sports-menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
@media (min-width: 576px) {
  .sports-menu__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
  }
}
.sports-menu__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: hsl(var(--white));
  border: 1px solid hsl(0 0% 0% / 0.12);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  min-height: 108px;
  box-shadow: 0 2px 8px hsl(0 0% 0% / 0.08), 0 1px 2px hsl(0 0% 0% / 0.06);
  position: relative;
  overflow: hidden;
}
.sports-menu__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: hsl(var(--base));
  opacity: 0.85;
}
.sports-menu__card:hover {
  background: hsl(var(--base) / 0.08);
  border-color: hsl(var(--base) / 0.35);
  color: inherit;
  box-shadow: 0 6px 16px hsl(0 0% 0% / 0.12), 0 2px 4px hsl(0 0% 0% / 0.08);
  transform: translateY(-2px);
}
.sports-menu__card:hover::before {
  opacity: 1;
  width: 5px;
}
.sports-menu__card-icon {
  font-size: 2rem;
  color: hsl(var(--base));
  margin-bottom: 0.5rem;
  line-height: 1;
}
.sports-menu__card-icon i,
.sports-menu__card-icon .las,
.sports-menu__card-icon .lab {
  font-size: 2rem;
}
.sports-menu__card-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* League tabs: scrollable, full names visible */
.sub-category-drawer {
  position: relative;
}
.sub-category-drawer__list.slick-slider .slick-slide {
  min-width: 130px;
}
.sub-category-drawer__list .slick-slide .sub-category-drawer__link {
  min-width: 130px;
  padding-left: 8px;
  padding-right: 8px;
}
.sub-category-drawer__list .sub-category-drawer__text {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
@media (max-width: 991px) {
  .sub-category-drawer__list.slick-slider .slick-slide,
  .sub-category-drawer__list .slick-slide .sub-category-drawer__link {
    min-width: 120px;
  }
  .category-slider-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: hsl(var(--base) / 0.15);
    color: hsl(var(--base));
    width: 28px;
    height: 28px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
  }
  .category-slider-btn i {
    font-size: 1rem;
  }
}

/* League dropdown (replaces horizontal league bar) */
.league-dropdown {
  width: 100%;
}
.league-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 1rem;
  background: hsl(var(--white));
  border: 1px solid hsl(0 0% 0% / 0.1);
  border-left: 4px solid hsl(var(--base));
  border-radius: 10px;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 2px 6px hsl(0 0% 0% / 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.league-dropdown__toggle:hover {
  background: hsl(var(--base) / 0.04);
  border-color: hsl(0 0% 0% / 0.14);
  border-left-color: hsl(var(--base));
  color: inherit;
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.08);
}
.league-dropdown__toggle:focus {
  border-color: hsl(var(--base) / 0.5);
  border-left-color: hsl(var(--base));
  box-shadow: 0 0 0 3px hsl(var(--base) / 0.15);
  outline: none;
}
.league-dropdown__toggle[aria-expanded="true"] {
  background: hsl(var(--base) / 0.06);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 2px 8px hsl(0 0% 0% / 0.08);
}
.league-dropdown__toggle::after {
  display: none;
}
.league-dropdown__flag {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(0 0% 0% / 0.04);
}
.league-dropdown__flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.league-dropdown__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.league-dropdown__chevron {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: hsl(var(--base));
  opacity: 0.9;
  transition: transform 0.2s ease;
}
.league-dropdown__toggle[aria-expanded="true"] .league-dropdown__chevron {
  transform: rotate(180deg);
}
.league-dropdown__menu {
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  margin-top: 0;
  padding: 0.35rem 0;
  border: 1px solid hsl(0 0% 0% / 0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.12);
  background: hsl(var(--white));
}
.league-dropdown__menu::-webkit-scrollbar {
  width: 6px;
}
.league-dropdown__menu::-webkit-scrollbar-thumb {
  background: hsl(0 0% 0% / 0.2);
  border-radius: 3px;
}
.league-dropdown__menu::-webkit-scrollbar-track {
  background: hsl(0 0% 0% / 0.04);
}
.league-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
  border-left: 3px solid transparent;
  margin: 0 0.25rem;
  border-radius: 6px;
}
.league-dropdown__item:hover {
  background: hsl(var(--base) / 0.08);
  color: inherit;
}
.league-dropdown__item-flag {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(0 0% 0% / 0.04);
}
.league-dropdown__item-flag .league-dropdown__flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.league-dropdown__item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}
.league-dropdown__item.active {
  background: hsl(var(--base) / 0.12);
  color: hsl(var(--base));
  font-weight: 600;
  border-left-color: hsl(var(--base));
}

/* Markets page: category sections and headers */
.markets-category {
  margin-bottom: 1.5rem;
}
.markets-category__title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--base));
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid hsl(var(--base) / 0.25);
  letter-spacing: 0.02em;
}
.markets-category .accordion--odd {
  margin-bottom: 0.5rem;
}
.markets-category .accordion--odd:last-child {
  margin-bottom: 0;
}

/* Collapsible prop-type subgroups (e.g. Points, Rebounds under Player props) */
.markets-subgroup {
  margin-bottom: 0.5rem;
}
.markets-subgroup__toggle {
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1rem 0.65rem 1rem;
  background: hsl(var(--base) / 0.1);
  border: 1px solid hsl(var(--base) / 0.25);
  border-left: 4px solid hsl(var(--base));
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.05);
}
.markets-subgroup__toggle:hover {
  background: hsl(var(--base) / 0.15);
  border-color: hsl(var(--base) / 0.35);
  border-left-color: hsl(var(--base));
  color: inherit;
  box-shadow: 0 2px 6px hsl(0 0% 0% / 0.08);
}
.markets-subgroup__toggle:focus {
  box-shadow: 0 0 0 2px hsl(var(--base) / 0.3);
  outline: none;
}
.markets-subgroup__toggle:not(.collapsed) {
  background: hsl(var(--base) / 0.14);
  border-color: hsl(var(--base) / 0.3);
  border-left-color: hsl(var(--base));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
}
/* Visible chevron: down when collapsed, up when expanded */
.markets-subgroup__toggle::after {
  content: "\f107";
  background-image: none;
  font-family: "Line Awesome Free";
  font-weight: 900;
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-size: 1.1rem;
  color: hsl(var(--base));
  transition: transform 0.2s ease;
}
.markets-subgroup__toggle.collapsed::after {
  transform: rotate(0deg);
}
.markets-subgroup__toggle:not(.collapsed)::after {
  transform: rotate(180deg);
}
.markets-subgroup__count {
  font-weight: 500;
  opacity: 0.9;
  font-size: 0.9em;
  margin-left: auto;
  margin-right: 0.35rem;
}
.markets-subgroup__body {
  border: 1px solid hsl(var(--base) / 0.25);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 0.5rem 0;
  background: hsl(var(--base) / 0.04);
  border-left: 4px solid hsl(var(--base) / 0.4);
}
.markets-subgroup__body .accordion--odd {
  margin-bottom: 0.25rem;
}
.markets-subgroup__body .accordion--odd:last-child {
  margin-bottom: 0;
}

/* Odds card: fill container and never exceed viewport so no horizontal page scroll */
.betting-body .row,
.betting-body .col-12 {
  min-width: 0;
  max-width: 100%;
}
.sports-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sports-card-wrapper {
  max-width: 100%;
  min-width: 0;
}
.sports-card-inner {
  min-width: 0;
}
/* Outrights card: keep each outcome in a stable-width column to avoid overlap/collapse */
.sports-card-wrapper-lg .sports-card-inner {
  min-width: 130px !important;
  width: 130px !important;
  flex: 0 0 130px !important;
}
.sports-card-wrapper-lg .sports-card-left {
  flex: 0 0 var(--left-width);
}
.sports-card__market-title {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 600;
  color: hsl(var(--dark));
  word-break: break-word;
}
.sports-card-wrapper-lg .team-select-title {
  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
  text-align: center;
}
.sports-card-wrapper-lg .sports-card-inner {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.sports-card-wrapper-lg .sports-card-heading {
  white-space: normal !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
}
.sports-card-wrapper-lg .sports-card-body {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
}
.sports-card-wrapper-lg .option-odd-lists {
  justify-content: center;
  flex-wrap: wrap;
}
.sports-card-wrapper-lg .option-odd-list__item {
  width: 100% !important;
}
.sports-card-wrapper-lg .option-odd-lists .btn {
  width: 100%;
  white-space: nowrap;
}
.sports-card-wrapper-lg .option-odd-list__label {
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: unset;
}
/* Team/athlete name above each odds option so users know who they're betting on */
.option-odd-list__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.option-odd-list__label {
  font-size: 0.6rem;
  font-weight: 500;
  color: hsl(var(--dark) / 0.7);
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
  Mobile/small screens: stack odds card vertically so all options are visible without horizontal scroll.
  Team block full width, then each market type (ML, Spread, Total) as a full-width row.
*/
@media (max-width: 991px) {
  .sports-card {
    overflow-x: visible;
    max-width: 100vw;
  }
  .sports-card-wrapper {
    flex-direction: column;
    max-width: 100%;
  }
  .sports-card-wrapper .sports-card-left {
    width: 100%;
    position: static;
    border-bottom: 1px solid hsl(var(--black) / 0.08);
  }
  .sports-card-wrapper .sports-card-inner {
    width: 100%;
    min-width: 0;
    border-right: none !important;
    border-bottom: 1px solid hsl(var(--black) / 0.08);
  }
  .sports-card-wrapper .sports-card-inner:last-child {
    border-bottom: none;
  }
  .sports-card-inner .sports-card-body {
    padding: 0.5rem 0.75rem;
  }
  .option-odd-lists {
    justify-content: space-between;
    gap: 6px;
  }
  .option-odd-lists .btn {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }
  .option-odd-list__label {
    font-size: 0.55rem;
  }
}

@media (max-width: 575px) {
  .sports-card-inner .sports-card-heading,
  .sports-card-inner .sports-card-body {
    padding-inline: 0.5rem;
  }
  .option-odd-lists .btn {
    min-height: 40px;
    font-size: 0.65rem;
    padding: 8px 6px;
  }
  .option-odd-list__label {
    font-size: 0.5rem;
  }
}

/*
  Medium/smaller desktop widths: keep regular markets readable by preserving
  column widths and allowing horizontal card scroll (instead of squeezing text).
*/
@media (min-width: 992px) and (max-width: 1400px) {
  .sports-card {
    overflow-x: auto !important;
  }
  .sports-card-wrapper:not(.sports-card-wrapper-lg) {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .sports-card-wrapper:not(.sports-card-wrapper-lg) .sports-card-left {
    flex: 0 0 170px;
    width: 170px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: hsl(var(--white));
  }
  .sports-card-wrapper:not(.sports-card-wrapper-lg) .sports-card-inner {
    flex: 0 0 230px;
    width: 230px;
    min-width: 230px;
  }
  .sports-card-wrapper:not(.sports-card-wrapper-lg) .option-odd-lists {
    display: flex;
    gap: 6px;
    width: 100%;
  }
  .sports-card-wrapper:not(.sports-card-wrapper-lg) .option-odd-list__item {
    width: 100%;
    min-width: 0;
  }
  .sports-card-wrapper:not(.sports-card-wrapper-lg) .option-odd-list__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
    font-size: 0.62rem;
  }
  .sports-card-wrapper:not(.sports-card-wrapper-lg) .option-odd-lists .btn {
    width: 100%;
    min-width: 0;
    padding: 8px 6px;
    line-height: 1.1;
  }
}

/* Outright markets: limit homepage options on small screens and point users to View All */
.outright-mobile-limit-note {
  display: none;
}

@media (max-width: 991px) {
  .sports-card-wrapper--outright .outright-option-row--extra {
    display: none !important;
  }

  .sports-card-wrapper--outright .outright-mobile-limit-note {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .sports-card-wrapper--outright .outright-mobile-limit-note .sports-card-body {
    padding: 10px 12px;
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* Bonus balance in header (distinct from withdrawable balance) */
.header-balance--bonus {
  opacity: 0.9;
  font-size: 0.95em;
}