@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  --heading-font: "Inter", sans-serif;
  --body-font: "Roboto", sans-serif;
  --h1: clamp(2.7468rem, 4vw, 3.052rem);
  --h2: clamp(2.1969rem, 3vw, 2.441rem);
  --h3: clamp(1.7577rem, 2.7vw, 1.953rem);
  --h4: clamp(1.4067rem, 2vw, 1.563rem);
  --h5: 1.0625rem;
  --h6: 1rem;
  --base-h: 230;
  --base-s: 89%;
  --base-l: 65%;
  --base-dark: var(--base-h) var(--base-s) calc(var(--base-l) - 8%);
  --accent-h: 237;
  --accent-s: 35%;
  --accent-l: 30%;
  --accent: var(--accent-h) var(--accent-s) var(--accent-l);
  --accent-dark: var(--accent-h) var(--accent-s) calc(var(--accent-l) - 20%);
  --light-h: 186;
  --light-s: 49%;
  --light-l: 98%;
  --dark-h: 237;
  --dark-s: 57%;
  --dark-l: 15%;
  --dark-100: var(--dark-h) calc(var(--dark-s) - 7%) calc(var(--dark-l) + 15%);
  --dark-200: var(--dark-h) calc(var(--dark-s) - 7%) calc(var(--dark-l) + 10%);
  --dark-300: var(--dark-h) calc(var(--dark-s) - 7%) calc(var(--dark-l) + 8%);
  --dark-400: var(--dark-h) calc(var(--dark-s) - 7%) calc(var(--dark-l) + 5%);
  --dark-500: var(--dark-h) var(--dark-s) calc(var(--dark-l) - 2%);
  --dark-600: var(--dark-h) var(--dark-s) calc(var(--dark-l) - 4%);
  --dark-700: var(--dark-h) var(--dark-s) calc(var(--dark-l) - 6%);
  --dark-800: var(--dark-h) var(--dark-s) calc(var(--dark-l) - 8%);
  --black-h: 0;
  --black-s: 0%;
  --black-l: 29%;
  --primary: 204 88% 44%;
  --secondary: 208 23% 55%;
  --success: 161 74% 45%;
  --danger: 5 76% 55%;
  --warning: 43 99% 49%;
  --info: 190 76% 40%;
  --border: 0 0% 92%;

  --header-h: 78px;
  --nav-h: 60px;
  --right-side: 0px;
  --left-side: 120px;
  /* Light theme overrides — loaded AFTER the big :root block */
  --white-gray: gray;
  --base: #F2F0EF;
  --light: #111827;           /* readable body text */
  --dark: #000000;
  --white: #f9f9f9;
  --heading: #111827;
  --text-color: #9da3ad;
  --text: #111827;            /* fix: not white */
  --base-search: #e6e8ea;
  --card-bg: #f9f9f9;
  --card-border: #C4C4C4;

  /* keep your yes/no as-is or tweak if you want lighter fills in light */
  --yes-bg: #e3f7ea;
  --yes-color: #3BAB68;
  --no-bg: #fceded;
  --no-color: #E13737;

  --card-hover-bg: #f5f5f5;
  --gauge-bg: rgba(0,0,0,.15);
  --header-item-hover: var(--base-search);
  --unselected-btn: #9da3ad;
  --comment-input: black;
}

html.dark {   /* ACTUAL DARK THEME COLORS */
  --white-gray: white;
  --base: #1d2b3a;
  --white: #f9f9f9;
  --heading: #f9f9f9;
  --text-color: #AAB4BF;
  --text: black;
  --light: #f9f9f9;
  --dark: black;
  --black: black;
  --base-search: var(--card-bg);
  --card-bg: #2F3F50;
  --card-border: #3D5266;
  --yes-bg: #3E6468;
  --yes-color: #3BAB68;
  --no-bg: #564E5F;
  --no-color: #E13737;
  --card-hover-bg: var(--card-border);
  --header-item-hover: var(--base-search);
  --unselected-btn: #2f3f50;
  --comment-input: #E5E7EB;
}

html {
  font-size: 100%;
}

body {
  position: relative;
  background: hsl(var(--white));
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Hide vertical scrollbar site-wide but keep scrolling */
html, body {
  scrollbar-width: none;     /* Firefox */
}

/* WebKit (Chrome, Safari, Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
p {
  margin-bottom: 1rem;
  color: var(--light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.5rem 0 1rem;
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--light);
}

h1 {
  margin-top: 0;
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

h4 {
  font-size: var(--h4);
}

h5 {
  font-size: var(--h5);
}

h6 {
  font-size: var(--h6);
}

a {
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--light);
}

a:hover {
  text-decoration: none;
}


.xsm-text {
  font-size: 0.75rem;
}

small,
.sm-text {
  font-size: 0.875rem;
  color: var(--light);
}

.lg-text {
  font-size: 1.125rem;
}

.xl-text {
  font-size: 1.25rem;
}

.xxl-text {
  font-size: 1.5rem;
}

.fw-regular {
  font-weight: 400;
}

.fw-md {
  font-weight: 500;
}

.lh-1 {
  line-height: 1;
  color: var(--light);
}

.hr {
  background-color: var(--base);
}

button:focus {
  outline: none !important;
}

.btn:focus,
.btn.focus {
  outline: none;
  box-shadow: none;
}

input:focus {
  outline: none;
}

.form-control {
  border: 1px solid var(--card-border);
  background: var(--base);
}

textarea {
  resize: none;
}

@media screen and (min-width: 1600px) {
  .container-restricted {
    max-width: 1540px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/*---------------------------------------
    2.1 Logo
-----------------------------------------*/
.logo a {
  display: block;
}

.logo {
  max-width: 220px;
  width: 180px;
  display: block;
}

@media (max-width: 575px) {
  .logo {
    max-width: 140px;
    gap: 0; /* Remove gap for better centering */
    justify-content: center; /* Center the items */
  }
}

.header-fluid-custom-parent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

@media (max-width: 425px) {
  .header-fluid-custom-parent {
    gap: 0; /* Remove gap for better centering */
    justify-content: center; /* Center the items */
  }
}

/*---------------------------------------
    2.2 List
-----------------------------------------*/
.list {
  display: flex;
  flex-direction: column;
  gap: var(--gap, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.list--row {
  flex-direction: row;
}

.list--base li {
  position: relative;
  display: flex;
  align-items: center;
}

.list--base li::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  line-height: 10px;
  border-radius: 50%;
  margin-right: 15px;
  background: var(--base);
  box-shadow: 0 0 0 5px hsl(var(--base) / 0.2);
}

/*---------------------------------------
    2.3 Form Control
-----------------------------------------*/
.form--control {
  height: 45px;
  line-height: 32px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--light);
  transition: all 0.3s ease;
}

.form--control[type="password"],
.form--control[type="text"] {
  padding: 0.375rem 1.7rem 0.375rem 0.75rem !important;
}

.form--control::placeholder {
  color: var(--light);
}

.form--control:focus {
  outline: none;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--light);
  box-shadow: none;
}

.form--control:-webkit-autofill {
  -webkit-text-fill-color: var(--light) !important;
  -webkit-box-shadow: 0 0 0px 1000px hsl(var(--base) / 0.1) inset;
}

.form--control[readonly] {
  background: var(--light);
  border: 1px solid var(--dark);
  color: hsl(var(--dark-400));
}

.form--control[readonly]::placeholder {
  color: hsl(var(--dark-400) / 0.5);
}

.form--control[disabled] {
  background: var(--dark);
  border: 1px solid var(--dark);
  color: hsl(var(--dark-400));
}

.form--control[disabled]::placeholder {
  color: hsl(var(--dark-400) / 0.5);
}

.form--control[type="file"]::-webkit-file-upload-button {
  background: #f7f7f7 !important;
  color: var(--dark) !important;
}

textarea.form--control {
  height: auto;
  line-height: normal;
  padding-top: 15px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--light);
  transition: all 0.3s ease;
}

textarea.form--control::placeholder {
  color: hsl(var(--dark-400) / 0.5);
}

textarea.form--control:focus {
  outline: none;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--base);
  box-shadow: none;
}

/*---------------------------------------
    2.4 Preloader
-----------------------------------------*/
.preloader {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  background-color: var(--base);
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.preloader__img {
  width: 160px;
  height: 160px;
  animation: imageBeat 2s infinite ease;
}

.preloader__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*---------------------------------------
    2.5 Back To Top
-----------------------------------------*/
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 15px;
  width: 40px;
  height: 40px;
  background-color: var(--base);
  color: hsl(var(--white));
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  z-index: 99;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 5px hsl(var(--black) / 0.5);
  display: none;
}

/*---------------------------------------
    2.6 Button Style
-----------------------------------------*/
.btn {
  font-family: var(--heading-font);
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 3px;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--white));
}

.btn--primary:hover {
  color: hsl(var(--white));
  background: hsl(var(--primary));
}

.btn--secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--white));
}

.btn--secondary:hover {
  color: hsl(var(--white));
  background: hsl(var(--secondary));
}

.btn--success {
  background: hsl(var(--success));
  color: hsl(var(--white));
}

.btn--success:hover,
.btn--success:disabled {
  color: hsl(var(--white));
  background: hsl(var(--success));
}

.btn--danger {
  background: hsl(var(--danger));
  color: hsl(var(--white));
}

.btn--danger:hover {
  color: hsl(var(--white));
  background: hsl(var(--danger));
}

.btn--warning {
  background: hsl(var(--warning));
  color: hsl(var(--white));
}

.btn--warning:hover {
  color: hsl(var(--white));
  background: hsl(var(--warning));
}

.btn--info {
  background: hsl(var(--info));
  color: hsl(var(--white));
}

.btn--info:hover {
  color: hsl(var(--white));
  background: hsl(var(--info));
}

.btn--dark {
  background: var(--dark);
  color: hsl(var(--white));
}

.btn--dark:hover {
  color: hsl(var(--white));
  background: var(--dark);
  filter: brightness(0.8);
}

.btn--light {
  background-color: var(--light);
  color: var(--dark);
}

.btn--light:hover {
  color: hsl(var(--white));
  background: var(--dark);
}

.btn--base {
  position: relative;
  isolation: isolate;
  background: #2c9cdb;
  color: var(--white);
}

.btn--base:hover,
.btn--base:active,
.btn--base:focus {
  color: var(--white) !important;
  background: #2c9cdb !important;
  border: 1px solid transparent !important;
  filter: brightness(0.8);
}

.btn--login {
  font-size: 14px;
  padding: 5px 8px;
  background: var(--light);
}

.btn--login:hover {
  background: var(--light);
  filter: brightness(0.8);
}

.btn--signup {
  color: var(--white);
  font-size: 14px;
  padding: 5px 8px;
  background: #2c9cdb;
}

.btn--signup:hover {
    color: var(--white);
    filter: brightness(1.2);
    background: #2c9cdb;
}

/* New: Log In button style */
.btn--login-front {
  background: var(--base);
  color: #2c9cdb;             /* text color */
  font-size: 14px;            /* same size as signup */
  padding: 5px 8px;           /* same padding as signup */
  border: 1px solid transparent;
}

.btn--login-front:hover {
  background: var(--card-bg);     /* keep base bg on hover */
  color: #2c9cdb;              /* keep text color */
  border-color: var(--card-bg);/* hover border color change */
  filter: brightness(1.02);    /* subtle hover feedback */
}


.btn--view {
  padding: 0;
  display: inline-grid;
  place-content: center;
  width: 30px;
  height: 30px;
  background: #2c9cdb;
  font-size: 14px;
  line-height: 1;
  color: var(--light);
}

.btn--view:hover {
  box-shadow: none;
  color: var(--light);
  background: #2c9cdb;
  filter: brightness(0.8);
}

.btn--add-more {
  min-width: 91px;
  height: 100%;
  font-size: 14px;
  line-height: 1;
}

.btn--sqr {
  line-height: 1;
  padding: 0.75rem;
  font-size: 20px;
}

.btn--sm {
  padding: 0.1rem 0.6rem;
}

.btn--md {
  padding: 0.5rem 1rem;
}

.btn--lg {
  padding: 0.625rem 1.25rem;
}

.btn--xl {
  padding: 0.7rem 1.5rem;
}

.btn--xxl {
  padding: 1rem 2rem;
}

/*---------------------------------------
    2.7 Section 
-----------------------------------------*/
.section {
  padding-top: clamp(30px, 4vw, 60px);
  padding-bottom: clamp(30px, 4vw, 61px);
}

.body-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  display: block;
  background-color: #000000cf;
  z-index: 9998;
  content: "";
  left: 0;
  top: 0;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.3s ease-in;
  -moz-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
  cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVBAMAAABbObilAAAAMFBMVEVMaXH////////////////////////////////////////////////////////////6w4mEAAAAD3RSTlMAlAX+BKLcA5+b6hJ7foD4ZP1OAAAAkUlEQVR4XkWPoQ3CUBQAL4SktoKAbCUjgAKLJZ2ABYosngTJCHSD6joUI6BZgqSoB/+Shqde7sS9x3OGk81fdO+texMtRVTia+TsQtHEUJLdohJfgNNPJHyEJPZTsWLoxShqsWITazEwqePAn69Sw2TUxk1+euPis3EwaXy8RMHSZBIlRcKKnC5hRctjMf57/wJbBlAIs9k1BAAAAABJRU5ErkJggg==),
    progress;
}

.body-overlay.active {
  visibility: visible;
  opacity: 0.8;
}

.header-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  content: "";
  left: 0;
  top: 0;
  background-color: var(--dark);
  z-index: 999;
  transition: 0.2s linear;
  visibility: hidden;
  opacity: 0;
}

.header-overlay.show {
  visibility: visible;
  opacity: 1;
}

/*---------------------------------------
    2.11 Banner
-----------------------------------------*/
.banner {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: hsl(var(--black) / 0.5);
  mix-blend-mode: darken;
  z-index: -1;
}

.banner__content {
  padding-top: 50px;
  padding-bottom: 50px;
  margin-top: auto;
  margin-bottom: auto;
}

@media (max-width: 575px) {
  .banner__content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .banner__content h2 {
    font-size: 25px;
  }
}


/* table css end */


/*---------------------------------------
    2.14 Badge
-----------------------------------------*/
.badge {
  border-radius: 2px;
}

