:root {
  --back-bg: #72bbf0 !important;
  --lay-bg: #faa9ba !important;
  ;
}

/* Match list section headers — specificity must beat .coupon-table tr td */
.coupon-table tr.match-section-header td {
  background: linear-gradient(to right, var(--theme2-bg85), var(--theme1-bg));
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
}

.match-section-header .section-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.mobile-header-2 .inplay-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  font-size: 18px;
  line-height: 22px;
  color: #fff;
}

.match-section-header.inplay .section-icon {
  background-color: var(--green-color);
  box-shadow: 0 0 6px var(--green-color);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.match-section-header.upcoming .section-icon {
  background-color: var(--grey-color);
}

.match-section-header.pinned .section-icon {
  background-color: #e6b800;
  box-shadow: 0 0 4px rgba(230, 184, 0, 0.45);
}

/* Pin — same slot as TV / BM icons (see .game-icon in style.css) */
.game-icon--pin {
  width: 25px;
  margin-top: 2px;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
}

.match-pin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: auto !important;
  min-height: 14px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--site-color, #495057);
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.match-pin-btn:focus,
.match-pin-btn:active {
  outline: none !important;
  box-shadow: none;
  background: transparent;
}

.match-pin-btn .match-pin-icon {
  display: block;
  flex-shrink: 0;
}

.match-pin-btn:not(.is-pinned) {
  opacity: 0.75;
}

.match-pin-btn:hover {
  color: var(--theme1-bg, #4a148c);
  opacity: 1;
}

.match-pin-btn.is-pinned {
  color: var(--theme1-bg, #4a148c);
  opacity: 1;
}

/* Keyboard-only ring — no box on mouse click */
.match-pin-btn:focus-visible {
  outline: 2px solid var(--theme1-bg, #4a148c);
  outline-offset: 2px;
  border-radius: 2px;
}

.match-section-header .section-count {
  margin-left: 8px;
  /* background: rgba(255, 255, 255, 0.18); */
  background: var(--theme2-bg85);
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}

.coupon-table tr.match-section-spacer td {
  padding: 0 !important;
  height: 10px;
  border: none !important;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.color-card {
  background-color: rgba(255, 255, 255, 0.8);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  content: "";
  opacity: 0.4;
  z-index: 0;
}

.norecords {
  background-color: #ccc;
  margin-bottom: 25px;
  display: table;
  width: 100%;
  padding: 4px 15px;
}

.norecordsfound {
  background-color: #ccc;
  color: #000 !important;
}

.norecords a {
  line-height: 24px;
  color: #000 !important;
}

.lott-modal .modal-mask {
  position: fixed;
  /* z-index: customer-z-index.css */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  display: table;
  transition: opacity .3s ease;
}

.lott-modal .modal-wrapper {
  display: table-cell;
  vertical-align: middle;
}

.lott-modal .modal-dialog {
  max-width: 90%;
  width: 90%;
}

.lott-modal .modal-body {
  padding: 0;
}

.winner-img {
  width: 50px;
  margin-top: 10px;
}

.br1 {
  border-right: 1px solid #bfbfbf;
}

.rules-table td,
.rules-table th {
  padding: 7px;
}

.sidebar-right-inner {
  height: 100%;
}

.winner-icon {
  position: absolute;
  right: 0;
  bottom: 15%;
}

.sixplayer-image img {
  width: 40px;
}

.b-table-sticky-header,
.table-responsive,
[class*="table-responsive-"] {
  margin-bottom: 0 !important;
}

.table {
  margin-bottom: 0 !important;
}

.grecaptcha-badge {
  display: none !important;
}

/*Latest Casino*/
.new-casino .back-border {
  border: 1px solid var(--back-bg);
}

.new-casino .back-border:hover {
  border: 2px solid var(--back-bg);
}

.new-casino .lay-border {
  border: 1px solid #f994ba;
}

.new-casino .lay-border:hover {
  border: 2px solid #f994ba;
}

.new-casino .casino-video {
  position: relative;
  background-color: transparent;
}

.new-casino .casino-video-title {
  position: absolute;
  left: 5px;
  top: 5px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  z-index: 10;
  text-align: center;
  min-width: 220px;
  display: flex;
  display: -webkit-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.new-casino .casino-video-title .casino-name {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 20px;
  color: #FDCF13;
  line-height: 22px;
  padding: 0;
  background: transparent;
  position: unset;
  width: auto;
}

.new-casino .casino-video-rid {
  font-weight: bold;
  color: #ddd;
  margin-top: 3px;
}

.new-casino .casino-video .video-box-container {
  max-width: 100%;
}

.new-casino .casino-video .video-box {
  position: relative;
  max-width: 100%;
  width: 100%;
  padding-bottom: 56.25%;
}

.new-casino .casino-video .video-box>img,
.new-casino .casino-video .video-box>iframe {
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: cover;
  border: 0;
}

.new-casino .casino-odds-box-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.new-casino .casino-odds-box-container {
  width: calc(25% - 8px);
  margin-right: 8px;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.new-casino .casino-odds-box {
  padding: 4px;
  text-align: center;
  margin-top: 5px;
  cursor: pointer;
  height: 48px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.new-casino .casino-odds-box>div {
  width: 49%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
}

.new-casino .casino-odds-box span {
  display: block;
  font-size: 12px;
  width: 100%;
}

.new-casino .casino-odds-box .casino-odds-box-odd {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.new-casino .casino-odds-box-bhav {
  text-align: center;
  position: relative;
  font-size: 14px;
  color: #333;
  width: 100%;
}

.casino-odds-book {
  text-align: center;
  font-size: 14px;
  color: #333;
  width: 100%;
  font-weight: bold;
  margin-top: 5px;
}

.new-casino .range-icon {
  margin-left: 5px;
  display: inline-block;
  vertical-align: middle;
}

.new-casino .icon-range {
  position: absolute;
  top: 100%;
  background-color: #333;
  padding: 4px;
  max-width: 100%;
  word-wrap: break-word;
  font-size: 12px;
  z-index: 10;
  right: 0;
  transition: 0.1s;
  text-transform: capitalize;
  color: #fff;
}

.new-casino .video-overlay {
  top: 50%;
  transform: translateY(-50%);
}

.new-casino .redqueen .video-overlay img {
  width: 35px;
}

/*Redqueen*/
.new-casino .redqueen {
  background-color: #eee;
  padding: 10px;
}

.new-casino .redqueen .casino-odds-box-container-extra {
  width: calc(33.33% - 8px);
}

.new-launch-text {
  /* animation: new-launch 1s linear infinite; */
}

@keyframes new-launch {
  50% {
    opacity: 0
  }
}

#customers1 {
  font-family: sans-serif;
  border-collapse: collapse;
  width: 100%;
}

/* Account Statement: nowrap remark stays one row; table grows horizontally when needed */
#customers1.account-statement-table {
  width: max-content;
  min-width: 100%;
}

#customers1 td,
#customers1 th {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 14px;
}

#customers1 th {
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (max-width: 768px) {
  #customers1 td,
  #customers1 th {
    font-size: 12px !important;
    padding: 8px 5px !important;
  }
}

.bg2 {
  background-color: var(--theme1-bg) !important;
}

.pagination {
  margin: 20px auto;
  display: flex;
  list-style: none;
  outline: none;
  justify-content: center;
}

.pagination>.active>a {
  background-color: var(--theme1-bg);
  border-color: var(--theme1-bg);
  color: var(--secondary-color);
}

.pagination>li>a {
  border: 1px solid var(--grey-color);
  padding: 10px 20px;
  outline: none;
  cursor: pointer;
  color: var(--grey-color);
}

.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>a:hover,
.pagination>.active>span:hover,
.pagination>.active>a:focus,
.pagination>.active>span:focus {
  background-color: var(--theme1-bg);
  color: var(--secondary-color);
  outline: none;
}

.pagination>li>a,
.pagination>li>span {
  background-color: var(--primary-color);
}

.pagination>li:first-child>a,
.pagination>li:first-child>span,
.pagination>li:last-child>a,
.pagination>li:last-child>span {
  border-radius: unset;
}

.no-wrap {
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   Casino Result List — Enhanced UI
   ═══════════════════════════════════════════════════════ */

.result-list-wrapper {
  background: var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Filter Bar */
.result-filter-form {
  margin: 0;
  padding: 0;
}

.result-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: var(--primary-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  flex: 1;
}

.filter-group.filter-action {
  min-width: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 2px;
}

.filter-input {
  padding: 8px 12px;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #333;
  outline: none;
  width: 100%;
}

.filter-input:focus {
  border-color: var(--theme1-bg);
  box-shadow: 0 0 0 3px rgba(var(--theme1-bg-rgb, 66, 133, 244), 0.15);
}

.filter-select {
  cursor: pointer;
  appearance: auto;
}

.filter-submit-btn {
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.filter-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Results Info Bar */
.results-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: #555;
}

.results-count strong,
.results-page-info strong {
  color: #333;
}

/* Result Table */
.result-table-wrapper {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table thead th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

/* Result List Row */
.result-list-row {
  transition: background-color 0.15s;
  border-bottom: 1px solid #f0f0f0;
}

.result-list-row:hover {
  background-color: #f5f8ff !important;
}

.result-list-row:nth-child(even) {
  background-color: #fafbfc;
}

.result-list-row td {
  padding: 10px 16px;
  vertical-align: middle;
}

/* Row Number */
.row-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #f0f2f5;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

/* Date Display */
.date-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-full {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.date-relative {
  font-size: 11px;
  color: #999;
  font-style: italic;
}

/* Round ID Button */
.round-id-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border: 1px solid #90caf9;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.round-id-btn:hover {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(21, 101, 192, 0.2);
}

.round-id-btn:active {
  transform: translateY(0);
}

/* Winner Info */
.winner-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.winner-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #a5d6a7;
  white-space: nowrap;
}

.game-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Empty State */
.empty-state-cell {
  padding: 40px 20px !important;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.empty-state-icon {
  font-size: 40px;
  color: #ccc;
  margin-bottom: 8px;
}

.empty-state-icon.loading-spinner {
  color: var(--theme1-bg);
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  margin: 0;
}

.empty-state-desc {
  font-size: 13px;
  color: #999;
  margin: 0;
  text-align: center;
  max-width: 320px;
}

/* Pagination Wrapper */
.result-pagination-wrapper {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
}

.result-pagination li a {
  border-radius: 6px !important;
  margin: 0 2px;
  font-size: 13px;
  transition: all 0.15s;
}

.result-pagination li.active a {
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pagination-disabled a {
  opacity: 0.5;
  cursor: not-allowed !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .result-filter-bar {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-group.filter-action {
    min-width: 100%;
  }

  .filter-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .results-info-bar {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
  }

  .result-list-row td {
    padding: 8px 10px;
  }

  .date-full {
    font-size: 12px;
  }

  .winner-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .result-cell-no {
    width: 40px;
  }
}