:root {
  --topbar-height: 60px;
  --marquee-height: 24px;
  --sidebar-width-wide: 250px;
  --sidebar-width-collapsed: 60px;
  --bg-primary: #4a0072;/*ยังไม่ได้ใช้*/
  --active-color: #ff6000;/*ยังไม่ได้ใช้*/
  --transition-speed: 0.3s;
  /* --theme-color-1: #4a0070; */
  /* --theme-color-2: #180101; */

  /* --theme-color-1: #890a2d; */
  /* --theme-color-2: #2a0e19; */
  /* --primary-color-1: #ffb200;
  --primary-color-2: #cb6500;
  --secondary-color-1: #ffc300;
  --secondary-color-2: #ff0000; */
  --text-color-1: #ffffff;
  --text-color-2: #eeeeee;
  --input-primary-color-1: #000000af;
  --primary-font-color: #000000;
  --bs-success-rgb: 40, 199, 111 !important;
  --bs-body-font-family: "Prompt", sans-serif !important;
}

/* html {
   scrollbar-gutter: stable;
   
 } */
html::-webkit-scrollbar {
  display: none;
  /* ซ่อน scrollbar */
}

html {
  -ms-overflow-style: none;
  /* IE + Edge old */
  scrollbar-width: none;
  /* Firefox */
}