.badge--primary {
  background: hsl(var(--primary) / 0.15);
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.badge--secondary {
  background: hsl(var(--secondary) / 0.15);
  border: 1px solid hsl(var(--secondary));
  color: hsl(var(--secondary));
}

.badge--danger {
  background: hsl(var(--danger) / 0.15);
  border: 1px solid hsl(var(--danger));
  color: hsl(var(--danger));
}

.badge--success {
  background: hsl(var(--success) / 0.15);
  border: 1px solid hsl(var(--success));
  color: hsl(var(--success));
}

.badge--warning {
  background: hsl(var(--warning) / 0.15);
  border: 1px solid hsl(var(--warning));
  color: hsl(var(--warning));
}

.badge--info {
  background: hsl(var(--info) / 0.15);
  border: 1px solid hsl(var(--info));
  color: hsl(var(--info));
}

.badge--dark {
  background: var(--dark) / 0.15;
  border: 1px solid var(--dark);
  color: var(--dark);
}

.badge-solid--white {
  color: var(--dark);
  background-color: hsl(var(--white));
  border: 1px solid hsl(var(--white));
}

/*---------------------------------------
    2.15 Form Select
-----------------------------------------*/
.form--select {
  position: relative;
  isolation: isolate;
}

.form--select::before {
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  color: var(--dark);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 100%;
  background: transparent;
  display: grid;
  place-items: center;
  padding-inline: 15px;
  border-radius: 0 0.25rem 0.25rem 0;
  border-left: 0;
  pointer-events: none;
  z-index: 1;
  font-size: 14px;
}

.form--select .form-select {
  height: 45px;
  border-radius: 5px;
  padding-right: 46px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--light);
  background: transparent;
  color: var(--dark);
}

.form--select .form-select:focus {
  outline: none;
  border: 1px solid hsl(var(--black) / 0.4);
  background: transparent;
  color: var(--dark);
  box-shadow: none;
}

.form-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-group small {
  position: absolute;
  left: 0;
  top: 100%;
  font-size: 12px;
}

.form-group .input-group-text.mobile-code {
  background: hsl(var(--base));
  border: 1px solid var(--card-border);
  border-right: 0;
  padding: 10px 12px;
  position: relative;
}

.form-group .input-group-text.mobile-code:before {
  position: absolute;
  content: '';
  width: 1px;
  height: 15px;
  background-color: hsl(var(--black) / 0.2);
  right: 0px;
}

input:focus {
  box-shadow: none !important;
}

/*---------------------------------------
    2.16 Custom Check
-----------------------------------------*/
.custom--check {
  border-radius: 1px !important;
  border: 1px solid var(--card-border);
  background: var(--base);
}

.custom--check:checked {
  border: 1px solid hsl(var(--base) / 0.5);
  border: 1px solid var(--card-border);
}

.custom--check:focus {
  border: 1px solid hsl(var(--base) / 0.5);
  box-shadow: none;
  border: 1px solid var(--card-border);
}

/*---------------------------------------
    2.18 Custom Pagination
-----------------------------------------*/
.pagination {
  margin-bottom: 0;
}

.pagination .page-item {
  margin-right: 1rem;
}

.pagination .page-link:focus {
  box-shadow: none;
}

.pagination .page-item.active .page-link {
  background-color: var(--base);
  border: 1px solid var(--base);
  color: hsl(var(--white));
}

.pagination .page-item.disabled .page-link {
  background: hsl(var(--accent-300));
  border-color: hsl(var(--accent-300));
  opacity: 0.5;
}

.pagination .page-item:last-child {
  margin-right: 0;
}

.pagination .page-item:first-child .page-link {
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
}

.pagination .page-item:last-child .page-link {
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
}

.pagination .page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 40px;
  height: 36px;
  border: 1px solid var(--base);
  color: var(--base);
  text-align: center;
  font-size: 14px;
  background: transparent;
  border-radius: 4px;
}

.pagination .page-link:hover {
  background-color: var(--base);
  border: 1px solid var(--base);
  color: hsl(var(--white));
}

.list-group-item {
  background: var(--base);
}

/*---------------------------------------
    2.19 Custom Card
-----------------------------------------*/
.card {
  border: 1px solid var(--card-border);
  background: var(--base);
}

.custom--card {
  border-radius: 10px;
  background-color: hsl(var(--base));
}

.custom--card .card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  padding: 1.2rem;
  background: transparent;
  font-family: var(--heading-font);
  font-size: 1rem;
  border-bottom: 1px solid hsl(var(--black) / 0.08);
  font-weight: 500;
}

.custom--card .card-header__icon {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
}

.custom--card .card-title {
  margin-top: 0;
  margin-bottom: 0;
}

.custom--card .card-text {
  margin-top: 1rem;
}

.custom--card .card-body {
  padding: 1.5rem;
  background: var(--base) !important;
  border-radius: 10px;
}

.custom--card .card-footer {
  padding: 1rem 1.5rem;
  background: hsl(var(--base) / 0.1);
  border-top: 1px solid hsl(var(--base) / 0.1);
}

.custom--card-dark {
  border-radius: 3px;
  background: hsl(var(--accent-200));
  border: 1px solid hsl(var(--accent-300));
}

.custom--card-dark .card-header {
  padding: 1rem 1.5rem;
  background: hsl(var(--accent) / 0.5);
  border-bottom: 1px solid hsl(var(--accent-300));
  color: hsl(var(--white));
}

.custom--card-dark .card-title {
  margin-top: 0;
  margin-bottom: 0;
  color: hsl(var(--white));
}

.custom--card-dark .card-text {
  margin-top: 1rem;
  color: hsl(var(--white));
}

.custom--card-dark .card-body {
  padding: 2rem 1.5rem;
  background: var(--base);
}

.custom--card-dark .card-footer {
  padding: 1rem 1.5rem;
  background: hsl(var(--accent) / 0.5);
  border-top: 1px solid hsl(var(--accent-300));
}

/*---------------------------------------
    2.20 Custom Modal
-----------------------------------------*/
.modal .modal-content {
  border-radius: 5px;
  background-color: var(--base);
  border: 1px solid var(--card-border);
}

.modal .modal-title {
  margin-top: 0;
  color: hsl(var(--heading));
}

.modal .btn-close,
.modal-header .close {
  position: relative;
  background: transparent;
  opacity: 1;
  transition: all 0.3s ease;
}

.modal-header .close {
  border: none;
}

.modal .btn-close:hover {
  outline: none;
  box-shadow: none;
  color: var(--base);
}

.modal .btn-close:focus {
  outline: none;
  box-shadow: none;
  color: var(--base);
}

.modal-footer .btn--primary {
  background-color: var(--base);
}

.modal .modal-body p {
  margin-bottom: 0;
}

.modal .modal-header {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid hsl(var(--base) / 0.2);
}

.modal .modal-footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid hsl(var(--base) / 0.2);
}

.modal-dark .modal-content {
  border-radius: 5px;
  background: hsl(var(--dark-400));
  border: 1px solid hsl(var(--dark-400));
}

.modal-dark .modal-title {
  margin-top: 0;
  color: hsl(var(--white));
}

.modal-dark .btn-close {
  position: relative;
  background: transparent;
  color: hsl(var(--white));
  opacity: 1;
  transition: all 0.3s ease;
}

.modal-dark .btn-close:hover {
  outline: none;
  box-shadow: none;
  color: var(--base);
}

.modal-dark .btn-close::after {
  content: "\f00d";
  font-family: "Line Awesome Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 34px;
}

.modal-dark .modal-body {
  color: var(--light);
}

.modal-dark .modal-header {
  border-bottom: 1px solid hsl(var(--dark-500));
  background: hsl(var(--dark-500));
}

.modal-dark .modal-footer {
  border-top: 1px solid hsl(var(--dark-500));
  background: hsl(var(--dark-500));
}

/*---------------------------------------
    2.22 Input Group
-----------------------------------------*/

.input--group .input-group-text {
  display: grid;
  place-items: center;
  padding-inline: 15px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  position: absolute;
  right: 10px;
  top: 13px;
  padding: 0;
  display: inline-block;
  z-index: 99;
}

/* ===== DESKTOP (≥992px): centered header + full-bleed bg layer ===== */
@media (min-width: 992px){
  .header-primary{
    position: sticky;
    top: 0;
    z-index: 110;

    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 16px 0;

    background: transparent;   /* bg via ::before */
    box-shadow: none;
    clip-path: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header-primary::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height: calc(100% + 2px);
    background: var(--base);
    box-shadow: 0 0 0 100vmax var(--base);
    clip-path: inset(0 -100vmax);
    z-index:-1;
  }
}

/* ===== MOBILE/TABLET (<992px): simple 100% header, no pseudo tricks ===== */
@media (max-width: 991.98px){
  .header-primary{
    position: sticky;
    top: 0;
    z-index: 110;
    width: 100%;
    margin: 0;
    padding: 14px 0;
    background: var(--base);   /* direct bg */
    box-shadow: none;
    clip-path: none;
    overflow: visible;
    border-bottom: 1px solid var(--card-border) !important;
  }
  .header-primary::before{ content: none; }
}

/*---------------------------------------
    2.24 App Nav
-----------------------------------------*/
.app-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  background: hsl(var(--dark-600));
}

@media screen and (min-width: 992px) {
  .app-nav {
    display: none;
  }
}

.app-nav__menu {
  --gap: 5px;
}

.app-nav__menu-link {
  display: block;
  text-align: center;
}

.app-nav__menu-link.active .app-nav__menu-icon {
  color: var(--base);
}

.app-nav__menu-link-important-container {
  position: relative;
  width: 60px;
  height: 60px;
  z-index: 1;
  pointer-events: auto;
  display: flex;
  justify-content: center;
}

.app-nav__menu-link-important {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  top: 1px;
  left: 0;
  position: relative;
  border: 3px solid var(--light);
  border-radius: 50%;
  background: var(--base);
  font-size: 24px;
  color: var(--light);
}

.app-nav__menu-link-important:hover {
  color: hsl(var(--white));
}

.app-nav__menu-icon {
  display: block;
  font-size: 18px;
  line-height: 1;
  color: var(--light);
}

.app-nav__menu-icon i {
  font-size: 18px !important;
}

.app-nav__menu-icon img {
  height: 18px;
  width: 18px;
}

.app-nav__menu-text {
  display: block;
  font-size: 12px;
  color: var(--light);
}

.app-nav__drawer {
  position: absolute;
  transform: translateX(-100%);
  width: 300px;
  bottom: var(--nav-h);
  height: calc(100vh - (var(--header-h) + var(--nav-h)));
  padding: 20px 15px;
  background-color: var(--dark);
  transition: all 0.3s linear;
}

.app-nav__drawer.active-sidebar {
  transform: translateX(0);
}

.app-nav__drawer-list {
  --gap: 0;
}

.app-nav__drawer-list li {
  border-bottom: 1px solid var(--light);
}

.app-nav__drawer-list li:last-child {
  border-bottom: none;
}

.app-nav__drawer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 5px;
  padding-bottom: 5px;
  color: var(--light);
}

.app-nav__drawer-link:hover {
  color: var(--base);
}

.app-nav__drawer-icon {
  display: inline;
  color: var(--base);
}

.app-nav__drawer-text {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.03em;
}
/* === Mobile bottom nav: clean 4-button layout, no ghost opener === */

/* 2) Make the 4 items equal width and prevent overflow/gaps */
.app-nav__menu {
  /* your file sets --gap:5px; but the .list utility may add spacing.
     Force a tight bar so nothing gets pushed off. */
  --gap: 0 !important;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.app-nav__menu > li {
  flex: 1 1 25%;
  min-width: 0;
  display: flex;
}

/* 3) Normalize link/button look (Search is a <button>) */
.app-nav__menu a.app-nav__menu-link,
.app-nav__menu button.app-nav__menu-link {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  outline: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 6px 0;
  box-shadow: none !important;   /* nuke default focus shadows on some browsers */
}

/* 4) Tidy icon/text sizing */
.app-nav__menu .app-nav__menu-icon { line-height: 1; display: inline-flex; }
.app-nav__menu .app-nav__menu-icon i,
.app-nav__menu .app-nav__menu-icon svg { font-size: 20px !important; }
.app-nav__menu .app-nav__menu-text { font-size: 11px; }

/* 5) Ensure nothing white leaks from legacy styles */
.app-nav__menu > li,
.app-nav__menu > li * {
  background-color: transparent !important;
}

/* 6) Drawer stays fine; just ensure the nav itself never overflows */
.app-nav .container-fluid { max-width: 100%; overflow: hidden; background: var(--base);border-top: solid 1px var(--card-border)}

/*---------------------------------------
    2.25 Odd List
-----------------------------------------*/
.odd-list {
  width: 100%;
  transition: all 0.3s ease;
}

@media screen and (min-width: 992px) {
  .odd-list {
    padding-bottom: 0;
  }
}

.odd-list__item {
  padding: 10px 15px;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  display: flex;
  flex-wrap: wrap;
  --gap: 0.2rem;
  justify-content: space-between;
  align-items: center;
}

.odd-list__item:last-child {
  border-bottom: none;
}

.odd-list__item-title {
  font-size: 0.875rem;
}

.odd-list__head {
  display: flex;
  align-items: left;
  gap: 0.8rem;
  padding: 15px;
  z-index: 8;
  border: 1px solid var(--card-border);
  background: linear-gradient(319deg, hsl(var(--base)) 0%, var(--dark));
  justify-content: left;
  border-radius: 5px 5px;
  margin-bottom: 24px;
  box-shadow: 0 5px 15px var(--dark);
}

@media screen and (min-width: 992px) {
  .odd-list__head {
    position: relative;
    top: auto;
    border-radius: 10px 10px;
  }
}

.odd-list__body {
  margin-bottom: 15px;
}

@media screen and (min-width: 992px) {
  .odd-list__body {
    min-height: calc(100vh - 440px);
  }
}

.odd-list__team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.odd-list__team-name {
  font-size: 18px;
  color: var(--light);
}

.game-img {
  width: 30px;
  height: 30px;
  border: 1px solid var(--light);
  border-radius: 50%;
}

.game-img-src {
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.odd-list__team-divide {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--light);
  font-size: 12px;
  color: var(--light);
}

.odd-list__title {
  font-size: 18px;
  margin-bottom: 24px;
}

@media screen and (min-width: 992px) {
  .odd-list__title {
    margin-bottom: 16px;
  }
}

.flex-between {
  display: inline-flex;
  margin-left: 0px;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.odd-list__btn {
  margin: 0;
  padding: 0;
}

.odd-list__btn .form-check-input {
  display: none;
  border: 1px solid var(--card-border);
}

.odd-list__btn .form-check-input:checked {
  color: var(--white);
  border: 1px solid var(--card-border);
}

/*---------------------------------------
    2.26 Sports Category
-----------------------------------------*/

.sports-category {
  position: sticky;
  background: hsl(var(--dark-600));
  z-index: 9;
  top: var(--header-h);
  width: var(--left-side);
  height: calc(100vh - var(--header-h));
  border-top: none;
  border-bottom: none;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--base);
}

.sports-category__icon {
  font-size: 18px;
  line-height: 1;
  color: var(--light);
}

.sports-category__text {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  padding: 0 5px;
  text-align: center;
  color: var(--text-color);
  font-weight: 600;
}

.sports-category__notification {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 4px;
  background: hsl(var(--danger));
  border-radius: 3px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--light);
}

.sports-category__arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  border: none;
  z-index: 1;
  transition: all 0.3s ease;
  color: hsl(var(--white));
  background-color: transparent;
}

.sports-category__arrow-prev {
  left: 0;
  background-image: linear-gradient(89deg, hsl(var(--base) / 0.5), transparent);
}

.sports-category__arrow-next {
  right: 0;
  background-image: linear-gradient(268deg,
      hsl(var(--base) / 0.5),
      transparent);
}

/*---------------------------------------
    2.28 Sports Sub Category Drawer
-----------------------------------------*/
@media screen and (min-width: 992px) {
  .sports-category::after {
    content: "";
    width: 0px;
    height: 0px;
    background-image: url(../images/radius.svg);
    background-position: left top;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 100%;
  }
}

.sub-category-drawer {
  transition: all 0.3s ease;
  background-color: hsl(var(--white));
  border-radius: 10px;
  width: 100%;
  overflow: hidden;
}

.sub-category-drawer .slick-track {
  margin-left: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
}

.sub-category-drawer .slick-slide>div {
  display: flex;
  height: 100%;
}

.sub-category-drawer__body {
  padding-top: 15px;
  padding-bottom: 15px;
}

.sub-category-drawer__list {
  padding: 0;
  margin: 0;
  list-style: none;
  padding: 0 10px;
}

.sub-category-drawer__list li {
  position: relative;
}

.sub-category-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  padding: 10px 3px 10px 0;
}

.sub-category-drawer__link.active {
  border-bottom: 2px solid var(--base);
}

.sub-category-drawer__link:hover .sub-category-drawer__text {
  color: var(--base);
}

.sub-category-drawer__flag {
  display: flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sub-category-drawer__flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: inline-block;
}

.sub-category-drawer__text {
  display: block;
  color: var(--dark);
  font-size: 14px;
  transition: all 0.3s ease;
  line-height: 1;
}

@media screen and (min-width: 992px) {
  .sub-category-drawer__text {
    font-size: 12px;
  }
}

.sub-category-drawer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.sub-category-drawer__title-icon {
  display: inline-block;
  font-size: 18px;
  color: var(--base);
}

.sub-category-drawer__title-text {
  display: inline-block;
  color: var(--light);
  font-size: 14px;
  font-family: var(--heading-font);
}

/*---------------------------------------
    2.29 Open Sub category drawer
-----------------------------------------*/
.open-sub-category-drawer .sub-category-drawer {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Make active category look the same as normal ones */
.sports-category__link.active {
  background-color: var(--base) !important; /* same as default */
}

.sports-category__link.active .sports-category__icon,
.sports-category__link.active .sports-category__text {
  color: var(--text-color) !important; /* same as normal text/icon */
}


/*---------------------------------------
    2.30 League Title
-----------------------------------------*/
.league-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.league-title__name {
  color: var(--base);
}

.league-title__flag-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  border-radius: 5px;
}

.league-title__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

/*---------------------------------------
    2.31 Sports Body
-----------------------------------------*/
@media (min-width: 992px){
.sports-body {
  padding: 1rem;
  padding-bottom: calc(60px + 1.5rem);
  background: var(--dark);
  min-height: calc(100vh - 230px);
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--base);
}
}
@media screen and (min-width: 576px) {
  .sports-body {
    padding: 1rem;
    padding-bottom: calc(60px + 1rem);
        min-height: calc(100dvh - var(--header-h, 230px));

  }
}

@media screen and (min-width: 992px) {
  .sports-body {
    width: calc(100% - var(--left-side));
    padding: 1.5rem !important;
    position: relative;
    min-height: calc(100vh - var(--header-h));
  }
}

/*---------------------------------------
    2.33 Accordion Odd
-----------------------------------------*/
.accordion.accordion--odd:not(:last-child) {
  margin-bottom: 1rem;
}

.accordion--odd .accordion-item {
  border-radius: 5px;
  overflow: hidden;
}

@media (min-width: 991px) {
  .accordion--odd .accordion-item {
    border-radius: 10px;
  }
}

.accordion--odd .accordion-item {
  border: none;
}

.accordion--odd .accordion-header {
  background: #ddd;
  margin-top: 0;
}

.accordion--odd .accordion-item:first-of-type .accordion-button {
  border-radius: 0;
}

.accordion--odd .accordion-button {
  padding: 1rem 5px;
  font-size: 1rem;
  font-weight: 500;
}

@media screen and (min-width: 992px) {
  .accordion--odd .accordion-button {
    padding: 15px;
  }
}

.accordion--odd .accordion-button::after {
  content: "\f107";
  background-image: unset;
  font-family: "Line Awesome Free";
  font-weight: 900;
}

.accordion--odd .accordion-button:focus {
  box-shadow: none;
}

.accordion--odd .accordion-button {
  background-color: white;
  color: #000;
  box-shadow: none;
}

.accordion--odd .accordion-body {
  padding: 0;
  background-color: #f9f9f9;
}

span.bet-count {
  position: absolute;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  padding: 3px;
  font-size: 11px;
  display: flex;
  align-items: center;
  background: var(--base);
  color: hsl(var(--white));
  justify-content: center;
  top: -7px;
  right: -8px;
  line-height: 1;
}

/*---------------------------------------
    2.41 Form Lable
-----------------------------------------*/
.form-label {
  font-size: 0.875rem;
  line-height: 1;
  color: var(--light);
  font-weight: 500;
}


/*---------------------------------------
    2.44 Support Card
-----------------------------------------*/
.support-card {
  border: 1px solid hsl(var(--base) / 0.2);
  border-radius: 5px;
  background: hsl(var(--white));
}

.support-card.admin-reply {
  background-color: hsl(var(--base) / 0.2);
}

.support-card__title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

@media screen and (min-width: 768px) {
  .support-card__title {
    margin-bottom: 0;
  }
}

.support-card__head {
  padding: 12px 15px;
}

@media screen and (min-width: 768px) {
  .support-card__head {
    display: flex;
    justify-content: space-between;
  }
}

.support-card__date {
  display: block;
  line-height: 1;
}

.support-card__body {
  padding: 12px 15px;
}

.support-card__body-text {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--dark);
}

.support-card__list {
  --gap: 0.5rem;
}

@media screen and (min-width: 768px) {
  .support-card__list {
    margin-top: 1rem;
  }
}

.support-card__file {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid hsl(var(--base) / 0.2);
  border-radius: 5px;
  font-size: 14px;
  line-height: 1;
  color: var(--base);
}

.support-card__file:hover {
  background: var(--base);
  color: hsl(var(--white));
}

/*---------------------------------------
    2.45 Support List
-----------------------------------------*/
.support-list {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.home-page {
  background: var(--base);
}

/*---------------------------------------
    2.46 Home Page
-----------------------------------------*/
@media screen and (min-width: 992px) {
  .home-page {
    display: flex;
    align-items: flex-start;
    background: var(--base);
  }
}
/*---------------------------------------
    2.48 Social List
-----------------------------------------*/
.social-list {
  --gap: 0.5rem;
}

.social-list__icon {
  display: inline-block;
  text-decoration: none;
}

.social-list__icon i,
.social-list__icon span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--base);
  color: hsl(var(--white));
}

.social-list__icon i:hover,
.social-list__icon span:hover {
  box-shadow: 0 5px 15px 0 var(--dark);
}

.social-list__icon [class*="facebook"] {
  background: #1877f2;
  color: var(--light);
}

.social-list__icon [class*="linkedin"] {
  background: #0077b5;
  color: var(--light);
}

.social-list__icon [class*="instagram"] {
  background: #d6249f;
  background: radial-gradient(circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%);
  color: var(--light);
}

.social-list__icon [class*="twitter"] {
  background: #1da1f2;
  color: var(--light);
}

/*---------------------------------------
    2.50 Primary Menu
-----------------------------------------*/
@media screen and (min-width: 992px) {
  .primary-menu-container {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
    width: 100% !important;
  }
}

.primary-menu {
  --gap: 10px;
}

@media screen and (min-width: 992px) {
  .primary-menu {
    --gap: 15px;
  }
}

.nav-search .search-bar {
  display: flex;
  align-items: center;
  background-color: #2f3f50;
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
  min-width: 320px;
}

.nav-search .search-icon {
  width: 24px;
  height: 24px;
  color: #889bb1;
  flex-shrink: 0;
  padding-left: 8px;
}

.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #889bb1;
  font-size: 14px;
  min-width: 320px;
}

.nav-search input::placeholder {
  color: #889bb1;
}

/*---------------------------------------
    2.52 Login Page
-----------------------------------------*/
.login-page {
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: calc(100vh - 305px);
  display: flex;
  align-items: center;
}

/*---------------------------------------
    2.53 Login Form
-----------------------------------------*/
.login-form {
  padding: 30px 15px;
  background: var(--base);
  border-radius: 5px;
  margin-top: 8px;
}

@media screen and (min-width: 768px) {
  .login-form {
    padding: 50px 40px;
    background: var(--base);
  }
}

.login-form__title {
  margin-top: 0;
  font-size: 18px;
  position: relative;
  padding-bottom: 0.5rem;
}

@media screen and (min-width: 992px) {
  .login-form__title {
    font-size: 24px;
  }
}

.login-form__title::after {
  content: "";
  width: 30px;
  height: 4px;
  background: var(--base);
  position: absolute;
  left: 0;
  top: 100%;
}

/*---------------------------------------
    2.56 Contact Card
-----------------------------------------*/
.contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 5px;
  background: hsl(var(--white));
}

@media screen and (min-width: 768px) {
  .contact-card {
    padding: 20px 15px 20px 40px;
    position: relative;
    isolation: isolate;
  }
}

.contact-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--base);
  color: hsl(var(--white));
}

@media screen and (min-width: 768px) {
  .contact-card__icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
    position: absolute;
    left: -25px;
    box-shadow: 0 0 5px 8px var(--dark);
  }

  .contact-card__icon::after {
    content: "";
    position: absolute;
    inset: -5px;
    outline: 2px solid var(--base);
    border-radius: 50%;
  }
}

.contact-card__title {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.contact-card__text {
  margin-bottom: 0;
  font-size: 14px;
}

/*---------------------------------------
    2.57 QR Code
-----------------------------------------*/
.qr-code-wrapper {
  padding: 15px;
  background: hsl(var(--white));
}

.qr-code {
  padding: 5px 10px;
  border: 1px solid var(--light);
  border-radius: 5px;
  color: var(--dark);
}

.qr-code-copy-form {
  display: flex;
}

.qr-code-copy-form input[type="text"] {
  background-color: transparent;
  border: none;
  font-size: 14px;
  width: calc(100% - 75px);
  height: 40px;
}

@media screen and (min-width: 400px) {
  .qr-code-copy-form input[type="text"] {
    font-size: 1rem;
  }
}

.qr-code-copy-form .text-copy-btn {
  width: 75px;
  background-color: var(--base);
  border: none;
  border-radius: 5px;
  font-size: 14px;
}

.qr-code-form {
  position: relative;
}

.qr-code-form .form--control {
  height: 65px;
  padding-right: 95px;
}

.qr-code-form__btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 75px;
  height: calc(100% - 20px);
  font-size: 14px;
}

/*---------------------------------------
    3.1 Color
-----------------------------------------*/
.text--primary {
  color: hsl(var(--primary));
}

.text--secondary {
  color: hsl(var(--secondary));
}

.text--success {
  color: hsl(var(--success));
}

.text--danger {
  color: hsl(var(--danger));
}

.text--warning {
  color: hsl(var(--warning));
}

.text--info {
  color: hsl(var(--info));
}

.text--dark {
  color: var(--dark);
}

.text--light {
  color: var(--light);
}

.text--white {
  color: hsl(var(--white));
}

.text-clr {
  color: var(--text);
}

.heading-clr {
  color: hsl(var(--heading));
}

.text--base {
  color: var(--base);
}

.text--accent {
  color: hsl(var(--accent));
}

.text--accent-400 {
  color: hsl(var(--accent-400));
}

/*---------------------------------------
    3.2 Background
-----------------------------------------*/
.bg--primary {
  background: hsl(var(--primary));
}

.bg--secondary {
  background: hsl(var(--secondary));
}

.bg--success {
  background: hsl(var(--success));
}

.bg--danger {
  background: hsl(var(--danger));
}

.bg--warning {
  background: hsl(var(--warning));
}

.bg--info {
  background: hsl(var(--info));
}

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

.bg--light {
  background-color: hsl(var(--white));
}

.bg--base {
  background-color: var(--base);
}

.bg--accent {
  background: hsl(var(--accent));
}

/*---------------------------------------
    3.3 Padding
-----------------------------------------*/
.t-pt-50 {
  padding-top: 50px;
}

.t-pb-50 {
  padding-bottom: 50px;
}

/*---------------------------------------
    3.5 Utility Classes
-----------------------------------------*/
.t-heading-font {
  font-family: var(--heading-font);
  color: var(--light);
}

.t-body-font {
  font-family: var(--body-font);
}

.t-link {
  text-decoration: none;
  transition: all 0.3s ease;
}

.t-link--base {
  color: var(--light);
}



.t-link:hover {
  text-decoration: none;
}

.t-short-para {
  max-width: 50ch;
}

.pass-toggle {
  cursor: pointer;
}

.pass-toggle:hover {
  cursor: pointer;
}

/*---------------------------------------
    3.6 Animation
-----------------------------------------*/
@keyframes btnVideo {
  0% {
    box-shadow: 0 0 0 0 hsl(var(--warning));
  }

  50% {
    box-shadow: 0 0 0 10px hsl(var(--warning) / 0.3);
  }

  100% {
    box-shadow: 0 0 0 20px hsl(var(--warning) / 0.04);
  }
}