body {
  font-family: "Prompt", sans-serif !important;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

img,
video {
  max-width: 100%;
  height: auto;
}

p,
th {
  color: var(--text-color-1);
}

.table-responsive {
  overflow-x: hidden !important;
}

.bg-secondary {
  background-color: var(--secondary-color-1) !important;
}

.modal {
  --bs-modal-margin: 0.2rem;
  --bs-modal-padding: 1rem 0.8rem;
}

.modal-content {
  border-radius: 1rem !important;
}

.chek-in-modal {
  max-width: 700px;
}

.cursor-pointer {
  cursor: pointer !important;
}

.nav-pills .nav-link {
  color: white;
}

.btn-primary {
  border-width: 0px;
  background: linear-gradient(180deg, var(--primary-color-1, #4280f7) 0%, var(--primary-color-2, #4280f7) 100%);
  color: var(--text-color-1, #f3f4f8);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  overflow: hidden;
}
.btn-outline-primary {
  border-width: 1.5px;
  color: var(--text-color-1, #f3f4f8);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  overflow: hidden;
  border-color: var(--primary-color-1, #4280f7) !important;;
  background-color:transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: var(--text-color-1, #f3f4f8);
  background-color:transparent;
  border-color: var(--primary-color-1, #4280f7) !important;;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  transform: none;
}

.btn-secondary {
  border-width: 0px;
  background: linear-gradient(180deg, var(--secondary-color-1, #f68a04) 0%, var(--secondary-color-2, #f68a04) 100%);
  color: var(--text-color-2, #f3f4f8);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  overflow: hidden;
  transition: 0.5s;
  transition-property: box-shadow;
}

.btn-secondary:hover,
.btn-primary:hover {
  box-shadow: 0 0 10px #fff;
  transform: translateY(0);
}

.pc-top-bar .btn-secondary {
  width: clamp(100px, 10vw, 150px);
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 0.5rem 1;
}

.pc-top-bar .btn-primary {
  width: clamp(100px, 10vw, 150px);
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 0.5rem 1;
}

.pc-top-bar .logo-image,
.mobile-top-bar .logo-image {
  max-height: calc(var(--topbar-height)/1.5);
}

.logo-image-login {
  max-height: calc(var(--topbar-height)/2);
}

.mobile-top-bar .btn-secondary {
  width: clamp(100px, 10vw, 150px);
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 0.5rem 0;
}

.mobile-top-bar .btn-primary {
  width: clamp(100px, 10vw, 150px);
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 0.5rem 0;
}

.text-color-1,
span {
  color: var(--text-color-1);
}

.text-secondary,
.text-secondary:hover {
  color: var(--secondary-color-1, #f68a04);
}
.form-control::placeholder {
  color: #ffffffb5;
}

.input-theme {
  color: #fff;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #000000af;
}

.input-theme:focus {
  color: #fff;
  background-color: #000000af;
  border-color: white;
  outline: none !important;
  box-shadow: none !important;
}

.text-contact {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--secondary-color-1, #f68a04);
  text-decoration: underline;
}

.btn-close {
  filter: invert(1) brightness(200%);
}

.btn-close:focus {
  outline: none !important;
  box-shadow: none !important;
}

.register-modal .modal-content,.login-modal .modal-content {
  background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%);
  /* background-color:transparent; */
  border: 0;
}

.theme-modal .modal-content {
  background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%);
  border: 0;
  color: white;
}
.login-modal-form {
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  overflow: hidden;
}
.register-modal-form {
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  overflow: hidden;
}

.form-label {
  color: var(--text-color-1);
}

.toggle-password {
  cursor: pointer;
  position: absolute;
  top: 25%;
  right: 10px;
}

.box-amount-header {
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px;
  border-radius: 7px;
  min-width: 150px;
  max-width: 100%;
  overflow-x: hidden;
}

.box-amount {
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px;
  border-radius: 7px;
  min-width: 150px;
  max-width: 100%;
  overflow-x: hidden;
}

.pc-top-bar .box-amount-header {
  max-width: 150px;
}

.btn-tab-transaction {
  border-radius: 50px;
  padding: 0.4rem 1.5rem;
  /* font-weight: bold; */
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 5px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-tab-transaction.active {
  background: linear-gradient(180deg, var(--primary-color-1, #4280f7) 0%, var(--primary-color-2, #4280f7) 100%);
  color: var(--primary-font-color, #f3f4f8);
}

.btn-tab-transaction:not(.active) {
  background: var(--theme-color-2, #1e2024);
  /* background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%); */
  /* background-color:var(--theme-color-1); */
  color: #aaa;
}

.btn-tab-transaction:not(.active):hover {
  color: white;
}

.card-deposit-bank {
  border-radius: 36px;
  border: 1.758px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(113deg, #ffffff82 3.51%, #fff0 111.71%);
  box-shadow: 14px 17px 29px #0000000d;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  width: 500px;
  max-width: 85vw;
}

.box-profile .card-deposit-bank {
  max-width: 350px;
}

.text-deposit-bank-number {
  font-weight: 600;
  font-size: 1.2rem;
}

.promotion-select-toggle {
  width: 300px;
}

/* .register-modal-logo{
    width: 50%;
} */
/* button:focus,
button:active:focus,
.btn:focus,
.btn:active:focus {
    outline: none !important;
    box-shadow: none !important;
} */

/*
        =================================
        1. PC TOP BAR (แก้ไขให้ Fixed Full Width)
        =================================
        */
.pc-top-bar {
  position: fixed;
  /* ตรึงอยู่ด้านบน */
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 1030;
  background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%);
  /* background-color: var(--bg-primary); */
  padding: 0.5rem 1rem;
  color: white;
  /* เพิ่ม transition เพื่อให้ Top Bar ไม่กระโดดเวลาพับ Sidebar */
  transition: all var(--transition-speed);
}

.marquee-container {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--marquee-height);
  max-height: var(--marquee-height);
  z-index: 1019;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation-name: marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* animation: marquee 20s linear infinite; */
}

.marquee-text {
  color: var(--text-color-1);
}

.marquee-text p {
  margin-bottom: 0px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* .marquee-container:hover .marquee-content {
    animation-play-state: paused;
} */
/* @keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
} */

.content-wrapper {
  padding-top: calc(var(--topbar-height) + var(--marquee-height));
  min-height: 100vh;
}


/*
        =================================
        2. SIDEBAR (แก้ไขให้เริ่มจากใต้ Top Bar)
        =================================
        */
@media (min-width: 576px) {
  #sidebarToggle {
    visibility: hidden;
  }

  .sidebar {
    /* visibility: hidden; */
    position: fixed;
    top: var(--topbar-height);
    /* <<-- จุดที่แก้ไข: เริ่มต้นจากใต้ Top Bar */
    left: 0;
    bottom: 0;
    width: var(--sidebar-width-wide);
    /* background-color: var(--bg-primary); */
    background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%);

    z-index: 1020;
    /* transition: width var(--transition-speed); */
    transition: width 0.15s;

    overflow-y: scroll;
  }

  .sidebar.no-animation {
    transition: none !important;
  }

  .sidebar.sidebar-ready {
    visibility: visible;
  }

  /*
            =================================
            3. CONTENT WRAPPER (แก้ไขให้มี Padding ด้านบน)
            =================================
            */
  .content-wrapper {
    margin-left: var(--sidebar-width-wide);
    transition: margin-left var(--transition-speed);
    padding-top: var(--topbar-height);
    min-height: 100vh;
  }

  /* สถานะ COLLAPSED */
  html.sidebar-collapsed .sidebar {
    width: var(--sidebar-width-collapsed);
  }

  html.sidebar-collapsed .content-wrapper {
    margin-left: var(--sidebar-width-collapsed);
  }

  html.sidebar-collapsed .sidebar .sidebar-link-text {
    display: none;
  }
}

/* =================================
 * 4. สไตล์ Sidebar Items (ปรับปรุงระยะห่าง)
 * =================================
 */
.sidebar-link {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  /* >>> ปรับ Padding แนวตั้งให้กว้างขึ้นตามต้นฉบับ (จาก 0.75rem เป็น 1rem) */
  padding: 0.5rem 1rem;
  /* ปรับจาก 0.75rem 1rem */
  white-space: nowrap;
  transition: background-color var(--transition-speed);
  background: none;
  /* ลบพื้นหลังปุ่ม */
  border: none;
  /* ลบขอบปุ่ม */
  text-align: left;
  /* จัดข้อความชิดซ้าย */
  cursor: pointer;
  /* แสดงเคอร์เซอร์มือ */
  width: 100%;
  max-height: 40px;
}

.sidebar-link-text {
  font-size: 14px;
}

.sidebar-link i {
  font-size: 1.25rem;
  margin-right: 0.3rem;
  width: 25px;
  /* กำหนดความกว้างของไอคอนให้คงที่ */
}

/* =================================
 * 5. สไตล์ Accordion/Dropdown ใน Sidebar (ปรับปรุงระยะเยื้อง)
 * =================================
 */
.sidebar-link.submenu-item {
  /* padding-left: 3rem; */
  /* ใช้ค่าที่มากขึ้นเพื่อชดเชยที่ไม่มีไอคอน */
  margin-top: 0.5rem;
  /* ปรับ padding ย่อย */
  margin-bottom: 0.5rem;
  /* ปรับ padding ย่อย */
  font-size: 0.95rem;
  /* background-color: #2a0040; */
  /* ลบ display: flex เพื่อให้ text จัดชิดซ้ายได้ง่ายขึ้น */
  display: block;
}

.sidebar-link.submenu-item.active {
  background: linear-gradient(180deg, var(--primary-color-1, rgba(0, 0, 0, 0.4)) 0%, var(--primary-color-2, rgba(0, 0, 0, 0.4)) 100%);
  /* background: var(--primary-color-1, #ffffff33); */
}

.sidebar-link.submenu-item:not(.active):hover {
  background-color: var(--theme-color-2, #0000004e);
}

.sidebar-link.submenu-item:not(.active):hover img {
  transform: scale(1.2);
  transition: transform 0.15s ease;
}

.sidebar-link-dropdown {
  background: #0006;
}

.sidebar-link:hover {
  background-color: var(--theme-color-2, #0000004e);
}

/* หมุนไอคอน chevron ลงเมื่อเมนูเปิด (โค้ดเดิม) */
.sidebar-link[aria-expanded="true"] .toggle-icon {
  transform: rotate(90deg);
  transition: transform var(--transition-speed);
}

.sidebar-link[aria-expanded="false"] .toggle-icon {
  transform: rotate(0deg);
  transition: transform var(--transition-speed);
}

/* === Styles for Top/Bottom Bar (Condensed) === */
.mobile-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  max-height: var(--topbar-height);
  z-index: 500;
  background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%);
  padding: 0.75rem 1rem;
  overscroll-behavior: none;
}


.mobile-nav-bar {
  /* background-color: var(--theme-color-1); */
  background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%);
  position: fixed;
  bottom: 0rem;
  left: 0rem;
  right: 0rem;
  z-index: 1040;
  border-radius: 12px;
}

.bg-theme-primary {
  background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%);
}

.logo-text {
  color: #e6b33d;
  font-weight: bold;
  font-size: 1.25rem;
  text-decoration: none;
}

.btn-icon-round-dark {
  background: var(--theme-color-2, #1e2024);
  /* background-color: #1a0029; */
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
}

.btn-plus {
  background: var(--secondary-color-1);
  border: none;
  color: var(--primary-font-color);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.5rem;
  padding: 0;
}

.btn-plus:hover,
.btn-plus:focus {
  background-color: #e0ac41;
  color: #212529 !important;
}

.nav-icon {
  color: white;
  font-size: 1.75rem;
  background: transparent;
  border: none;
  padding: 0;
}

.wallet-item {
  display: flex;
  align-items: center;
  background-color: #1a0029;
  border-radius: 8px;
  padding: 4px 8px;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: bold;
}

.btn-golden {
  background-color: #e0ac41;
  color: #212529;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 0.375rem 1.25rem;
  font-size: 0.9rem;
}

.btn-golden:hover {
  background-color: #d19e3a;
  color: #212529;
}

.btn-dark-nav {
  background-color: #1a0029;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 0.375rem 1.25rem;
  font-size: 0.9rem;
}

.btn-dark-nav:hover {
  background-color: #4a0072;
  color: white;
}

.wallet-item {
  display: flex;
  align-items: center;
  background-color: #1a0029;
  border-radius: 8px;
  padding: 4px 8px;
  gap: 6px;
  /* ระยะห่างระหว่าง icon, text, refresh */
  font-size: 0.9rem;
  font-weight: bold;
}

.wallet-item i {
  /* ไอคอนใน wallet */
  font-size: 1.2rem;
}

/* ปุ่ม refresh เล็กๆ */
.btn-refresh {
  background: none;
  border: none;
  color: #aaa;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 0.8rem;
}

.btn-refresh:hover {
  color: white;
}

/* =================================
         * 5. สไตล์ Game Category Menu (ใน main-content)
         * =================================
         */
.btn-game-category {
  width: 85px;
  height: 75px;
  border-radius: 16px;
  flex-shrink: 0;
  /* padding: 10px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: white;
  cursor: pointer;
  transition: 0.15s;
  /* background-color: var(--theme-color-1); */
  background: var(--theme-color-2, #1e2024);
}

/* Icon ใน Game Category */
/* .btn-game-category i, .btn-game-category .icon-slot {
     font-size: 2.5rem;
     margin-bottom: 0.25rem;
 } */

/* กำหนดสีพื้นหลังเฉพาะกลุ่ม (ถ้ามีหลายสีตามภาพ) */
.btn-game-category.active {
  background: linear-gradient(180deg, var(--primary-color-1, rgba(0, 0, 0, 0.4)) 0%, var(--primary-color-2, rgba(0, 0, 0, 0.4)) 100%);
}

.btn-casino {
  background-color: var(--theme-color-1);
  /* คาสิโน */
}

.btn-sport {
  background-color: var(--theme-color-1);
  /* กีฬา */
}

.btn-fishing {
  background-color: var(--theme-color-1);
  /* ยิงปลา */
}

.wrap-category-game {
  width: 100%;
}

.hide-scrollbar {
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ไอคอน */
.btn-game-category .icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin: 0 auto;
}

/* ข้อความ */
.btn-game-category .title {
  font-size: 16px;
}

.provider-horizontal {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

/* ซ่อน scrollbar ให้ดูเนียน */
.provider-horizontal::-webkit-scrollbar {
  height: 0;
}

.provider-horizontal {
  scrollbar-width: none;
}

.provider-card-bak {
  flex: 0 0 110px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* จุดสำคัญ: กำหนดให้เป็น relative เพื่อเป็นจุดอ้างอิงให้ provider-name */
  position: relative;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f8f9fa;
  /* ใช้สีและสไตล์ที่เข้ากับธีมม่วง-ทอง */
  /* border: 3px solid #E6B33D; */
  background: #1a0029;
  /* พื้นหลังมืด/ม่วงเข้ม */
  padding: 0;
  /* ลบ padding ออกเพื่อให้ภาพเต็ม */
  cursor: pointer;
  transition: transform 0.2s;
}

.provider-card {
  /* overflow: hidden; */
  max-width: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s ease;
  transform-origin: center;
  will-change: transform;
}

/* ลบ box-shadow เดิมออก เพราะในภาพใช้ขอบภาพเป็นเงา */
.provider-card:hover {
  cursor: pointer;
  transform: scale(1.1);
  z-index: 5;
  /* transform: translateY(-3px); */
  /* box-shadow: 0 0 15px rgba(255, 200, 0, 0.5);  */
}

/* .product-casino .swiper-slide {
  border-radius: 12px;
  overflow: visible !important;
} */

/* .product-casino .provider-card {
   border-radius: 12px;
  transition: transform 0.25s ease;
} */

.product-casino .provider-card:hover {
  transform: scale(1.1);
}

.product-hit .provider-card:hover {
  transform: scale(1.1);
}

.provider-img {
  width: 100%;
  height: auto;
  display: block;
}

.provider-name {
  /* จุดสำคัญ: กำหนดให้เป็น absolute เพื่อทับซ้อนภาพ */
  position: absolute;
  bottom: 0;
  /* วางไว้ด้านล่างสุด */
  left: 0;
  right: 0;

  /* สไตล์ข้อความทับซ้อน */
  display: block;
  text-align: center;
  font-size: 0.75rem;
  /* ลดขนาดเล็กน้อยเพื่อให้เข้ากับภาพ */
  font-weight: 600;
  color: white;
  padding: 0.25rem 0;
  background: rgba(0, 0, 0, 0.6);
  /* พื้นหลังทึบแสงเล็กน้อยเพื่อให้ข้อความอ่านง่าย */
  /* อาจต้องปรับ font-family ให้เป็นฟอนต์ที่ใช้ในภาพจริงเพื่อให้ดูเหมือนมากขึ้น */
}

.user-sidebar {
  position: fixed;
  top: var(--topbar-height);
  right: -320px;
  /* ซ่อนก่อน */
  width: 250px;
  max-height: 80vh;
  background: linear-gradient(180deg, var(--theme-color-1, #1a1b1e) 0%, var(--theme-color-2, #1a1b1e) 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  /* padding: 20px 15px; */
  transition: right 0.35s ease;
  z-index: 1557;
  color: white;
  overflow-y: auto;
}

/* user sidebar */
.user-sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.user-name {
  font-size: 16px;
  font-weight: 500;
}

.user-sidebar-menu {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.user-sidebar-menu li {
  display: flex;
  align-items: center;
  /* gap: 12px; */
  /* border-bottom: 1px solid rgba(255,255,255,0.1); */
}

/* Switch สำหรับ "รับโปร" */
.switch {
  margin-left: auto;
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #bbb;
  border-radius: 22px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked+.slider {
  background-color: #4ade80;
}

input:checked+.slider:before {
  transform: translateX(18px);
}

.box-product-list {
  position: sticky;
  top: 100px;
  left: 0px;
  z-index: 55;
  float: left;
  width: 20%;
  background: var(--theme-color-2, #1e2024);
  border-radius: 10px;
  padding: 10px 5px;
}

.box-product-list .item-list {
  max-height: 80vh;
}

.overflow-scroll::-webkit-scrollbar {
  display: none;
}

.game-popular-list {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
  /* padding-left: 10px; */
  padding-bottom: 5rem;
}

.product-game-list {
  display: flex;
  width: 80%;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 10px;
  padding-bottom: 5rem;
}

.product-game-list.is-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.product-game-list-v2 {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  /* padding-left: 10px; */
  padding-bottom: 5rem;
}

.product-game-list-v2.is-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
}

.favorite-game-list.is-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.favorite-game-list {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
  /* padding-left: 10px; */
  /* padding-right: 10px; */
}

.game-card {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition-property: transform;
  /* flex-shrink: 0; */
  width: 100px;
  height: 140px;

  /* margin-left: 10px; */
  /* max-width: 160px; */
  border-radius: 10px;
  overflow: hidden;
  background: transparent;

  justify-content: center;
  align-items: center;
}
/* .product-game-list-v2.is-grid .game-card{
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition-property: transform;
  width: 100px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  justify-content: center;
  align-items: center;
} */

.game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  text-align: center;
  font-size: 0.75rem;
  /* font-weight: 600; */
  color: var(--text-color-1);
  padding: 0.25rem 0;
  background: rgba(0, 0, 0, 0.6);
}

.game-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 3px;
}

/* รูปเกมโหลดไม่ได้ (class ใส่โดยตัวดัก error ท้าย scripts/event.js): พื้นเทาเข้ม + ไอคอนรูปภาพ — หน้าตาเดียวกับ theme v3 (img.skeleton-img.img-broken ใน theme3/style.css) */
.game-img.img-broken {
  border-radius: 10px;
  background: #1c1c1c url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23444' d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/></svg>") no-repeat center / 36%;
}

/* รูปค่ายโหลดไม่ได้ (class ใส่โดยตัวดักเดียวกัน): กล่องสัดส่วน 20/29 เท่าการ์ดค่ายของ theme v3 (.skeleton-img) พื้นเทาเข้ม + ไอคอนรูปภาพ
   ให้การ์ดสูงเท่ากันทั้งแถวและป้ายชื่อ .provider-name ยังทับอยู่ล่างการ์ด — เดิม .provider-img height:auto กับรูปแตก → ยุบเหลือแถบ/กล่องเปล่าสูงไม่เท่ากัน */
.provider-card .has-img-broken {
  width: 100%; /* กล่องครอบรูปค่ายกว้างตามรูป (flex item) → รูปแตก 1px จะยุบ — กางเต็มช่องเฉพาะใบที่รูปแตก */
}
.provider-img.img-broken {
  width: 100%;
  aspect-ratio: 20 / 29;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  background: #1c1c1c url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23444' d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/></svg>") no-repeat center / 36%;
}

.casino-product-list,
.sport-product-list,
.fishing-game-list,
.card-game-list,
.keno-game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.casino-product-list.is-grid,
.sport-product-list.is-grid,
.fishing-game-list.is-grid,
.card-game-list.is-grid,
.keno-game-list.is-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.casino-card {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition-property: transform;
  width: 140px;
  height: 195px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  justify-content: center;
  align-items: center;
}

.wrap-transaction-menu {
  position: relative;
  align-items: center;
  display: flex;
  border-radius: 35px;
  background: var(--theme-color-1, #1a1b1e);
  padding: 0.2rem;
  min-height: 60px;
}

.wrap-transaction-menu .nav-link {
  padding: 1rem 1.5rem;
}

.wrap-transaction-menu .nav-link.active {
  color: var(--primary-font-color, #f3f4f8);
  background: linear-gradient(180deg, var(--primary-color-1, #4280f7) 0%, var(--primary-color-2, #4280f7) 100%);
  border-radius: 27px;
}

.box-amount-withdraw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.13);
  padding: 0.2rem 1rem;
  background: var(--theme-color-1, #1a1b1e);
  margin: 0 5rem;
}

.box-amount-withdraw .text-amount {
  color: var(--secondary-color-1, #f68a04);
  font-size: 22px;
  font-weight: 600;
}

.select2-bank-img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.grid-template-columns-sm-2 {
  grid-template-columns: repeat(2, 1fr);
}

.select2-theme {
  width: 300px;
}

.text-promotion-detail {
  font-size: 14px;
}

.text-store-detail {
  font-size: 14px;
}

.promotion-detail-modal {
  max-width: 600px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  background: #9ca3af1a;
  border: 1px solid rgb(156 163 175 / 0.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  /* ทำให้ดูหรูเหมือนกระจก */
}

.tag-selected-promotion {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  background: #9ca3af1a;
  border: 1px solid rgb(156 163 175 / 0.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.modal-body.hide-scrollbar {
  scrollbar-width: none;
}

.modal-body.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.confirm-modal {
  width: 420px;
}

.confirm-promotion-modal {
  width: 420px;
}

/* รูปเกมค้างใน stuckGameModal — fix size เท่ากันทุกเกม */
.stuck-game-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.confirm-modal {
  width: 420px;
}

.swiper-page.swiper-pagination-fraction {
  color: var(--text-color-1) !important;
}

.swiper-slide.card-deposit-bank {
  width: auto !important;
}

.swiper-slide .card-deposit-bank img {
  width: 50px !important;
}

.swiper.swiper-user-bank-list {
  max-width: 380px;
  margin-left: 0px;
  margin-right: auto;
}

.tag-bank-primary {
  display: inline-block;
  background-color: var(--theme-color-1);
  color: var(--text-color-1);
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid rgba(209, 213, 219, 1);
  border-radius: 0.375rem;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.tag-bank-secondary {
  display: inline-block;
  background-color: var(--primary-color-2);
  color: var(--text-color-1);
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid rgba(209, 213, 219, 1);
  border-radius: 0.375rem;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* ป้าย "บัญชีไม่ถูกต้อง" บนการ์ดบัญชีในโปรไฟล์ (userBank.invalidBank — แอดมินตั้งจากหลังบ้าน ถอนเข้าบัญชีนี้ไม่ได้) */
.tag-bank-danger {
  display: inline-block;
  background-color: #dc3545;
  color: #fff;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 0.375rem;
  line-height: 1;
  white-space: nowrap;
}

.profile-nav-pills .nav-link {
  background: transparent !important;
  color: var(--text-color-1);
  font-size: 18px;
  border-radius: 0;
  position: relative;
  padding-bottom: 12px;
  padding-left: 3rem;
  padding-right: 3rem;
}

.table-equal {
  table-layout: fixed;
  width: 100%;
}

.breadcrumb-pc {}

.breadcrumb-mobile {
  font-size: 18px;
  font-weight: 700;
  display: none;
}

.breadcrumb {
  font-size: 18px;
  /* font-weight: 700; */
}

.breadcrumb-mobile .breadcrumb-item.active {
  color: var(--secondary-color-1, #f68a04);
}

.bg-color-theme-1 {
  background: var(--theme-color-2, #1e2024);
}

.bg-color-theme-2 {
  background: var(--theme-color-1, #1a1b1e);
}

.box-input-coupon {
  width: 430px;
  border-radius: 10px;
  padding: 15px;
}

.box-amount-coupon-detail {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 1rem;
}

.data-table-text {
  font-size: 16px;
}

.table-mobile-date-format {
  display: none;
  text-align: center;
}

.table-desktop-date-format {
  display: block;
}

.telegram-contact {
  background-color: #1c8adb;
  padding: 10px;
  border-radius: 8px;
}

.line-contact {
  background-color: #39cd00;
  padding: 10px;
  border-radius: 8px;
}

.contact-btn {
  flex: 1 1 45%;
  /* padding: 15px 20px; */
  color: var(--text-color-1);
  text-decoration: none;
  /* font-weight: 600; */
}

.contact-btn:hover {
  color: var(--text-color-1);
}

.banner-horizontal {
  display: flex;
  flex-wrap: nowrap;
  background: transparent;
  /* overflow-x: auto; */
  padding-top: 10px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: pointer;
}

.banner-horizontal img {
  max-height: 280px;
  width: 100%;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.see-all {
  background: #0006;
  border-radius: 10px;
  padding: 0.2rem 1rem;
}

.play-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.25s ease;
  text-decoration: none;
}

.provider-card:hover .play-overlay,
.game-card:hover .play-overlay,
.casino-card:hover .play-overlay {
  opacity: 1;
}

.fav-game-icon {
  position: absolute;
  top: 0px;
  right: 0px;
  color: white;
  font-size: 24px;
  z-index: 10;
}

.fav-game-icon.active {
  color: #ff2a00;
  /* transform: scale(1.2); */
}

.wrap-no-list-game,
.wrap-search-not-found-game {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 5rem 1rem;
  background: #0006;
  border-radius: 10px;
  color: var(--text-color-1)
}

.breadcrumb-item.active {
  color: var(--text-color-1);
  font-size: 20px;
  font-weight: 500;
}

.wrap-no-list-game h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-color-1);
}

.item-list .item-brand:nth-child(1) {
  margin-top: 2rem;
}

.item-list .item-brand:last-child {
  margin-bottom: 3rem;
}

.box-product-list .item-brand {
  margin: .6rem 0;
  /* margin: 5px 0; */
}

.box-product-list .item-brand img,
.box-product-list .item-brand-active img {
  max-width: 100%;
}

.loading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.item-brand-active {
  background: #0006;
  inset: 0;
  padding: 1px;
  border-radius: 5px;
  /* position: absolute;  */
  display: flex;
  justify-content: center;
  /* จัดกลางแนวนอน */
  align-items: center;
  /* จัดกลางแนวตั้ง */
}

.mobile-nav-bar span{
  font-size: clamp(.8rem, 2vw, 1rem);
  white-space: nowrap
}

.profile-nav-pills .nav-link.active {
  color: var(--secondary-color-1)
}

/* เส้นเหลืองใต้ tab */
.profile-nav-pills .nav-link.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--secondary-color-1);
  border-radius: 999px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}

.mobile-nav-bar .nav-icon-inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border-radius: 8px;
  color: white;
}

.modal-full-screen .btn-play-game {
  padding: 12px 24px;
}

.modal-full-screen .telegram-contact {
  padding: 0px 0px;
}

.border-bottom-2 {
  border-bottom: 2px solid var(--text-color-1);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}


.modal-full-screen .menu-btn {
  border-radius: 15px;
  padding: .5rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  overflow: visible;
}

.modal-full-screen {
  padding-top: var(--topbar-height);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 200px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-color-1);
}

.search-input,.product-search-input {
  background: transparent;
  padding-left: 45px;
}

.swiper-wrapper {
  padding: 20px 0px;
}

.wrap-content-cashback .item-cashback .gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, #0000, #000000bf);
  z-index: 2;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.wrap-content-cashback .item-cashback {
  text-align: center;
  border-radius: 10px;
  position: relative;
}

.item-cashback img {
  border-radius: 10px;
  width: 100%;
}

.wrap-content-cashback .item-cashback .gradient-bottom .text-number {
  font-size: 20px;
  font-weight: 600;
}

.text-underline {
  text-decoration-line: underline
}

.affiliate-box-share {
  display: flex;
  flex-direction: row;
  background-color: var(--theme-color-2, #1e2024);
  border-radius: .375rem;
  padding: .75rem;
  width: 55%
}

.affiliate-box-withdraw {
  background-color: var(--theme-color-2, #1e2024);
  border-radius: .375rem;
  padding: 1rem;
  width: 45%;
}

.bg-affiliate-box-withdraw {
  background-color: #ffffff1a;
}

.affiliate-qr {
  min-width: 140px;
}

.wrap-category-affiliate {
  background: var(--theme-color-1, #1e2024);
  padding: .5rem 1rem;
  border-radius: 35px;
  margin-top: .7rem;
  display: flex;
  overflow-x: scroll;
  gap: 15px;
}

.wrap-category-affiliate::-webkit-scrollbar {
  display: none;
}

.wrap-category-affiliate .nav-link.active {
  color: var(--text-color-1, #f3f4f8);
  background: #0006;
  border-radius: 27px;
}

.wrap-category-affiliate .nav-link {
  border: 0;
  background: none;
  color: var(--text-color-1);
  border-radius: 27px;
}

.box-affiliate-refund-summary {
  background-color: #ffffff1a;
  min-width: 0;
  width: 100%;
  padding: 12px;
  border-radius: 0.75rem;
  color: var(--text-color-1);
  /* font-weight: 600; */
}

.text-sm {
  font-size: .875rem;
  line-height: 1.25rem
}

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

.text-xs {
  font-size: .75rem;
  line-height: 1rem
}

.wrap-wheel,
.wrap-wheel-amount {
  width: 100%;
}

/* วงล้อจัดกลางคอลัมน์ — .wheel-stage เป็น inline-block (margin auto ไม่จัดกลาง) จอ PC วงล้อเลยชิดซ้ายของคอลัมน์ 50% เหลือที่ว่างด้านขวา */
.wrap-wheel {
  display: flex;
  justify-content: center;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.check-in-date-text {
  font-size: 22px;
}

.check-in-countdown-time {
  font-size: 18px;
}

.grid-user-amount {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.breadcrumb-item-mobile {
  font-size: 18px;
  font-weight: 700;
}

#checkin-view .checkin-boxlist.active {
  cursor: pointer;
  background: var(--primary-color-1, #4280f7);
}

.check-in-item-today {
  box-shadow: 0 0 5px 1px #fff;
}

.box-date-checkin {
  background-image: linear-gradient(to right, var(--primary-color-1, #4280f7), var(--secondary-color-1, #f68a04))
}

.check-in-item {
  background-color: #0006;
  border-radius: 6px;
  cursor: default;
}

.check-in-date {
  font-size: 14px;
  color: var(--text-color-1);
}

.check-in-amount {
  font-size: 14px;
  color: var(--text-color-1);
}

.block-ui {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1px);
  pointer-events: all;
  /* บล็อกคลิก */
}

.block-ui .block-ui-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.countdown-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  min-width: 90px;
  display: inline-block;
  text-align: right;
}

.check-in-item img,
.check-in-item-today img {
  max-width: 56px;
  max-height: 56px;
}

.box-product-list {
  width: 12%;
}
.turnover-progress-bar{
  max-width: 100%;
}

.product-game-list {
  width: 88%;
}
.product-game-list-v2 {
  width: 100%;
}

@keyframes spinOnce {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spinOnce 0.5s linear;
}

.spin.infinite {
  animation: spinOnce 0.8s linear infinite;
}

.form-header h5 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
}

.box-show-current-promotion .box-left-promotion {
    width: 30%;
}
.box-show-current-promotion .box-right-promotion {
    width: 70%;
}
.box-show-current-promotion .box-right-promotion .promotion-name{
    font-size: 18px;
}
.box-show-current-promotion .box-right-promotion .text-promotion-detail{
    font-size: 16px;
}
 /* --- Custom Dropify Theme --- */
/* 1. กรอบหลัก */
.dropify-wrapper {
    background-color: #f8f9fa;       /* พื้นหลังสีเทาอ่อน สบายตา */
    border: 2px dashed #e0e0e0;      /* ขอบเส้นประสีจาง */
    border-radius: 16px;             /* ขอบมน */
    color: #6c757d;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden; /* ป้องกันภาพล้น */
}

/* 2. เมื่อเอาเมาส์ไปชี้ (Hover) */
.dropify-wrapper:hover {
    background-color: var(--text-color-1);       /* พื้นหลังเปลี่ยนเป็นสีแดงจางๆ */
    border-color: var(--theme-color-1);           /* เส้นขอบเปลี่ยนเป็นสีแดงธีม */
    background-image: none;
}

/* 3. จัดการไอคอนและข้อความตรงกลาง */
.dropify-wrapper .dropify-message {
    top: 50%;
    transform: translateY(-50%);
}

.dropify-wrapper .dropify-message span.file-icon {
    font-size: 50px;
    color:var(--theme-color-1);
    /* text-shadow: 0 1px 1px var(--theme-color-1); */
    margin-bottom: 15px;
}

.dropify-wrapper .dropify-message p {
    font-family: 'Kanit', sans-serif; /* ใช้ฟอนต์ Kanit */
    font-weight: 400;
    font-size: 16px;
    color: #555;
}

/* เน้นคำว่า "คลิก" */
.dropify-wrapper .dropify-message p .text-main {
    font-weight: 600;
    color:var(--theme-color-1);
    text-decoration: underline;
}

/* 4. หน้าตาตอน Preview รูป (หลังจากเลือกไฟล์แล้ว) */
.dropify-wrapper .dropify-preview {
    max-height: 160px; 
    height:160px; 
    overflow: hidden;
   /* background-color: #000; */
    padding: 0;
}

.dropify-wrapper .dropify-preview .dropify-render img {
    object-fit: contain;
    background-color: #333;
}

/* 5. ปุ่มลบรูป (Remove Button) */
.dropify-wrapper .dropify-clear {
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--theme-color-1);   
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    font-family: 'Kanit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0; /* ซ่อนไว้ก่อน */
    transition: all 0.3s;
}

/* โชว์ปุ่มลบเมื่อเอาเมาส์ชี้ */
.dropify-wrapper:hover .dropify-clear {
    opacity: 1; 
}

.dropify-wrapper .dropify-clear:hover {
    background: var(--theme-color-1);   
    color:var(--text-color-1);   
}

/* 6. จัดการ Error (ถ้ามี) */
.dropify-wrapper.has-error .dropify-message .file-icon {
    color:var(--theme-color-1);   
}
.dropify-wrapper,
.dropify-message,
.dropify-infos,
.dropify-error {
  font-family:"Prompt", system-ui, sans-serif;
}
.dropify-message p {
  font-family: "Prompt", sans-serif;
}

.dt-paging .page-item.active .page-link {
  width: 30px;
  height: 30px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;

  /* สีตัวเลข */
  font-weight: 700;
  color: var(--primary-color-1) !important;
}
.dt-paging .page-link.previous,
.dt-paging .page-link.next {
  width: 30px;
  height: 30px;
  border-radius: 14px;
 /* font-size: 26px;
 line-height: 1; */
  background-color: var(--theme-color-2, #1e2024) !important;
  color: var(--text-color-1) !important;

  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-paging .page-link.previous:hover,
.dt-paging .page-link.next:hover {
  background-color:var(--primary-color-1) !important;
}
.dt-paging .page-item:not(.active) .page-link {
  width: 30px;
  height: 30px;
  border-radius: 14px;
  background-color: var(--theme-color-2, #1e2024) !important;
  color: var(--text-color-1) !important;
  border: none !important;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 500;
  transition: all .2s ease;
}

/* hover page ปกติ */
.dt-paging .page-item:not(.active) .page-link:hover {
  background-color: var(--primary-color-1) !important;
  color: #fff !important;
}
.dt-paging .page-link:focus,
.dt-paging .page-link:active {
  outline: none !important;
  box-shadow: none !important;
}
.product-list {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 10px;
  padding-bottom: 5rem;
}

.product-list.is-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
@media (max-width: 1200px) {
  .favorite-game-list.is-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }

  .casino-product-list.is-grid,
  .sport-product-list.is-grid,
  .fishing-game-list.is-grid,
  .card-game-list.is-grid,
  .product-list.is-grid,
  .keno-game-list.is-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 992px) {

  .casino-product-list.is-grid,
  .sport-product-list.is-grid,
  .fishing-game-list.is-grid,
  .card-game-list.is-grid,
  .product-list.is-grid,
  .keno-game-list.is-grid,
  .game-popular-list.is-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .favorite-game-list.is-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {

  .casino-product-list.is-grid,
  .sport-product-list.is-grid,
  .fishing-game-list.is-grid,
  .card-game-list.is-grid,
  .product-list.is-grid,
  .keno-game-list.is-grid,
  .game-popular-list.is-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .favorite-game-list.is-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .affiliate-box-share,
  .affiliate-box-withdraw {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .box-left-promotion img {
    max-width: 50% !important;
  }
.box-show-current-promotion .box-left-promotion {
    width: 100%;
}
.box-show-current-promotion .box-right-promotion {
    width: 100%;
}
  .fishing-game-list.is-grid,
  .card-game-list.is-grid,
  .keno-game-list.is-grid {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(4, 1fr);
  }

  .casino-product-list.is-grid,
  .product-list.is-grid,
  .sport-product-list.is-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .favorite-game-list.is-grid {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(4, 1fr);
  }

  .product-game-list.is-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .product-game-list-v2.is-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .box-amount-header .user-balance,
  .box-amount-header .user-diamond,
  .box-amount-header .user-refund,
  .box-amount-header .user-commission {
    min-width: 70px;
  }

  .line-contact,
  .telegram-contact {
    padding: 5px;
  }

  .btn-plus {
    width: 30px;
    height: 30px;
  }

  .wrap-content-cashback .item-cashback .gradient-bottom .text-number {
    font-size: 14px;
    font-weight: 500;
  }

  .wrap-content-cashback .item-cashback .gradient-bottom .text-head-topic {
    font-size: 15px;
  }

  .wrap-content-cashback .item-cashback .gradient-bottom .text-detail {
    font-size: 14px;
  }

  /* .modal{
      max-height: 500px;
    } */
  .check-in-countdown-time {
    font-size: 16px;
  }

  .check-in-date-text {
    font-size: 16px;
  }

  .wrap-category-affiliate .nav-item {
    flex: 0 0 auto;
  }

  .wrap-category-affiliate .nav-link {
    padding: 0.5rem 1rem;
    font-size: 14px;

  }

  .wrap-category-affiliate {
    max-width: 100vw;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    scrollbar-width: none;
    padding-bottom: 5px;
  }

  .breadcrumb-item.active {
    font-size: 15px;
  }

  .breadcrumb-item {
    font-size: 12px;
  }

  .search-box {
    max-width: 140px;
  }

  .user-sidebar {
    width: 200px;
  }

  .box-product-list .item-list {
    max-height: 75vh;
  }

  .favorite-game-list {
    justify-content: center;
  }

  .game-card {
    max-width: 105px;
  }

  .casino-card {
    /* max-width: 130px; */
  }

  .btn-game-category .title {
    font-size: 14px;
  }

  .wrap-transaction-menu {
    max-width: 90vw;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    scrollbar-width: none;
    padding-bottom: 5px;
  }

  .wrap-transaction-menu::-webkit-scrollbar {
    display: none;
  }

  .wrap-transaction-menu .nav-item {
    flex: 0 0 auto;
  }

  .wrap-transaction-menu .nav-link {
    white-space: nowrap;
    width: 100%;
    text-align: center;
  }

  .promotion-select-toggle {
    width: 200px;
  }

  .box-amount-withdraw {
    margin: 0 0rem;
  }

  .select2-theme {
    width: 200px;
  }

  .text-promotion-detail {
    font-size: 12px;
  }

  .confirm-modal {
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }

  .confirm-promotion-modal {
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }

  .confirm-modal {
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }

  .swiper-user-bank-list .card-deposit-bank {
    width: auto;
  }

  .profile-nav-pills .nav-link {
    font-size: 16px;
    padding-left: 10px;
    padding-right: 5px;
    padding-bottom: 5px;
  }

  .breadcrumb-mobile {
    display: flex;
  }

  .breadcrumb-pc {
    display: none;
  }

  .data-table-text {
    font-size: 14px;
    word-break: break-word;
  }

  .table-mobile-date-format {
    display: block;
  }

  .table-desktop-date-format {
    display: none !important;
  }

  /* กันข้อความคอลัมน์ยาว (เช่น "รายการ" ในแท็บโบนัสฟรี) ล้นทับคอลัมน์อื่นบนมือถือ — ให้ตัดบรรทัดในเซลล์ */
  .table-equal th,
  .table-equal td {
    white-space: normal !important;
    word-break: break-word;
  }
}

/* < 430px — ว่างให้เพิ่มในอนาคต */
@media (max-width: 430px) {
  .text-turnover,
.text-turnover span {
  font-size: 14px;
}
  .form-header h5 {
    font-size: 1.1rem;
  }

  .fishing-game-list.is-grid,
  .card-game-list.is-grid,
  .keno-game-list.is-grid,
  .product-game-list-v2.is-grid,
  .game-popular-list.is-grid {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(4, 1fr);
  }

  .fishing-game-list .game-card {
    max-width: 120px;
  }

  .box-product-list {
    width: 18%;
  }

  .product-game-list {
    width: 82%;
  }
  .casino-card {
    max-width: 130px;
  }

  .product-game-list {
    gap: 5px;
  }
}

/* < 412px */
@media (max-width: 412px) {
  .logo-image-login {
    max-height: calc(var(--topbar-height)/2);
  }

  .game-card {
    width: 100px;
    height: 135px;
  }
}

/* < 390px */
@media (max-width: 390px) {
   .text-turnover,
.text-turnover span {
  font-size: 13px;
}
  .box-product-list {
    width: 20%;
  }
  .product-game-list {
    width: 80%;
  }
  .box-product-list .item-list {
    max-height: 70vh;
  }

  .product-game-list {
    gap: 5px;
  }

  .game-card {
    width: 88px;
    height: 123px;
  }

  .casino-card {
    max-width: 115px;
  }

  .card-deposit-bank {
    padding: 1rem 0.5rem;
  }

  .casino-product-list {
    gap: 5px;
  }
  .product-game-list-v2.is-grid {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(3, 1fr);
  }
  .product-game-list-v2.is-grid .game-card{
     width: 100px;
  }
}

@media (max-width: 375px) {
  .grid-4{
    gap: 8px;
  }
.modal-full-screen {
--bs-modal-padding:1rem 0.3rem
}
  .logo-image-login {
    max-height: calc(var(--topbar-height)/3);
  }
}

/* < 360px */
@media (max-width: 360px) {

  .casino-card {
    max-width: 110px;
  }

  .product-game-list {
    gap: 5px;
  }

  .game-card {
    width: 85px;
    height: 120px;
  }
}

/* ≥ 576px — sm */
@media (min-width: 576px) {

  .product-game-list {
    padding-left: 15px;
  }

  body.sidebar-collapsed .sidebar-link.submenu-item {}

  body.sidebar-collapsed .sidebar-link i {
    margin-right: 0;
    justify-content: center;
  }

  body.sidebar-collapsed .collapse:not(.show) {
    display: none !important;
  }

  .btn-game-category:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
  }

  .provider-card-bak {
    flex: 0 0 160px;
  }

  .provider-card {
    max-width: 160px;
  }

  .btn-game-category {
    width: 105px;
    height: 80px;
  }

  .game-card {
    width: 133px;
    height: 184px;
  }

  .register-modal-form {
    width: 80%;
  }

  .register-modal {
    width: 45%;
    margin-left: auto;
    margin-right: auto;
  }

  .login-modal {
    max-width: 600px;
  }

  .transaction-modal {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ≥ 768px — md */
@media (min-width: 768px) {
  .fs-md-16 {
        font-size: 16px !important;
    }
  .box-product-list {
    width: 6%;
  }

  .product-game-list {
    width: 94%;
  }

  .wrap-wheel,
  .wrap-wheel-amount {
    width: 50%;
  }

  .grid-template-columns-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-md-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
}

/* ≥ 992px — lg */
@media (min-width: 992px) {
  .grid-template-columns-lg-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === P2P deposit tab === */
.p2p-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.btn-amount-preset {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #000000af;
  color: var(--text-color-1, #f3f4f8);
  border-radius: 999px;
  padding: 0.55rem 0.5rem;
  font-size: 0.95rem;
  transition: 0.2s;
  cursor: pointer;
}
.btn-amount-preset.active {
  border-color: var(--secondary-color-1, #f68a04);
  color: var(--secondary-color-1, #f68a04);
}
@media (hover: hover) {
  .btn-amount-preset:hover {
    border-color: var(--secondary-color-1, #f68a04);
    color: var(--secondary-color-1, #f68a04);
  }
}
.btn-amount-preset:focus {
  outline: none;
}
.p2p-arrow-down > div {
  animation: p2pArrowBounce 1.6s ease-in-out infinite;
}
.p2p-arrow-down svg {
  animation: p2pArrowSvgNudge 1.6s ease-in-out infinite;
}
@keyframes p2pArrowBounce {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 14px rgba(246, 138, 4, 0.45);
  }
  50% {
    transform: translateY(6px);
    box-shadow: 0 6px 22px rgba(246, 138, 4, 0.65);
  }
}
@keyframes p2pArrowSvgNudge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .p2p-arrow-down > div,
  .p2p-arrow-down svg {
    animation: none;
  }
}
@media (max-width: 575px) {
  .p2p-amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #transactionTabP2P .card-deposit-bank {
    padding: 0.75rem 1rem;
    border-radius: 24px;
  }
  #transactionTabP2P .card-deposit-bank .icon-50 {
    width: 40px;
    height: 40px;
  }
  #transactionTabP2P .card-deposit-bank .fs-5 {
    font-size: 1rem !important;
  }
  #transactionTabP2P .card-deposit-bank .mb-3 {
    margin-bottom: 0.5rem !important;
  }
  #transactionTabP2P .text-deposit-bank-number {
    font-size: 1.05rem;
  }
  #transactionTabP2P .p2p-arrow-down {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  #transactionTabP2P .p2p-arrow-down > div {
    width: 34px !important;
    height: 34px !important;
  }
  #transactionTabP2P .p2p-arrow-down svg {
    width: 16px;
    height: 16px;
  }
  #transactionTabP2P p.mb-3 {
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem;
  }
  #transactionTabP2P .fs-14 {
    font-size: 12px !important;
  }
}
/* === menu badge (เครดิตฟรีใหม่) === */
.menu-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--secondary-color-1, #f68a04) 0%, var(--secondary-color-2, #f68a04) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.menu-btn {
  position: relative;
}
.menu-btn .menu-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
}
.sidebar-link .menu-badge-count {
  margin-left: 6px;
  vertical-align: middle;
}
html.sidebar-collapsed .sidebar .menu-badge-count {
  display: none;
}

/* === #menuMobileModal (เมนูมือถือ ธีมคลาสสิก) — responsive จอเล็ก/เตี้ย (2026-10-23) ===
   - .modal-dialog-scrollable (ใน views/modal.ejs) → body เลื่อนในตัว modal, ปุ่มปิดอยู่กับที่; เงาจางท้าย modal (.menu-modal-has-more จาก event.js) บอกว่ายังมีเมนูต่อด้านล่าง
   - ไม่เว้น padding-top เท่า topbar (ของ .modal-full-screen) เพราะ modal นี้ลอยทับทุกอย่างอยู่แล้ว — เสียพื้นที่ 60px บนจอเตี้ย
   - ≤ 575px ย่อระยะห่าง/padding; ≤ 400px grid กิจกรรม 4 → 3 คอลัมน์ (9 ปุ่ม = 3 แถวเท่าเดิม) ให้ป้ายยาว ๆ เช่น "เช็คอินประจำวัน" ไม่บี้ */
#menuMobileModal .modal-dialog {
  padding-top: 0;
}
#menuMobileModal .modal-content {
  position: relative;
}
#menuMobileModal .modal-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--theme-color-2, #1a1b1e));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#menuMobileModal .modal-content.menu-modal-has-more::after {
  opacity: 1;
}
#menuMobileModal .modal-body {
  -webkit-overflow-scrolling: touch;
}
#menuMobileModal .menu-btn {
  min-width: 0;
  padding: 0.5rem 4px;
  line-height: 1.2;
  white-space: normal;
}
@media (max-width: 575.98px) {
  #menuMobileModal .modal-dialog {
    --bs-modal-margin: 0.4rem;
    --bs-modal-padding: 0.75rem 0.75rem;
  }
  #menuMobileModal .modal-header {
    padding: 0.5rem 0.75rem 0;
  }
  #menuMobileModal .modal-body .mb-3 {
    margin-bottom: 0.65rem !important;
  }
  #menuMobileModal .modal-body .pb-3 {
    padding-bottom: 0.5rem !important;
  }
  #menuMobileModal .box-amount-header,
  #menuMobileModal .box-amount-header .user-balance,
  #menuMobileModal .box-amount-header .user-diamond,
  #menuMobileModal .box-amount-header .user-refund,
  #menuMobileModal .box-amount-header .user-commission {
    min-width: 0;
  }
  #menuMobileModal .btn-play-game,
  #menuMobileModal .btn-play-lottery {
    padding: 10px 12px;
  }
}
@media (max-width: 400px) {
  #menuMobileModal .grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