@keyframes circle {
  0% {
    transform: rotate(0deg) translate(-60px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translate(-60px) rotate(-360deg);
  }
}

@keyframes goright {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(80px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes goleft {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-80px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes topRight {
  0% {
    transform: translate(0);
  }

  50% {
    transform: translate(80px, -80px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes topLeft {
  0% {
    transform: translate(0);
  }

  50% {
    transform: translate(80px, 80px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes circlerotate {
  0% {
    transform: rotate(0deg) translate(-60px);
  }

  100% {
    transform: rotate(360deg) translate(-60px);
  }
}

@keyframes rotates {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes goTop {
  0% {
    transform: translateY(0) translateX(-50%);
  }

  50% {
    transform: translateY(-20px) translateX(-50%);
  }

  100% {
    transform: translateY(0) translateX(-50%);
  }
}

@keyframes heartBeat {
  0% {
    outline: 0 solid rgba(var(--r), var(--g), var(--b), 0.5);
  }

  25% {
    outline: 5px solid rgba(var(--r), var(--g), var(--b), 0.5);
  }

  50% {
    outline: 10px solid rgba(var(--r), var(--g), var(--b), 0.5);
  }

  75% {
    outline: 5px solid rgba(var(--r), var(--g), var(--b), 0.5);
  }

  100% {
    outline: 0 solid rgba(var(--r), var(--g), var(--b), 0.5);
  }
}

@keyframes imageBeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.7);
  }

  100% {
    transform: scale(1);
  }
}

/*---------------------------------------
    0.4 Layouts Style
-----------------------------------------*/
/*---------------------------------------
    4.1 Footer
-----------------------------------------*/
.footer {
  background: hsl(var(--white));
  overflow: hidden;
}

@media screen and (min-width: 990px) {
  .footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
}

.footer--dark {
  background: var(--dark);
}

@media screen and (min-width: 992px) {
  .footer--dark::before {
    content: "";
    position: absolute;
    inset: -30px;
    background-image: url(../images/wave.svg);
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    z-index: -1;
  }

  .footer--dark::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/wave.svg);
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    z-index: -1;
    inset: -70px;
  }
}

.footer--dark .footer__title {
  color: var(--light);
}

.footer--dark .footer__about {
  color: var(--light);
}

.footer--dark .footer__link {
  color: var(--light);
}

.footer__title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.footer__about {
  max-width: 45ch;
  font-size: 14px;
  color: var(--dark);
}

.footer__list {
  --gap: 5px;
}

.footer__list li {
  line-height: 1;
}

.footer__link {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  color: var(--dark);
}

.footer__link:hover {
  color: var(--base);
}

.footer-bottom {
  padding: 15px;
  border-radius: 10px;
  background: hsl(var(--white));
}

@media screen and (min-width: 576px) {
  .footer-bottom {
    padding: 10px 15px;
  }
}

.footer-bottom--dark {
  border-radius: 0;
  background: var(--base);
  color: var(--light);
}

@media screen and (min-width: 992px) {
  .footer-bottom--dark {
    padding: 15px 0;
  }
}

.footer__flag {
  width: 50px;
  height: 25px;
  display: inline-block;
}

.footer__flag-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Footer brand override --- */
.footer--dark,
.footer-bottom,
.footer-bottom--dark {
  background: var(--base) !important;
  color: var(--light) !important;
}

/* Kill decorative waves behind the footer */
.footer--dark::before,
.footer--dark::after {
  content: none !important;
  background: none !important;
}

/* Make all typical footer text white */
.footer__title,
.footer__about,
.footer__link,
.footer__link:hover,
.footer__list li,
.footer-bottom,
.footer-bottom--dark {
  color: var(--light) !important;
}

/* If you have generic links inside footer, keep them white too */
.footer a,
.footer a:hover,
.footer a:focus {
  color: var(--light) !important;
  text-decoration-color: rgba(255,255,255,0.6);
}

/* Social icons (icon-fonts): inherit white */
.footer .social a,
.footer .social a:hover,
.footer .social a:focus {
  color: var(--light) !important;
}

/* Social icons (inline SVGs): force white fill/stroke */
.footer .social svg,
.footer .social svg * {
  fill: var(--light) !important;
  stroke: var(--light) !important;
}

/* Optional: subtle opacity change on hover (still white) */
.footer .social a:hover svg,
.footer .social a:hover svg *,
.footer__link:hover {
  opacity: 0.9;
}
.footer--dark,
.footer-bottom,
.footer-bottom--dark {
  background: var(--base) !important;
  color: var(--light) !important;
  border-top: 1px solid var(--card-border); /* new border */
}
/* floating bar look */
.footer-float {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;                 /* above .app-nav (9999) */
  transform: translateY(100%);
  transition: transform .25s ease, opacity .25s ease;
  box-shadow: 0 -8px 24px rgba(0,0,0,.25);
  border-top: 1px solid var(--card-border);
}
.footer-float.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .footer-float { transition: none; }
}

@media (max-width: 767px) {
  .footer-bottom {
    padding-bottom: 60px; 
  }
}

/*---------------------------------------
    4.2 Sidebar
-----------------------------------------*/
.sidebar {
  top: 75px;
}

/*---------------------------------------
    4.3 Contact Section
-----------------------------------------*/
.contact-section {
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
}

.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--base);
  mix-blend-mode: multiply;
}

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

.sub-category-drawer__link,
.sub-category-drawer__link.active .sub-category-drawer__text {
  color: var(--base);
}

.option-odd-list__item button.active {
  background: hsl(var(--base) / 0.7);
  color: hsl(var(--white));
}

.bet-type {
  padding-bottom: 15px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 0.5rem;
}

.bet-type__btn {
  cursor: pointer;
  display: inline-block;
  width: 100%;
  padding: 8px 15px;
  border: 1px solid var(--dark);
  background: transparent;
  font-size: 14px;
  line-height: 1.2;
  color: var(--dark);
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.bet-type__btn input {
  display: none;
}

.bet-type__btn:hover {
  background: var(--base);
  color: hsl(var(--white));
  border-color: var(--base);
}

.bet-type__btn:has(input:checked) {
  background: var(--base);
  color: hsl(var(--white));
  border-color: var(--base);
}

.single-bet li,
.login-message {
  background: var(--light);
  border: 1px solid #dddddddb;
  margin: 10px 0;
  border-radius: 10px;
  margin-top: 0px;
  overflow: hidden;
}

.login-message {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.login-message-text {
  margin: 0;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: hsl(var(--black) / 0.7);
}

.single-bet li {
  padding: 0;
}

.single-bet .betslip-return {
  text-align: center;
  font-size: 0.6rem;
  color: hsl(var(--black) / 0.7);
}

.single-bet .bet-return-amount {
  font-size: 1rem;
  display: block;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
}

/*---------------------------------------
    Select Language
-----------------------------------------*/
.select-lang {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 5px;
}

.select-lang::before {
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  color: var(--light);
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 0 0.25rem 0.25rem 0;
  pointer-events: none;
  z-index: 1;
  font-size: 12px;
  display: flex;
}

@media screen and (min-width: 992px) {
  .select-lang::before {
    padding-right: 0;
    right: 0;
  }
}

.select-lang--container {
  padding-top: 3px;
  padding-bottom: 3px;
}

.select-lang__icon {
  position: relative;
  color: var(--base);
  top: auto;
  left: auto;
}

.select-lang .form-select {
  border: none;
  padding: 0;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--light);
  background: transparent;
}

@media screen and (min-width: 992px) {
  .select-lang__icon {
    position: absolute;
    left: -7px;
    top: -4px;
  }

  .select-lang .form-select {
    padding: 0 12px;
  }

  .betting-body {
    min-height: calc(100vh - 615px);
  }
}

@media (max-width: 424px) {
  .select-lang .form-select {
    font-size: 0.75rem;
  }
}

.select-lang .form-select:focus {
  box-shadow: none;
}

.select-lang option {
  padding-left: 30px;
  padding-right: 30px;
  background-color: hsl(var(--accent-dark));
}

@media (max-width: 475px) {
  .google-captcha * {
    max-width: 260px !important;
  }
}

button.rotate::after {
  content: "\f106" !important;
  color: var(--base);
}


@media only screen and (max-width: 575px) and (min-width: 424px) {
  .col-xsm-6 {
    width: 50%;
  }
}

.border--base {
  border: 1px solid var(--base);
}

.removeFile {
  font-size: 20px !important;
  line-height: 1;
}

.modal {
  z-index: 99999;
}

.modal-backdrop {
  z-index: 111;
}

.deposit-usd .text {
  line-height: 1;
  transform: translateY(2px);
}


.login-form input[type="number"] {
  border-radius: 0px 5px 5px 0px !important;

}

.login-form .input-group .form-control {
  border-radius: 5px !important;
}

.input-group-text {
  border: 1px solid var(--base);
}

.login-form .input-group .phone-number.form-control {
  border-left: 0;
  margin-left: 0 !important;
  border-radius: 0 3px 3px 0 !important;
}

.input-group-text.mobile-code {
  border-right: 0;
}

.betslip__body {
  background: var(--light);
  border: 1px solid #dddddddb;
  margin: 10px 0;
  border-radius: 10px;
  margin-top: 0px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.betslip__body::-webkit-scrollbar {
  width: 0px;
}

.game-title {
  text-align: center;
  padding: 15px 0 7px 0;
}

.fs-size--45 {
  font-size: 45px;
}

.fs-size--15 {
  font-size: 15px;
}

.btn-outline--base {
  background: unset;
  border: 1px solid var(--light);
  color: var(--light);
}

.btn-outline--warning {
  background: unset;
  border: 1px solid hsl(var(--warning));
  color: hsl(var(--warning));
}

.btn-outline--success {
  background: unset;
  border: 1px solid hsl(var(--success));
  color: hsl(var(--success));
}

.btn-outline--danger {
  background: unset;
  border: 1px solid hsl(var(--danger));
  color: hsl(var(--danger));
}

.btn-outline--info {
  background: unset;
  border: 1px solid hsl(var(--info));
  color: hsl(var(--info));
}

.btn-outline--base.active,
.btn-outline--base:hover {
  background: var(--base);
  border: 1px solid var(--base);
  color: hsl(var(--white));
}

.sports-category .slick-track,
.sports-sub-category .slick-track {
  margin: 0 !important;
}

@media (max-width: 991px) {
  .sub-category-drawer__text {
    font-size: 12px !important;
  }

  .sub-category-drawer__link {
    text-align: center;
  }
}

@media (max-width: 424px) {
  .logo {
    max-width: 120px;
  }
}

@media (max-width: 768px) { /* Adjust the max-width as needed */
    .mobile-center {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically if needed */
        text-align: center; /* Center text if any */
    }
}

.bet-type__live,
.bet-type__upcoming {
  display: inline-block;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid hsl(var(--white));
  background: transparent;
  font-size: 14px;
  line-height: 1.2;
  color: hsl(var(--white));
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.bet-type__live:hover,
.bet-type__upcoming:hover {
  background: var(--base);
  color: var(--white);
  border-color: var(--base);
}

.bet-type__live.active,
.bet-type__upcoming.active {
  background: var(--base);
  color: hsl(var(--white));
  border-color: var(--base);
}

.post-card {
  height: 100%;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  background-color: var(--light);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.post-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-card__thumb {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  position: relative;
}

.post-card__thumb img {
  width: 100%;
  border-radius: 5px 5px 0px 0px;
  max-height: 250px;
}

.post-card__content {
  padding: 20px;
}


.blog-details__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.blog-details__thumb img {
  width: 100%;
}

.blog-details__thumb .post__date {
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 75px;
  text-align: center;
}

.blog-details__thumb .post__date .date {
  font-size: 30px;
  font-weight: 700;
  color: var(--light);
  background-color: #95bf46;
  padding: 10px 5px;
  width: 100%;
  line-height: 1;
}

.blog-details__thumb .post__date .month {
  background-color: var(--light);
  padding: 4px 5px;
  width: 100%;
  line-height: 1;
  font-size: 18px;
}

.blog-details__content {
  margin-top: 30px;
}

.blog-details__content p {
  margin-top: 20px;
}

.blog-details__content .blog-details__title {
  font-size: 24px;
}

.blog-details__content blockquote {
  margin-top: 30px;
  margin-bottom: 0;
}

blockquote {
  font-size: 18px;
  color: #6f6f6f;
  font-style: italic;
  text-align: center;
  padding: 50px 60px;
  background-color: #002046;
  color: var(--light);
}

@media (max-width: 575px) {
  blockquote {
    padding: 30px 40px;
    font-size: 16px;
  }
}

.blog-details__footer {
  text-align: center;
  padding-top: 50px;
}

.blog-details__footer .caption {
  font-size: 24px;
  margin-bottom: 20px;
}

.blog-social__link {
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 15px;
}

.blog-social__link li {
  list-style: none;
}

.blog-social__link li a {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--base);
  border: 1px solid var(--base);
  border-radius: 30px;
}

.blog-social__link li a:hover {
  background-color: var(--base);
  color: var(--light);
}

.sidebar {
  padding-left: 30px;
}

@media (max-width: 991px) {
  .sidebar {
    padding-left: 0;
  }
}

.sidebar .list li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.sidebar .list li:first-child {
  padding-top: 0;
}

.sidebar .list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar .list li .caption {
  font-weight: 600;
}

.sidebar .list li .caption::after {
  content: " :";
}

.sidebar .list li .info {
  float: right;
}


.sidebar .small-post-list .small-post {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.sidebar .small-post-list .small-post:first-child {
  padding-top: 0;
}

.sidebar .small-post-list .small-post:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar .small-post-list .small-post__thumb {
  width: 60px;
  height: 50px;
}

.sidebar .small-post-list .small-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -o-object-fit: cover;
  object-position: center;
  -o-object-position: center;
}

.sidebar .small-post-list .small-post__content {
  width: calc(100% - 60px);
  padding-left: 20px;
}

.sidebar .small-post-list .small-post__content .post__title a {
  font-size: 16px;
  font-weight: 600;
}

.banner-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
}

.banner_slide {
  position: relative;
  width: 100%;
  height: 100%;
  top: 0;
}

.banner_image {
  width: 100%;
}

.banner_overlay {
  position: absolute;
  z-index: 900;
  width: 800px;
  height: 100%;
  left: 50%;
  margin-left: -400px;
}

.banner_overlay_container {
  position: absolute;
  top: 0;
  width: 70%;
  padding-left: 50px;
}

.banner-slider_nav {
  position: absolute;
  z-index: 9999;
  width: 800px;
  bottom: 0;
  text-align: center;
  left: 50%;
  margin-left: -400px;
  padding-left: 0;
  margin-bottom: 0;
}

.banner-slider_nav_item {
  display: inline;
}

.banner-slider_nav_item>a {
  display: inline-block;
  font-size: 3em;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  padding: 8px 3px;
  line-height: 12px;
}

.banner-slider_nav_item>a:hover {
  color: rgba(0, 0, 0, 0.75);
}

.banner-slider_nav_item--is-selected>a {
  color: #000;
}

.banner_slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

.banner_button {
  padding: 20px;
  text-decoration: none;
  color: var(--light);
  display: inline-block;
}

@media screen and (max-width: 425px) {
  .betslip {
    max-width: 100% !important;
  }
}

.simplebar-offset {
  right: 0;
  bottom: 0;
}

.simplebar-content-wrapper {
  height: auto;
  overflow: hidden scroll;
}

.simplebar-wrapper {
  margin: 0px -4.8px;
}

@media (max-width: 991px) {
  .sports-sub-category .simplebar-content {
    background: var(--light);
  }
}

@media only screen and (max-width: 574px) and (min-width: 425px) {
  .col-msm-6 {
    width: 50%;
  }
}


.validation-msg,
.total-validation-msg,
.total-stake-amount {
  display: block;
  font-size: 0.6875rem;
  padding-top: 2px;
}

.simplebar-horizontal {
  visibility: hidden;
}

.simplebar-horizontal .simplebar-scrollbar {
  width: 0px;
  display: none;
}

.simplebar-vertical {
  visibility: visible;
}

.simplebar-vertical .simplebar-scrollbar {
  height: 725px;
  transform: translate3d(0px, 0px, 0px);
  display: block;
}

.simplebar-placeholder {
  width: auto;
  height: 735px;
}

.maintenance-page {
  display: grid;
  place-content: center;
  width: 100vw;
  height: 100vh;
}

.maintenance-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--light);
  font-size: 26px;
  color: #e73d3e;
}

.empty-slip-message {
  display: grid;
  place-content: center;
  color: #cfcfcf;
  font-size: 0.8754rem;
  font-family: inherit;
  height: 100%;
}

.empty-slip-message img {
  width: 75px;
  margin-bottom: 0.875rem;
}

.bet-return {
  line-height: 1rem;
}

.bet-return span {
  font-size: 12px;
}

.delete-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--danger));
  border-radius: 50%;
  color: var(--light);
  border: 0;
}

.delete-btn i {
  font-size: 20px;
}

.betslip__list-close {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  color: hsl(var(--danger));
  background-color: hsl(var(--danger) / 0.15) !important;
  font-size: 10px;
}

.betslip__list-close i {
  font-size: 12px;
}

.betslip-form {
  display: none;
}

.empty-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 630px);
}

.empty-message img {
  width: 110px;
}

.empty-message p {
  margin-top: 0.5rem;
  color: #b5b5b5;
  font-size: 0.875rem;
}

.widget-card__icon i {
  font-size: 22px;
}

.remove-cursor {
  cursor: unset;
}

/* Custom Dropdown Css End */

#loginModal .modal-content .modal-body {
  padding: 2.8rem;
}

.login-modal .modal-body .close {
  position: absolute;
  right: 20px;
  top: 20px;
  line-height: 1;
}

.login-modal .modal-body .close i {
  font-size: 18px;
  color: var(--light);
}

.option-odd-list .sports-category__arrow-next,
.option-odd-list .sports-category__arrow-prev {
  background: linear-gradient(268deg, var(--light), var(--light));
  color: #3b3b3b;
  top: 1px;
  border-radius: 0 3px 3px 0;
  border-left: 0;
  line-height: 1;
  width: 35px;
}

.option-odd-list .sports-category__arrow-prev.slick-disabled {
  display: none !important;
}

.option-odd-list .sports-category__arrow-next {
  right: -14px;
}

.option-odd-list .sports-category__arrow-prev {
  left: -14px;
  left: 0;
  opacity: 1;
  visibility: visible;
  background: linear-gradient(268deg, var(--light), var(--light));
}

.option-odd-list .sports-category__arrow-next i {
  font-size: 0.875rem;
}

.custom-dropdown {
  margin-bottom: 7px;
}

.option-odd-list .slick-slide {
  margin: 0 6px;
}

.locked {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.locked::before {
  position: absolute;
  content: "\f023";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  width: 100%;
  height: 100%;
  background-color: #00000080;
  left: 0;
  top: 0;
  border-radius: inherit;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  font-size: 0.875rem;
  align-items: center;
}

.option-odd-list__item .btn-light.active:focus,
.option-odd-list__item .btn-light.active:active {
  box-shadow: none !important;
  background-color: var(--base);
}

/* pagination design start here */

.pagination-wrapper p {
  margin-bottom: 0px;
}

.dropdown-lang {
  margin-top: 25px;
}
.dropdown-lang:hover {
  margin-top: 25px;
  border-color: var(--card-bg);/* hover border color change */
  filter: brightness(1.02);    /* subtle hover feedback */
}
.dropdown-lang .language-btn .flag {
  width: 20px;
  height: 25px;
  border-radius: 2px;
}
/* Make language dropdown button a full container */
.dropdown-lang .language-btn {
  display: flex;               /* flag + text align nicely */
  align-items: center;
  gap: 6px;                    /* spacing between flag and text */
  padding: 3px 7px;           /* expand clickable area */
  border-radius: 3px;          /* rounded corners */
  transition: background 0.2s ease;
}

.dropdown-lang .language-btn:hover,
.dropdown.show > .dropdown-toggle.language-btn,
.dropdown-lang .language-btn:focus-visible {
  background: var(--card-bg);
  border-radius: 3px;
}

.dropdown-lang .language-btn:focus { outline: none; }

.dropdown-lang .language-btn::after {
  color: var(--light) !important;
}

.dropdown-lang .language-text {
  color: hsl(var(--body-color));
  font-size: 16px;
}

@media (max-width: 424px) {
  .dropdown-lang .language-btn .flag {
    width: 16px;
    height: 20px;
  }

  .dropdown-lang .language-text {
    font-size: 0.875rem;
  }
}

.dropdown-lang .dropdown-menu {
  width: 180px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  max-height: 370px;
  overflow-y: auto;
  background-color: var(--base);
  z-index: 999;
  box-shadow: var(--box-shadow);
}

.dropdown-lang .dropdown-menu a {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--light);
  transition: 0.3s;
}

.dropdown-lang .dropdown-menu a .flag {
  max-width: 20px;
  margin-right: 10px;
}

.dropdown-lang .dropdown-menu li:last-child a {
  margin-bottom: 0px;
}

.list--group .list-group-item {
  background-color: var(--base);
  border-color: var(--dark);
}

.list--group .list-group-item.head {
  background-color: var(--dark);
}

.slick-arrow.slick-disabled {
  display: none !important;
}

.arrow-next.category-slider-btn {
  right: 0;
}

.arrow-prev.category-slider-btn {
  left: 0;
}

.category-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: 30px;
  border: 0;
  z-index: 9;
  background: transparent;
}

.category-slider-btn::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 50px;
  top: 0;
  z-index: -1;
  border-radius: 10px;
}

.arrow-prev.category-slider-btn::after {
  left: 0;
  background: linear-gradient(319deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(255, 255, 255, 1) 62%);
}

.arrow-next.category-slider-btn::after {
  right: 0;
  background: linear-gradient(319deg,
      rgba(255, 255, 255, 1) 38%,
      rgba(0, 0, 0, 0) 100%);
}

  .details-link {
    font-size: 0.65rem;
  }

.hide-scroll {
  height: 100vh;
  overflow: hidden;
}

.top-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}

.betslip {
  display: flex;
  flex-direction: column;
}

.betslip-header {
  flex-shrink: 0;
}

.betslip__body {
  flex: 1;
}

.betslip-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.betslip__list-footer {
  padding-top: 6px;
  border-top: 1px solid hsl(var(--black) / 0.1);
}

.betslip-inner::-webkit-scrollbar {
  width: 0px;
}

.betslip__footer {
  flex-shrink: 0;
}

.betslip-select {
  margin-bottom: 8px;
  padding: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

.betslip-select .form-select {
  padding: 3px 6px;
  border: 1px solid #ddd;
  box-shadow: none !important;
  font-size: 0.875rem;
}

.betslip-select .form-select:focus {
  border-color: var(--base);
}

.betslip-righ {
  flex: 1;
  padding-inline: 12px;
}

.betslip__footer-bottom {
  margin-top: 12px;
  padding-top: 12px;
  padding-inline: 12px;
  border-top: 1px solid #ececec;
}

.betslip-return {
  font-size: 12px;
  display: block;
  text-align: end;
  margin-top: 4px;
}

.betslip-input-inner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 9px;
  color: hsl(var(--black) / 0.5);
  font-weight: 400;
}

.betslip__list-ratio:has(.betslip-input-inner) input {
  padding-left: 42px;
}

.live-btn-wrapper {
  width: calc(var(--left-side) - (var(--bs-gutter-x) * 0.5));
  flex-shrink: 0;
}

/* ========================= */
.betslip-item {
  padding: 12px;
  border: 1px solid hsl(var(--black) / 0.15);
  border-radius: 5px;
  background: hsl(var(--white));
}

.betslip-item:not(:last-child) {
  margin-bottom: 8px;
}

.betslip-item>*:not(:last-child) {
  margin-bottom: 12px;
}

.betslip-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.betslip-item-body>*:not(:last-child) {
  margin-bottom: 8px;
}

.betslip-item-close {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--black);
  background-color: hsl(var(--black) / 0.1);
}

.betslip-item-close i {
  font-size: 12px;
}

.betslip-item-league {
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.betslip-item-league i {
  font-size: 12px;
  color: var(--dark);
}

.betslip-item-league__name {
  line-height: 1.2;
  font-weight: 400;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.betslip-item-teams> :not(:last-child) {
  margin-bottom: 4px;
}

.betslip-item-team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.betslip-item-team__logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.betslip-item-team__name {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}

.betslip-item-market {
  font-size: 12px;
}

.betslip-item-market__wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.betslip-item-market__type {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  line-height: normal;
}

.betslip-item-market__label {
  line-height: 1;
  font-weight: 500;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.betslip-item-market__score {
  font-style: 12px;
  font-weight: 600;
  color: var(--base);
  line-height: 1;
}

.betslip-item-stake {
  line-height: normal;
}

.betslip-item-stake__label {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}

.betslip-item-stake .input-group {
  border-radius: 5px;
  border: 1px solid hsl(var(--black) / 0.15);
}

.betslip-item-stake .input-group:focus-within {
  border-color: var(--base);
}

.betslip-item-stake .input-group .input-group-text {
  font-size: 12px;
  padding: 0;
  background-color: transparent;
  border: none;
  color: #334155;
}

.betslip-item-stake .input-group .input-group-text:first-child {
  padding: 0px 0px 0px 6px;
}

.betslip-item-stake .input-group .input-group-text:last-child {
  padding: 0px 6px 0px 0px;
}

.betslip-item-stake .input-group .form-control {
  padding: 0px 3px 0px 6px;
  height: 28px;
  border: none;
  font-size: 12px;
  font-weight: 400;
}

.betslip-item-stake .input-group .form-control::placeholder {
  color: #334155;
  font-weight: 400;
}

.betslip-item-return {
  margin-top: 0px;
}

.betslip-item-return__text {
  font-size: 12px;
  color: var(--dark);
  line-height: 1;
}

.betslip-item-return__text span {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
}

.odd-list__outcomes {
  justify-content: center;
  padding: 16px;
}

.accordion-body:has(.odd-list__outcomes) {
  justify-content: center;
  background-color: transparent;
}

.odd-list__outcomes li {
  padding: 10px 12px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.odd-list__outcomes li:not(:last-child) {
  margin-bottom: 16px;
}

.odd-list__outcome.oddBtn {
  border: 0;
  background: hsl(var(--black) / 0.1);
  padding: 6px 12px;
  line-height: 1;
  font-size: 0.875rem;
  border-radius: 4px;
  font-weight: 500;
  color: hsl(var(--black) / 9);
}

.odd-list__outcome-text {
  font-size: 0.875rem;
}

.odd-list__outcome.active {
  background: hsl(var(--base) / 0.7);
  color: hsl(var(--white));
}

.custom--modal .modal-body {
  padding: 2rem;
}

@media (max-width: 575px) {
  .custom--modal .modal-body {
      padding: 1.2rem;
    }
}

.custom--modal .modal-body button.close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: transparent;
  border: 0;
  color: #a7a7a7;
  transition: all 0.3s ease;
}

.custom--modal .modal-body button.close:hover {
  color: #7c7c7c;
}

.custom--modal .modal-body button.close i {
  font-size: 1.3rem;
}

.custom--modal .modal-footer {
  border-top: none;
}

.custom--modal .modal-content {
  border-radius: 10px;
}

.custom--modal .btn:disabled {
  color: var(--light);
  pointer-events: none;
  background-color: var(--base);
  border-color: none;
  opacity: var(--bs-btn-disabled-opacity);
}

.bet-list-item__header {
  padding: 8px 16px;
  border-bottom: 1px solid #dddddddb;
}

.bet-list-item__body {
  padding: 0px 16px;
}

.bet-list-item__footer {
  padding: 12px 16px;
}

.bet-list-item__title {
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
}

.bet-single {
  line-height: 1;
  margin: 0 -16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bet-market_type {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  color: #979797;
}

.bet-single__teams {
  line-height: 1;
  margin-top: 4px;
}

.bet-single__team {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

.bet-single__vs {
  font-size: 14px;
  line-height: normal;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
}

.bet-single__selected-team {
  margin-top: 4px;
  border-radius: 50px;
  padding: 6px 12px;
  color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(0, 0, 0, 0.05);
}

.bet-single__selected-team .name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.bet-single__selected-team .badge {
  border: none;
  border-radius: 999px;
  background: unset;
}

.bet-single__selected-team .badge--warning {
  color: #ffbf00;
}

.bet-single-info__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  line-height: 1;
}

.bet-single-info__item:not(:last-child) {
  margin-bottom: 12px;
}

.bet-single-info__item .label,
.bet-single-info__item .value {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.bet-single-info__item .label {
  color: #475569;
}

.bet-single-info__item .value {
  color: rgba(0, 0, 0, 0.8);
}

.show-bet-status .badge {
  border: none;
  border-radius: 999px;
}

.bet-list-item .badge {
  border-radius: 0;
  background-color: transparent !important;
  padding: 0 !important;
  border: none !important;
  font-weight: 400;
}

/* Base look */
.dropdown-toggle.user-profile-btn {
  background-color: transparent !important;
  border: none !important;
  color: var(--light);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent; /* no gray flash on mobile */
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

/* Hover + open state + keyboard focus */
.dropdown-toggle.user-profile-btn:hover,
.dropdown.show > .dropdown-toggle.user-profile-btn,
.dropdown-toggle.user-profile-btn:focus-visible {
  background: var(--base-search) !important;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  border-radius: 3px;
}

/* Do NOT style plain :focus so it won't stick after click */
.dropdown-toggle.user-profile-btn:focus { outline: none; }

/* Optional click feedback */
.dropdown-toggle.user-profile-btn:active { transform: translateY(0.5px); }

/* Icon sizing */
.dropdown-toggle.user-profile-btn i { font-size: 20px; }

/* Menu styles */
.user-profile-dropdown .dropdown-menu {
  border: 1px solid var(--card-border) !important;
  background: var(--base) !important;
  border-radius: 3px;
}
.user-profile-dropdown .dropdown-item {
  font-size: 14px;
  color: var(--light);
}
.user-profile-dropdown .dropdown-item:hover {
  background: var(--base-search);
}


.sports-card-rectangle-container {
  aspect-ratio: 16 / 9; 
    width: 100%;
    min-width: 250px;   /* prevent too-narrow = squares */
    height: 200px;   
    border: 1.5px solid var(--card-border);
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 5px 15px var(--dark);
}

/* Hover effect: background + lift */
.sports-card-rectangle-container:hover {
    background: var(--card-hover-bg);
    transform: translateY(-1px); /* pop up 1px */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* subtle shadow when lifted */
}

/* Header */
.sports-card-header {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    height: 60px;
    display: flex;
    align-items: center;
    background: inherit;
    padding: 0;
}

/* Header image */
.sports-card-header-image {
    padding-top: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.sports-card-header-image img {
    margin-left: 15px;
    width: 33px;
    height: 33px;
    object-fit: cover;
    border-radius: 4px;
    background: #ccc;
}

/* Title */
.sports-card-header-title {
    flex: 1;
    padding-top: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-weight: normal;
    text-align: left;
    line-height: 1.1;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-left: 5px;
}
.sports-card-header-title span {
    display: block;
    width: 100%;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: white;
    font-size: 0.7em;
    font-weight: normal;
}

/* Content area */
.sports-card-content {
    flex: 1;
    background: inherit;
    padding: 5px 0;
    overflow: hidden;
}
.sports-card-scroll-list {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: white;
}
.sports-card-scroll-list::-webkit-scrollbar {
    display: none;
}
.sports-card-list-item {
    background: inherit;
    border-radius: 5px;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Text inside list items */
.sports-card-item-text {
    flex: 1;
    font-size: 15px;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action buttons inside list items */
.sports-card-item-actions {
    display: flex;
    gap: 4px;
}

/* Common button styles */
.sports-card-btn {
    width: 44px;
    height: 31px;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, border 0.2s, color 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    box-sizing: border-box;
}
.sports-card-btn .label-hover {
    display: none;
}
.sports-card-btn .default-text {
    display: inline;
}

/* YES button */
.sports-card-btn.yes {
    background: var(--yes-bg);
    border-color: var(--yes-color);
    color: var(--yes-color);
}
.sports-card-btn.yes:hover {
    background: var(--yes-color);
    border-color: var(--yes-color);
    color: var(--white);
}
.sports-card-btn.yes:hover .default-text {
    display: none;
}
.sports-card-btn.yes:hover .label-hover {
    display: inline;
}

/* NO button */
.sports-card-btn.no {
    background: var(--no-bg);
    border-color: var(--no-color);
    color: var(--no-color);
}
.sports-card-btn.no:hover {
    background: var(--no-color);
    border-color: var(--no-color);
    color: var(--white);
}
.sports-card-btn.no:hover .default-text {
    display: none;
}
.sports-card-btn.no:hover .label-hover {
    display: inline;
}

/* Footer */
.sports-card-footer {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    height: 40px;
    background: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-sizing: border-box;
    position: relative;
}
.sports-card-footer-vol {
    font-weight: 500;
    font-size: 12px;
    color: #899cb2;
    padding-left: 2px;
}

/* Ribbon (favourite button container) */
.sports-card-ribbon {
    position: absolute;
    bottom: 3px;
    right: 12px;
    z-index: 5;
}
/* YES % number shown before the YES button */
.sports-card-yes-pct{
  color: var(--light);
  font-weight: 700;     /* you said “with font weight” */
  font-size: 14px;      /* tweak as you like */
  margin-right: 0px;    /* a little gap before the YES button */
  white-space: nowrap;
  padding-top: 4px;
}

/* Favourite button */
.favourite-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: color 0.2s ease;
}
.favourite-btn:hover { color: #ccc; }

.favourite-btn.active,
.favourite-btn.active:hover {
    color: var(--no-color);
}
.favourite-btn.active .heart-icon {
    fill: currentColor;
}

/* Make sure the button can render pseudo-elements */
.favourite-btn {
  position: relative;
}

/* Smooth color + scale transitions for the icon */
.favourite-btn .heart-icon {
  transition: transform 140ms ease, color 150ms ease, fill 150ms ease;
  transform-origin: 50% 50%;
}

/* When adding a favourite: quick pop */
.favourite-btn.is-animating-add .heart-icon {
  animation: fav-pop-in 260ms ease-out;
}

/* When removing a favourite: subtle pop-out */
.favourite-btn.is-animating-remove .heart-icon {
  animation: fav-pop-out 220ms ease-out;
}

/* Ripple burst ring on add (uses currentColor, so it matches your red) */
.favourite-btn.is-animating-add::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.25;
  pointer-events: none;
  animation: fav-burst 380ms ease-out forwards;
}

/* Keyframes */
@keyframes fav-pop-in {
  0%   { transform: scale(1);   }
  50%  { transform: scale(1.35);}
  100% { transform: scale(1);   }
}
@keyframes fav-pop-out {
  0%   { transform: scale(1);   }
  50%  { transform: scale(0.88);}
  100% { transform: scale(1);   }
}
@keyframes fav-burst {
  0%   { width: 0;     height: 0;     opacity: 0.35; }
  75%  { width: 2.4rem;height: 2.4rem;opacity: 0.15; }
  100% { width: 3.2rem;height: 3.2rem;opacity: 0;    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .favourite-btn .heart-icon { transition: none; }
  .favourite-btn.is-animating-add::after { animation: none; }
  .favourite-btn.is-animating-add .heart-icon,
  .favourite-btn.is-animating-remove .heart-icon { animation: none; }
}


/* Single market body */
.sports-card-single-market {
  height: 100%;
  display: flex;
  align-items: flex-end;  /* sit toward the bottom */
  justify-content: center;
  padding: 6px 12px;      /* a bit of breathing room */
}

.single-market-buttons {
  display: flex;
  gap: 8px;               /* slightly tighter than 10px */
  width: 100%;
  padding-top: 22px;
  margin-top: auto;       /* pushes buttons toward footer */
}

.single-buy-btn {
  flex: 1;
  height: 40px;           /* smaller than 60px */
  border-radius: 8px;
  font-size: 14px;        /* a touch smaller */
  font-weight: 400;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, color .2s, transform .1s;
}

.single-buy-btn .arrow-icon {
  font-size: 14px;        /* a bit smaller than before */
  line-height: 1;
}

.single-buy-btn.yes {
    background: var(--yes-bg);
    color: var(--yes-color);
}
.single-buy-btn.yes:hover {
    background: var(--yes-color);
    color: white;
}
.single-buy-btn.no {
    background: var(--no-bg);
    color: var(--no-color);
}
.single-buy-btn.no:hover {
    background: var(--no-color);
    color: white;
}

/* Header percentage bar */
.header-percentage-bar {
    position: relative;
    padding-top: 4px;
    width: 80px;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    margin-right: 10px;
}
.header-percentage-bar .bar-fill {
    background: var(--yes-color);
    height: 100%;
    border-radius: 5px;
}
.header-percentage-bar .bar-text {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 20px;
    color: white;
}
/* ---------- Tablet adjustments ---------- */
@media (max-width: 991px) {
    .sports-card-rectangle-container {
        width: 100%;
        height: 200px; /* let content define height */
    }

    .sports-card-header {
        height: 60px;
    }

    .sports-card-header-image img {
        width: 28px;
        height: 28px;
        margin-left: 10px;
    }

    .sports-card-header-title span {
        font-size: 0.75em;
    }

    .sports-card-btn {
        width: 42px;
        height: 30px;
        font-size: 13px;
    }

    .single-buy-btn {
        height: 40px;
        font-size: 13px;
    }

    .header-percentage-bar {
        width: 70px;
    }

    .header-percentage-bar .bar-text {
        font-size: 16px;
    }
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 576px) {
    .sports-card-rectangle-container {
        width: 100%;
        border-radius: 8px;
        height: 200px;
    }

    .sports-card-header {
        flex-direction: row;
        align-items: center;
        height: 60px;
    }

    .sports-card-header-image {
        width: 36px;
        height: 36px;
        padding: 4px;
    }

    .sports-card-header-image img {
        width: 32px;
        height: 32px;
        margin-left: 6px;
    }

    .sports-card-header-title {
        margin-left: 6px;
        padding: 0 4px;
    }

    .sports-card-header-title span {
        font-size: 0.8em;
    }

    /* Make action buttons bigger for touch */
    .sports-card-btn {
        width: 40px;
        height: 34px;
        font-size: 13px;
    }

    .single-market-buttons {
        flex-direction: row;
        gap: 6px;
        padding-top: 10px;
    }

    .single-buy-btn {
        height: 40px;
        font-size: 12px;
    }

    .single-buy-btn .arrow-icon {
        font-size: 12px;
    }

    /* Adjust header percentage bar */
    .header-percentage-bar {
        width: 60px;
        height: 8px;
        margin-right: 6px;
    }

    .header-percentage-bar .bar-text {
        font-size: 14px;
        top: -18px;
    }

    /* Scroll list: less padding on small screens */
    .sports-card-scroll-list {
        padding: 0 4px;
        gap: 2px;
    }
}

  .header-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    margin-top: 5px;
  }

  .sports-card-single-market {
    height: 100%;
    display: flex;
    align-items: flex-end;   /* sit toward the bottom */
    justify-content: center;
    padding: 6px 12px;       /* breathing room */
  }

  .single-market-buttons {
    display: flex;
    gap: 8px;                /* tighter than 10px */
    width: 100%;
    margin-top: auto;        /* pushes buttons toward footer */
  }

  .single-buy-btn {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, color .2s, transform .1s;
  }

  .single-buy-btn .arrow-icon {
    font-size: 14px;
    line-height: 1;
  }

  .single-buy-btn.yes { background: var(--yes-bg); color: var(--yes-color); }
  .single-buy-btn.yes:hover { background: var(--yes-color); color: var(--white); }
  .single-buy-btn.no  { background: var(--no-bg);  color: var(--no-color); }
  .single-buy-btn.no:hover  { background: var(--no-color);  color: var(--white); }
  .single-buy-btn:active { transform: translateY(1px); }

  /* ---------- Tablet (≤991px) ---------- */
  @media (max-width: 991px) {
    .header-gauge { margin-right: 8px; }
    .single-market-buttons { gap: 8px; }
    .single-buy-btn {
      height: 40px;
      font-size: 13px;
    }
    .single-buy-btn .arrow-icon { font-size: 13px; }
  }

  /* ---------- Mobile (≤576px) ---------- */
  @media (max-width: 576px) {
    .header-gauge { margin-right: 6px; }
    .sports-card-single-market { padding: 6px 10px; }
    .single-market-buttons { gap: 6px; }
    .single-buy-btn {
      height: 40px;
      font-size: 12px;
      border-radius: 7px;
    }
    .single-buy-btn .arrow-icon { font-size: 12px; }
  }
  /* Make the content area a flex box so children can fill it */
.sports-card-content {
  flex: 1;
  display: flex;        /* NEW */
  flex-direction: column;
  min-height: 0;        /* prevents flex overflow */
}

/* Multi-market list should fill available height too */
.sports-card-scroll-list {
  flex: 1;              /* NEW */
}

/* Single-market should fill the content area */
.sports-card-single-market {
  flex: 1;                               /* NEW: fill height */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 6px;                   /* tighten: bottom 6px, no top padding */
}

/* Buttons row: no top margin pushing things up */
.single-market-buttons {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 0;                          /* was auto; remove so it doesn't pull up */
}

/* Keep desktop cards identical height; allow mobile to grow */
@media (min-width: 992px) {
  .sports-card-rectangle-container { height: 200px; } /* ensure uniform height on desktop */
}
@media (max-width: 991px) {
  .sports-card-rectangle-container { height: 200px; } /* mobile/tablet can expand */
}
/* Game titles (header) and market titles (list) */
.sports-card-title-link{
  color: var(--light) !important;       /* force white */
  text-decoration: none;        /* remove default underline */
  font-size: 13px;
  font-weight: 600;
  transition: text-decoration 0.15s ease;
}
.sports-card-market-link {
  color: var(--light) !important;       /* force white */
  text-decoration: none;        /* remove default underline */
  font-size: 12px;
  font-weight: 200;
  transition: text-decoration 0.15s ease;
}
/* Hover = underline only, still white */
.sports-card-title-link:hover,
.sports-card-market-link:hover {
  color: var(--light) !important;       /* keep white */
  text-decoration: underline;   /* show underline */
}

/* Top-bar variant (desktop) */
.sports-category.is-top {
  position: sticky;
  top: var(--header-h);
  z-index: 9;
  max-width: 100%;
  max-width: 1400px;
  margin: 0 auto;  
  height: auto;
  border-right: none;
  border-bottom: 1px solid var(--card-border);
  flex-direction: row;
  background-color: var(--base);
}

/* Horizontal list */
.sports-category.is-top .sports-category__list {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  justify-content: center !important;
  overflow-x: auto; 
}

/* Links + text-only look */
.sports-category.is-top .sports-category__link {
  flex: 0 0 auto;
  min-width: 88px;
  max-height: none;
  scroll-snap-align: start;
}

.sports-category__icon { display: none !important; } /* remove icons */

.sports-category__link {
  border: none !important;
  box-shadow: none !important;
}

.sports-category__link:hover {
  border: none !important;
  background-color: inherit !important;
  filter: none !important;
}

.sports-category__link.active {
  border: none !important;
  background-color: inherit !important;
}

.sports-category__link .sports-category__text {
  color: var(--text-color);
  font-weight: 600;
}

.sports-category__link:hover .sports-category__text {
  color: var(--light) !important;
}

.sports-category__link.active .sports-category__text {
  color: var(--text-color) !important;
}

/* Layout: place body under top bar and remove sidebar spacing */
.home-page.has-top-categories {
  --left-side: 0px;
  display: flex;
  flex-direction: column;
}

.home-page.has-top-categories > .sports-category.is-top {
  flex: 0 0 auto;
  width: 100%;
  order: 0;
}

.home-page.has-top-categories > .sports-body {
  order: 1;
  width: 100% !important;
  flex: 1 1 auto;
  clear: both;
}

@media (min-width: 992px) {
  .home-page.has-top-categories .sports-body {
    width: 100% !important;
    min-height: calc(100vh - var(--header-h));
    position: relative;
  }
}

/* Mobile: collapse placeholder; keep off-canvas behavior */
@media (max-width: 991px) {
  .home-page.has-top-categories > .sports-category.is-top:not(.active-category-side) {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
  .home-page.has-top-categories > .sports-body {
    margin-top: 0 !important;
    width: 100% !important;
  }
}
.sports-category__link.active:hover .sports-category__text {
  color: var(--light) !important;
}

.sports-category.is-top.sub-row {
  border-bottom: 1px solid var(--card-border); /* keep border only here */
}

/* If you had a generic border on .is-top, null it and re-apply per-row */
.sports-category.is-top { border-bottom: none; }
/* Active = --light for BOTH rows (main & sub) */
.sports-category__link.active .sports-category__text,
.sports-category__link[aria-current="page"] .sports-category__text {
  color: var(--light) !important;
}

/* Borders: main row = no border, sub row = has border */
.sports-category.is-top.main-row { border-bottom: 0 !important; }
.sports-category.is-top.sub-row  { border-bottom: 1px solid var(--card-border) !important; }

/* COMMENTS (scoped) */
.mkt-comment-actions{display:flex;align-items:center;gap:14px;margin-top:6px;position:relative}
.mkt-comment-actions .mkt-confirm-pop{top:calc(100% + 6px);right:0;left:auto;z-index:30;background:var(--base);border:1px solid var(--card-border);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:8px 10px;display:none;gap:8px;align-items:center}
.mkt-comment-actions .mkt-confirm-pop.open{display:flex}

.mkt-comments-wrap .mkt-comment-input{display:flex;align-items:center;gap:12px;background:var(--base);border:1px solid var(--card-border);border-radius:14px;padding:10px 12px;box-sizing:border-box}
.mkt-comments-wrap .mkt-comment-input--guest{cursor:default}
.mkt-comments-wrap .mkt-comment-text{flex:1;background:transparent;border:none;outline:none;color:var(--light);font-size:1.02em;padding:6px 4px;min-width:0}
.mkt-comments-wrap .mkt-comment-text--ghost{opacity:.9}
.mkt-comments-wrap .mkt-comment-text::placeholder{color:var(--text-color)}
.mkt-comments-wrap .mkt-comment-post{background:transparent;border:none;outline:none;cursor:pointer;font-weight:700;font-size:1.02em;color:#1d4ed8}

.mkt-comments-wrap .mkt-comments-sort{position:relative;display:inline-block;margin:12px 0}
.mkt-comments-wrap .mkt-sort-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:none;cursor:pointer;background:var(--header-item-hover);color:var(--light);font-weight:700}
.mkt-comments-wrap .mkt-sort-label{color:var(--text-color);font-weight:500}
.mkt-comments-wrap .mkt-sort-current{color:var(--light);font-weight:800}
.mkt-comments-wrap .mkt-sort-caret{opacity:.9}
.mkt-comments-wrap .mkt-sort-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:20;min-width:200px;background:var(--base);border:1px solid var(--card-border);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:6px;display:none}
.mkt-comments-wrap .mkt-sort-menu.open{display:block}
.mkt-comments-wrap .mkt-sort-item{width:100%;text-align:left;border:none;background:transparent;cursor:pointer;border-radius:10px;font-size:.98em;color:var(--text-color)}
.mkt-comments-wrap .mkt-sort-item.is-active,.mkt-comments-wrap .mkt-sort-item:hover{background:var(--header-item-hover);color:var(--light)}

.mkt-comments-wrap .mkt-comments-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.mkt-comments-wrap .mkt-comment{position:relative;display:flex;gap:12px}
.mkt-comments-wrap .mkt-comment-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:0 0 40px;background:transparent}
.mkt-comments-wrap .mkt-comment-body{flex:1;min-width:0}
.mkt-comments-wrap .mkt-comment-head{display:flex;align-items:center;gap:8px;margin-top:2px}
.mkt-comments-wrap .mkt-comment-user{font-weight:700;color:var(--light)}
.mkt-comments-wrap .mkt-comment-dot{color:var(--text-color)}
.mkt-comments-wrap .mkt-comment-time{color:var(--text-color);font-size:.95em}

.mkt-comments-wrap .mkt-comment-body .mkt-comment-text{color:var(--light);margin-top:4px;line-height:1.45}

.mkt-comments-wrap .mkt-like-btn,.mkt-comments-wrap .mkt-reply-btn,.mkt-comments-wrap .mkt-edit-btn,.mkt-comments-wrap .mkt-del-btn{background:transparent;border:none;outline:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--text-color);padding:0}
.mkt-comments-wrap .mkt-edit-btn:hover,.mkt-comments-wrap .mkt-reply-btn:hover,.mkt-comments-wrap .mkt-del-btn:hover{color:var(--light)}

.mkt-comments-wrap .mkt-like-btn{position:relative;transition:transform .12s ease}
.mkt-comments-wrap .mkt-like-btn .mkt-like-icon{width:18px;height:18px;flex:0 0 18px;display:block}
.mkt-comments-wrap .mkt-like-btn.is-liked{color:#e5484d}
.mkt-comments-wrap .mkt-like-btn.popping{animation:mkt-like-pop .22s ease-out}
.mkt-comments-wrap .mkt-like-count{font-variant-numeric:tabular-nums;line-height:0}
.mkt-comments-wrap .mkt-no-comments{color:var(--text-color);margin-top:6px}

.mkt-comments-wrap .mkt-replies{margin-top:8px;border-left:2px solid var(--card-border);padding-left:12px}
.mkt-comments-wrap .mkt-comment.mkt-reply .mkt-comment-avatar{width:36px;height:36px}

.mkt-comments-wrap .mkt-inline-form{display:flex;align-items:center;gap:10px;margin-top:10px;background:var(--base);border:1px solid var(--card-border);border-radius:12px;padding:8px 10px}
.mkt-comments-wrap .mkt-inline-input{flex:1;background:transparent;border:none;outline:none;color:var(--comment-input);font-size:1.02em;padding:6px 4px}
.mkt-comments-wrap .mkt-inline-actions{display:flex;gap:8px}

.mkt-comments-wrap .mkt-btn{border:none;border-radius:10px;padding:6px 10px;cursor:pointer;font-weight:700}
.mkt-comments-wrap .mkt-btn-primary{background:#2563eb;color:var(--white)}
.mkt-comments-wrap .mkt-btn-ghost{background:transparent;color:var(--text-color)}

.mkt-comments-wrap .mkt-confirm-text{color:var(--comment-input);font-size:.95em;margin-right:6px}
.mkt-comments-wrap .mkt-confirm-del{background:#e5484d;color:var(--white)}
.mkt-comments-wrap .mkt-confirm-cancel{background:transparent;color:var(--text-color)}

@media (max-width:768px){.mkt-comments-wrap{max-width:100%}}

@keyframes mkt-like-pop{0%{transform:scale(1)}60%{transform:scale(1.25)}100%{transform:scale(1)}}
.mkt-comments-wrap .mkt-like-btn{justify-content:center;line-height:1;}
.mkt-comments-wrap .mkt-like-btn .mkt-like-icon{align-self:center;transform:translateY(1px);}
.mkt-comments-wrap .mkt-like-count{line-height:1;}

/* Position badge */
.mkt-comments-wrap .mkt-pos-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:8px;
  padding:2px 8px;
  border-radius:6px;
  font-size:.88em;
  font-weight:700;
  line-height:1.2;
  vertical-align:middle;
  border:1px solid var(--card-border);
  background:var(--card-border); /* fallback */
  color:var(--light);            /* fallback */
  max-width: 52vw;
}

.mkt-comments-wrap .mkt-pos-badge .mkt-pos-shares{
  font-variant-numeric: tabular-nums;
  white-space:nowrap;
}

.mkt-comments-wrap .mkt-pos-badge .mkt-pos-market{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: 36vw;
  font-weight:600;
  opacity:.95;
}

/* YES / NO coloring using variables */
.mkt-comments-wrap .mkt-pos-badge.is-yes{
  background: var(--yes-bg);
  color: #00c853;
}

.mkt-comments-wrap .mkt-pos-badge.is-no{
  background: var(--no-bg);
  color: #e5484d;
}

/* Mobile shrink */
@media (max-width:768px){
  .mkt-comments-wrap .mkt-pos-badge{ padding:2px 6px; gap:6px; }
  .mkt-comments-wrap .mkt-pos-badge .mkt-pos-market{ max-width: 48vw; }
}
.mkt-comments-wrap .mkt-comment-head{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  white-space: nowrap;         /* keep everything on one line */
}

.mkt-comments-wrap .mkt-comment-head > *{
  flex: 0 0 auto;              /* all items keep their natural width */
}

.mkt-comments-wrap .mkt-comment-head > :last-child{
  flex: 1 1 auto;              /* last item can shrink */
  min-width: 0;                /* required for ellipsis in flex */
  overflow: hidden;
  text-overflow: ellipsis;     /* show dots when it overflows */
  white-space: nowrap;
}
 

.mkt-context-wrap{
  margin:24px 0;
  width:100%;
  max-width:100%;
  border-radius:14px;
  padding:14px 16px;
  transition:filter .2s ease,background-color .2s ease;
  cursor:default;
}

.mkt-context-wrap:hover{
  background:var(--header-item-hover);
}

.mkt-context-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 8px;
}

.mkt-context-title{
  font-size:1.15em;
  font-weight:800;
  color:var(--light);
  margin:0;
}

/* Button + AI icon */
.mkt-context-toggle{
  background:transparent;
  border:1px solid rgba(255,255,255,.3);
  color:var(--light);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  min-width:110px;
  height:34px;
  border-radius:999px;
  cursor:pointer;
  font-size:.9em;
  font-weight:600;
  gap:8px;
  transition:background-color .15s ease,transform .15s ease,border-color .15s ease,opacity .15s ease;
}

.mkt-context-toggle:hover{
  background:rgba(255,255,255,.12);
}

.mkt-context-toggle:disabled{
  opacity:.7;
  cursor:default;
}

.mkt-context-toggle-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.mkt-context-toggle-icon svg{
  width:16px;
  height:16px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
}

.mkt-context-box{
  color:var(--light);
}

.mkt-context-text{
  line-height:1.4;
  font-size:1.02em;
  white-space:pre-wrap;
  word-wrap:break-word;
  min-height:1.4em;
}

/* Slight highlight when typing */
.mkt-context-wrap[data-state="typing"] .mkt-context-text{
  filter:brightness(1.05);
}

/* Blinking caret while typing */
.mkt-context-wrap[data-state="typing"] .mkt-context-text::after{
  content:"";
  display:inline-block;
  margin-left:2px;
  width:0.6ch;
  border-left:2px solid currentColor;
  animation:mktCaretBlink 1s steps(1,end) infinite;
  vertical-align:-1px;
}

@keyframes mktCaretBlink{
  0%,49%{opacity:1;}
  50%,100%{opacity:0;}
}

/* Responsive */
@media(max-width:600px){
  .mkt-context-title{font-size:1.05em}
  .mkt-context-toggle{
    height:32px;
    padding:0 10px;
    min-width:95px;
    font-size:.85em;
  }
}


/* ===== Global Order Book panel (detached) ===== */
#mktGlobalOB{
  display:block !important;
  width:100% !important;
  overflow:hidden;
  max-height:0;                 /* collapsed */
  transition:max-height .28s ease;
  margin:8px 0 2px 0;
}

#mktGlobalOB .mkt-ob{
  background: var(--base);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:12px;
}

/* Title row */
#mktGlobalOB .mkt-ob-title-row{
  position:relative;
  display:grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items:center;
}
#mktGlobalOB .mkt-ob-title-left{ padding-right:10px; }
#mktGlobalOB .mkt-ob-heading{ color:var(--light); font-weight:800; font-size:1rem; letter-spacing:.02em; }

#mktGlobalOB .mkt-ob-divider{ width:1px; background:var(--card-border); align-self:stretch; justify-self:center; }
#mktGlobalOB .mkt-ob-divider.is-thin{ height:20px; }

/* Asks/Bids badges near center divider */
#mktGlobalOB .mkt-ob-badges{ position:relative; height:0; }
#mktGlobalOB .mkt-ob-badge{
  position:absolute; top:-5px;
  display:inline-block; padding:2px 7px; border-radius:8px;
  font-size:.78rem; font-weight:800; color:var(--light);
}
#mktGlobalOB .mkt-ob-badge-asks{ background:var(--no-color); right:52%; transform:translateX(8px); }
#mktGlobalOB .mkt-ob-badge-bids{ background:var(--yes-color); left:52%;  transform:translateX(-8px); }
@media (max-width: 600px){
  #mktGlobalOB .mkt-ob-badge-asks{ right:54%; transform: translateX(8px); }
  #mktGlobalOB .mkt-ob-badge-bids{  left:54%;  transform: translateX(-8px); }
}
/* Subtitle */
#mktGlobalOB .mkt-ob-subtitle{
  display:grid; grid-template-columns: 1fr 1px 1fr; align-items:center; margin:6px 0 8px;
}
#mktGlobalOB .mkt-ob-half{
  display:grid; grid-template-columns: 1fr 1fr 1fr; column-gap:10px; align-items:center;
}
#mktGlobalOB .mkt-ob-col{ color:var(--text-color); font-weight:700; font-size:.9rem; }
#mktGlobalOB .mkt-ob-col-price{ justify-self:start; }
#mktGlobalOB .mkt-ob-col-shares{ justify-self:center; text-align:center; }
#mktGlobalOB .mkt-ob-col-total{ justify-self:end; text-align:right; }

/* Body (scrollable halves) */
#mktGlobalOB .mkt-ob-body{
  display:grid; grid-template-columns: 1fr 1px 1fr; gap:0; align-items:start;
}
#mktGlobalOB .mkt-ob-body .mkt-ob-half{
  max-height:220px; overflow:auto; padding-right:6px;
  scrollbar-width:none; -ms-overflow-style:none;
}
#mktGlobalOB .mkt-ob-body .mkt-ob-half::-webkit-scrollbar{ width:0; height:0; }
#mktGlobalOB .mkt-ob-body .mkt-ob-left{ border-right:1px solid var(--card-border); }
#mktGlobalOB .mkt-ob-body .mkt-ob-right{ border-left:1px solid var(--card-border); }

#mktGlobalOB .mkt-ob-row{
  display:grid; grid-template-columns: 1fr 1fr 1fr; column-gap:10px;
  align-items:center; padding:8px 2px;
}
#mktGlobalOB .mkt-ob-row:last-child{ border-bottom:none; }

#mktGlobalOB .mkt-ob-cell{ color:var(--light); font-size:14px; font-weight:500; }
#mktGlobalOB .mkt-ob-price{ font-variant-numeric:tabular-nums; }
#mktGlobalOB .mkt-ob-price.is-ask{ color:var(--no-color); }
#mktGlobalOB .mkt-ob-price.is-bid{ color:#00c853; }
#mktGlobalOB .mkt-ob-shares{ text-align:center; }
#mktGlobalOB .mkt-ob-total{ text-align:right; }
/* Make the badges overlay the full title row so 50% is the true center */
#mktGlobalOB .mkt-ob-title-row{ position: relative; }

#mktGlobalOB .mkt-ob-badges{
  grid-column: 1 / -1;   /* span across both halves, not just right */
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

#mktGlobalOB .mkt-ob-subtitle .mkt-ob-half{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 10px;
  align-items: center;
}

/* The BODY halves should be vertical stacks (so rows stack + scroll) */
#mktGlobalOB .mkt-ob-body .mkt-ob-half{
  display: block;          /* <-- key: not grid here */
  max-height: 220px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#mktGlobalOB .mkt-ob-body .mkt-ob-half::-webkit-scrollbar{ width: 0; height: 0; }

/* Each row is its own 3-col grid, full-width, so they stack nicely */
#mktGlobalOB .mkt-ob-row{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 8px 2px;
}
#mktGlobalOB .mkt-ob-row:last-child{ border-bottom: none; }

/* Keep the middle vertical divider and side borders */
#mktGlobalOB .mkt-ob-body{ display: grid; grid-template-columns: 1fr 1px 1fr; }
#mktGlobalOB .mkt-ob-body .mkt-ob-left{  border-right: 1px solid var(--card-border); }
#mktGlobalOB .mkt-ob-body .mkt-ob-right{ border-left:  1px solid var(--card-border); }
/* === Continuous middle divider (no gaps) === */
#mktGlobalOB .mkt-ob{
  position: relative;            /* anchor the line */
}

/* Draw one full-height line at the true center */
#mktGlobalOB .mkt-ob::before{
  content:"";
  position:absolute;
  top:12px;                      /* match .mkt-ob padding */
  bottom:12px;                   /* match .mkt-ob padding */
  left:50%;
  width:1px;
  transform: translateX(-0.5px); /* crisp 1px line */
  background:var(--card-border);
  z-index: 0;                    /* behind content */
}

/* Keep all content above the line */
#mktGlobalOB .mkt-ob > *{
  position: relative;
  z-index: 1;
}

/* Hide the per-section divider visuals (layout stays intact) */
#mktGlobalOB .mkt-ob-divider{
  background: transparent !important;
  opacity: 0 !important;
}

/* Ensure the body still uses 3 columns (left | center-gap | right) */
#mktGlobalOB .mkt-ob-body{
  display:grid;
  grid-template-columns: 1fr 1px 1fr;
}

/* Keep side borders for halves if you use them */
#mktGlobalOB .mkt-ob-body .mkt-ob-left{  border-right: 1px solid var(--card-border); }
#mktGlobalOB .mkt-ob-body .mkt-ob-right{ border-left:  1px solid var(--card-border); }

/* Badges hugging the center line */
#mktGlobalOB .mkt-ob-title-row{ position: relative; }

/* Make body halves stack rows and scroll vertically (not columns) */
#mktGlobalOB .mkt-ob-subtitle .mkt-ob-half{
  display:grid; grid-template-columns:1fr 1fr 1fr; column-gap:10px; align-items:center;
}
#mktGlobalOB .mkt-ob-body .mkt-ob-half{
  display:block;
  max-height:220px;
  overflow:auto;
  padding-right:6px;
  scrollbar-width:none; -ms-overflow-style:none;
}
#mktGlobalOB .mkt-ob-body .mkt-ob-half::-webkit-scrollbar{ width:0; height:0; }
#mktGlobalOB .mkt-ob-row{
  display:grid; grid-template-columns:1fr 1fr 1fr; column-gap:10px;
  align-items:center; padding:8px 2px;
}
#mktGlobalOB .mkt-ob-row:last-child{ border-bottom:none; }
/* --- Use exactly ONE center divider: the ::before line --- */

/* 1) Make the middle grid column in the BODY have zero width (keeps alignment) */
#mktGlobalOB .mkt-ob-body{
  display: grid;
  grid-template-columns: 1fr 0 1fr; /* was 1fr 1px 1fr */
  position: relative;               /* for stacking clarity */
  z-index: 1;                       /* content above the ::before line */
}

/* 2) Kill any center borders on the halves (they add extra pixels at center) */
#mktGlobalOB .mkt-ob-body .mkt-ob-left{  border-right: 0 !important; }
#mktGlobalOB .mkt-ob-body .mkt-ob-right{ border-left:  0 !important; }

/* 3) Title/Subtitle separator elements stay invisible (we already rely on ::before) */
#mktGlobalOB .mkt-ob-divider{
  background: transparent !important;
  opacity: 0 !important;
}

/* 4) Keep the continuous center line crisp and single */
#mktGlobalOB .mkt-ob{
  position: relative;
}
#mktGlobalOB .mkt-ob::before{
  content:"";
  position:absolute;
  top:12px;            /* match .mkt-ob padding */
  bottom:12px;         /* match .mkt-ob padding */
  left:50%;
  width:1px;
  transform: translateX(-0.5px); /* pixel-align for sharpness */
  background:var(--card-border);
  z-index: 0;          /* under content */
}
/* === Single continuous center divider: full height, flush with container edges === */
#mktGlobalOB .mkt-ob{ position: relative; }

/* Make the line run from top to bottom of the panel (ignores padding) */
#mktGlobalOB .mkt-ob::before{
  content:"";
  position:absolute;
  top:0;                /* was 12px — now full height */
  bottom:0;
  left:50%;
  width:1px;
  transform: translateX(-0.5px); /* crisp on most DPRs; switch to 0 if blurry */
  background:var(--card-border);
  z-index:0;            /* keep it behind content */
}

/* Keep all content above the line */
#mktGlobalOB .mkt-ob > *{ position:relative; z-index:1; }

/* Ensure we don't render any extra center lines */
#mktGlobalOB .mkt-ob-divider{ background:transparent !important; opacity:0 !important; }
#mktGlobalOB .mkt-ob-body{
  display:grid;
  grid-template-columns: 1fr 0 1fr; /* no 1px middle column */
}
#mktGlobalOB .mkt-ob-body .mkt-ob-left{  border-right:0 !important; }
#mktGlobalOB .mkt-ob-body .mkt-ob-right{ border-left:0 !important; }
/* === Center gutter so text doesn't touch the middle divider === */
#mktGlobalOB .mkt-ob{ --ob-gutter: 12px; } /* tweak to taste */

/* Subtitle: push left-half away from divider on the right, right-half away on the left */
#mktGlobalOB .mkt-ob-subtitle .mkt-ob-left  { padding-right: var(--ob-gutter); }
#mktGlobalOB .mkt-ob-subtitle .mkt-ob-right { padding-left:  var(--ob-gutter); }

/* Body halves: same gutter + keep vertical scroll */
#mktGlobalOB .mkt-ob-body .mkt-ob-left{
  padding: 0 var(--ob-gutter) 0 0;   /* top right bottom left */
}
#mktGlobalOB .mkt-ob-body .mkt-ob-right{
  padding: 0 0 0 var(--ob-gutter);
}

/* If you had a generic padding on .mkt-ob-half earlier, this comes after it and overrides it. */

/* Optional: a little tighter on small screens */
@media (max-width: 600px){
  #mktGlobalOB .mkt-ob{ --ob-gutter: 8px; }
}
/* Collapse without leaving space */
#mktGlobalOB{
  margin: 0 !important;
  transition: max-height .28s ease, margin .18s ease;
}

/* Only add the vertical spacing when the panel is open */
#mktGlobalOB[aria-hidden="false"]{
  margin: 8px 0 2px 0 !important; /* tweak to taste */
  box-shadow: 0 5px 15px var(--dark);
  border-radius: 10px;
}
/* Hover highlight per side (asks/bids) */
#mktGlobalOB .mkt-ob-row{ 
  transition: background-color .15s ease;
}

#mktGlobalOB .mkt-ob-body .mkt-ob-left  .mkt-ob-row:hover{ 
  background:var(--no-bg);   /* Asks hover */
  border-radius: 8px;
}

#mktGlobalOB .mkt-ob-body .mkt-ob-right .mkt-ob-row:hover{ 
  background:var(--yes-bg);   /* Bids hover */
  border-radius: 8px;
}

/* Optional: pointer cursor to hint interactivity */
#mktGlobalOB .mkt-ob-row:hover{ cursor: pointer; }

/* ===== Toggle: Trade YES / Trade NO ===== */
#mktGlobalOB .mkt-ob-toggle{
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  margin:10px 0 8px 0;
  padding-right: 8px;
}

#mktGlobalOB .mkt-ob-toggle-btn{
  appearance:none;
  border:1px solid var(--card-border);
  background: var(--base);
  color: var(--light);
  padding:6px 12px;
  border-radius:10px;
  font-weight:800;
  font-size:.9rem;
  letter-spacing:.02em;
  line-height:1;
  cursor:pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .04s ease;
}

#mktGlobalOB .mkt-ob-toggle-btn:hover{
  background: rgba(255,255,255,0.04);
}

#mktGlobalOB .mkt-ob-toggle-btn:active{
  transform: translateY(1px);
}

/* Active states: align to market semantics */
#mktGlobalOB .mkt-ob-toggle-btn.is-active[data-trade="YES"]{
  background: var(--yes-bg);
  border-color: var(--yes-color);
  color: var(--light);
}

#mktGlobalOB .mkt-ob-toggle-btn.is-active[data-trade="NO"]{
  background: var(--no-bg);
  border-color: var(--no-color);
  color: var(--light);
}

/* Keyboard focus */
#mktGlobalOB .mkt-ob-toggle-btn:focus{
  outline: 2px solid var(--card-border);
  outline-offset: 2px;
}

/* Optional tighter layout on mobile */
@media (max-width: 600px){
  #mktGlobalOB .mkt-ob-toggle-btn{ padding:6px 10px; font-size:.86rem; }
}

/* ===== Per-half empty state ===== */
#mktGlobalOB .mkt-ob-empty-half{
  color: var(--text-color);
  opacity: .9;
  font-size: .9rem;
  padding: 8px 0;
  text-align: center;
}

/* Keep empty chip from touching the center divider */
#mktGlobalOB .mkt-ob-body .mkt-ob-left  .mkt-ob-empty-half{ margin-right: 2px; }
#mktGlobalOB .mkt-ob-body .mkt-ob-right .mkt-ob-empty-half{ margin-left:  2px; }

/* Make the top categories bar full-bleed while staying sticky */
  .sports-category.is-top{
    position: sticky;
    top: var(--header-h);
    z-index: 9;

    /* full-bleed beyond any centered parent */
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;         /* IMPORTANT: allow it to bleed */
    width: auto;

    border-right: none;
    background-color: var(--base);

    display: flex;           /* we'll center the inner list */
    justify-content: center; /* center inner content */
  }

  /* Cap and center the inner content (your links) */
  .sports-category.is-top .sports-category__list{
    max-width: 1400px;           /* your desired cap */
    width: 100%;
    margin: 0 auto;
    padding-inline: clamp(12px, 4vw, 24px);
    display: flex !important;    /* keep it a row in top mode */
    flex-direction: row !important;
    justify-content: center;     /* center items */
    overflow-x: auto;            /* still scrollable if many */
    overflow-y: hidden;
    gap: 8px;
  }
.home-page.has-top-categories > .container-fluid.mt-auto.px-0 {
  order: 2;         /* your footer wrapper */
  /* mt-auto from Bootstrap already pushes it down */
}

  /* 1) Undo the "hide if not .active-category-side" legacy rule */
  .home-page.has-top-categories > .sports-category.is-top:not(.active-category-side){
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin-top: -2px !important;
  }

  /* 2) Make both rows sticky under the header and full-width */
  .home-page.has-top-categories > .sports-category.is-top{
    width: 100% !important;
    border-right: 0 !important;
    background: var(--base) !important;
    transform: none !important;
    height: auto !important;
    min-height: var(--main-cat-h) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

@media (max-width: 575.98px){
  .g-3,
  .gy-3{
    padding-top: 10px;
  }
}
  .g-3,
  .gy-3{
    padding-top: 5px;
  }
/* Robust full-screen overlays (no horizontal overflow) */
.body-overlay,
.header-overlay{
  position: fixed;
  inset: 0;                 /* replaces left/top + width/height */
  width: auto !important;
  height: auto !important;
  margin: 0;
  border: 0;
  outline: 0;
  overflow: hidden;
  /* hidden state */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;     /* don't block scroll/clicks when hidden */
  transition: opacity .2s ease-in;
  z-index: 9998;            /* or keep your existing values */
}

/* visible state you toggle in JS */
.body-overlay.is-open,
.header-overlay.is-open{
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Last line of defense against tiny right gaps */
html { overflow-x: clip; }  /* modern */
body { overflow-x: hidden; }/* fallback */

/* 1) Make the inner list scroll horizontally on mobile, never vertically */
@media (max-width: 991.98px){
  .sports-category__list{
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }
  .sports-category.is-top .sports-category__list{ padding-top: 5px; }
}

/* 2) Ensure no ancestor clips the sticky bars */
@media (max-width: 991.98px){
  .home-page.has-top-categories,
  .home-page.has-top-categories > .sports-category.is-top{
    overflow: visible !important;
  }
}
/* === SAFE FIXED STACK (работи на всички браузъри) === */

/* Вътрешността остава капната и центрирана */
.sports-category.is-top .sports-category__list{
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-inline: clamp(12px, 4vw, 24px) !important;
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

/* Понеже ги правим fixed, трябва да са full-bleed и с плътен фон */
.sports-category.is-top{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  background: var(--base) !important;
  border-bottom: 1px solid var(--base);
}

/* Подредба на слоевете */
.header-primary{
  top: 0;
  left: 0; right: 0;
  z-index: 110;
  background: var(--base);
}

/* Първи ред под хедъра */
.sports-category.is-top.main-row{
  top: var(--header-h) !important;
  z-index: 109 !important;
}

/* Втори ред под първия */
.sports-category.is-top.sub-row{
  top: calc(var(--header-h) + var(--topcat-main-h)) !important;
  z-index: 108 !important;
}

/* Дай място на съдържанието под трите fixed слоя */
.home-page.has-top-categories .sports-body{
  padding-top: calc(var(--header-h) + var(--topcat-main-h) + var(--topcat-sub-h)) !important;
}

/* Увери се, че нищо не „реже“ fixed баровете */
.home-page.has-top-categories{ overflow: visible !important; }

/* iOS notch (по желание) */
@supports(padding: max(0px)){
  .sports-category.is-top{ padding-top: max(0px, env(safe-area-inset-top)); }
}

/* Main row: no border at all */
.sports-category.is-top.main-row{
  border-bottom: 0 !important;
}

/* Sub row: only bottom border, and overlap upward by 1px to kill the gap */
:root{ --stack-overlap: 1px; } /* tweak if ever needed */

.sports-category.is-top.sub-row{
  top: calc(var(--header-h) + var(--topcat-main-h) - var(--stack-overlap)) !important;
  border-bottom: 1px solid var(--card-border) !important;
  margin-top: 0 !important;      /* safety */
  transform: translateZ(0);       /* avoid subpixel paint seams on some GPUs */
}
/* 1) Никой топ бар да няма истински border-bottom */
.sports-category.is-top{ border-bottom: 0 !important; }
.sports-category.is-top.main-row{ border-bottom: 0 !important; }

/* 2) Линията е само под sub-row чрез ::after (неподвластно на border конфликти) */
.sports-category.is-top.sub-row{
  z-index: 108 !important;              /* под header(110) и main-row(109) */
  /* ако преди си намалявала gap-а, може да оставиш:
     top: calc(var(--header-h) + var(--topcat-main-h)) !important; */
  position: fixed !important;           /* вече го ползваш така */
}

.sports-category.is-top.sub-row::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--card-border);       /* единственият видим „бордър“ */
  pointer-events: none;
  transform: translateZ(0);             /* срещу hairline артефакти */
}

/* (по избор) ако още виждаш „фина цепка“ точно между двата бара: приплъзни sub-row с 1px нагоре */
:root{ --stack-overlap: 1px; }
.sports-category.is-top.sub-row{
  top: calc(var(--header-h) + var(--topcat-main-h) - var(--stack-overlap)) !important;
}
/* Always treat the page as LIGHT unless we add .dark ourselves */
:root { color-scheme: light !important; }
html.dark { color-scheme: dark !important; }

/* Defensive: even if the OS prefers dark, keep LIGHT unless .dark is present */
@media (prefers-color-scheme: dark) {
  :root:not(.dark) { color-scheme: light !important; }
}

/* Make sure the page uses your tokens, not UA guesses */
html, body { background: var(--base); color: var(--light); }

@media (max-width: 992px){
  .mkt-context-wrap{
    background-color: var(--header-item-hover);
  }
}