@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.kanit-thin {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.kanit-extralight {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.kanit-light {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.kanit-regular {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.kanit-medium {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.kanit-semibold {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.kanit-bold {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.kanit-extrabold {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.kanit-black {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.kanit-thin-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.kanit-extralight-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.kanit-light-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.kanit-regular-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.kanit-medium-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.kanit-semibold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.kanit-bold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.kanit-extrabold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.kanit-black-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: italic;
}

body {
    font-family: "Kanit", sans-serif;
    background-color: var(--primary_color);
}

a {
    text-decoration: none;
    color: #000;
}

a :hover {
    color: #000;
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1040px;
    }
}

.nav-top {
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
}

.content {
    top: 150px;
    padding-bottom: 85px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    position: fixed;
    right: 0;
    scroll-behavior: smooth;
    z-index: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main-top-nav {
    height: 60px;
    padding: 8px 12px;
    align-items: center;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 10px;
}

.box1 {
    grid-column: 1;
}

.box2 {
    grid-column: 2/6;
}

.box3 {
    grid-column: 6;
}

.box3 img {
    width: 50%;
    height: auto;
    cursor: pointer;
}

.box4 {
    grid-column: 1 / 7;
    grid-row: 2;
}

/* Mobile layout */
@media (max-width: 900px) {
    .content {
        top: 180px;
    }

    .main-top-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .box1 {
        grid-column: 1;
    }

    .box3 {
        grid-column: 2;
    }

    .box4 {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .box2 {
        grid-column: 1 / 3;
        grid-row: 3;
    }
}

.img-main-logo {
    cursor: pointer;
    height: 100%;
    width: 170px;
    object-fit: scale-down;
}

.img-aff {
    cursor: pointer;
    height: 60px;
    width: 60px;
}

@media only screen and (max-width: 599px) {
    .img-aff {
        height: 36px;
        width: 36px;
    }
}

@media (min-width: 1024px) {
    .main-top-nav {
        height: 90px;
        margin: 8px 40px;
        padding: 0;
    }

    .img-main-logo {
        width: 206px;
    }
}

.swiper {
    width: 100%;
    background-color: var(--accent_color);
    border-top: var(--dark_color) solid 3px;
    border-bottom: var(--dark_color) solid 3px;
    height: 85px;
}

.swiper-slide {
    text-align: center;
}

.swiper-slide img {
    width: 75%;
}

.board-game {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.cover-promotion {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 0px 10px 0px #b9b9b9;
    height: 100%;
    padding: 10px;
}

.cover-promotion img {
    width: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.cover-promotion p {
    margin-top: 10px;
    font-weight: 500;
    text-align: start;
    font-size: 18px;
}

.leftside {
    height: 100%;
    width: calc(40% - 5px);
}

.rightside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: calc(60% - 5px);
}

@media only screen and (max-width: 599px) {
    .leftside {
        width: calc(100% - 5px);
    }

    .rightside {
        grid-template-columns: repeat(2, 1fr);
        width: calc(100% - 5px);
    }
}

.rightchild {
    height: 100%;
    width: 100%;
}


.board-game img {
    cursor: pointer;
    display: block;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    transition: transform .2s ease-in-out;
    width: 100%;
}

.nav-bot {
    -webkit-backdrop-filter: blur(3.5px);
    backdrop-filter: blur(3.5px);
    background: #ffffff85;
    clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
    bottom: 0;
    left: 0;
    padding: 12px;
    position: fixed;
    right: 0;
    z-index: 2;
}

.nav-bot {
    margin: 0 auto;
    max-width: 1040px;
    width: 100%;
}

.nav-bot-menu {
    display: flex;
    gap: 12px;
    justify-content: space-evenly;
}

.nav-bot-menu img {
    cursor: pointer;
    transition: transform .2s ease-in-out;
    width: 48px;
}

@media (min-width: 1024px) {

    .nav-bot {
        align-items: center;
        height: 75px;
    }

    .nav-bot-menu {
        display: flex;
        gap: 12px;
    }

    .nav-bot-menu img {
        transition: transform .2s ease-in-out;
        width: 55px;
    }

}

.quote-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    overflow: hidden;
    height: 35px;
    border-top-left-radius: 40px;
}

.label {
    background: var(--medium_color);
    color: #000;
    padding: 0 15px;
    font-weight: 500;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
}

.quote-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.quote-text {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: scroll-left 280s linear infinite;
    color: #333;
    font-size: 1.1em;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.top-nav-cat {
    text-align: center;
    padding: 5px 0;
}

.top-nav-cat img {
    width: 55px;
    margin: 4px 0;
}

.cover-button {
    justify-content: space-evenly;
    gap: 10px;
}

.button-register {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 15px;
}

.sport-content {
    margin: 10px 0;
}

.sport-content img {
    border-radius: 15px;
    border: 1px solid white;
}

.view-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.view-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* แต่ละ game-banner ให้สูงเท่ากัน */
.game-banner {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3/4;
    /* กำหนดอัตราส่วน (เช่น 3:4 แนวตั้ง) */
}

/* รูปภาพบังคับเต็มกรอบ */
.game-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* หรือ contain ถ้าอยากให้ไม่ตัด */
    border-radius: 10px;
    display: block;
}

/* ป้ายจำนวนออนไลน์ */
.game-online {
    position: absolute;
    top: 3px;
    left: 3px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 12px;
}

/* แถบชื่อเกม + ปุ่ม fav */
.game-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 0 5px;
}

.game-name {
    font-size: 11px;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fav-style {
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.fav-style.active,
.fav-btn:hover {
    color: red;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .view-grid {
        grid-template-columns: repeat(3, 1fr);
        /* มือถือ = 3 คอลัมน์ */
    }

    .view-grid-8 {
        grid-template-columns: repeat(3, 1fr);
        /* มือถือ = 3 คอลัมน์ */
    }
}

.m-show {
    display: block !important;
}

.m-hide {
    display: none !important;
}

@media (min-width: 900px) {
    .c-hide {
        display: none !important;
    }

    .c-show {
        display: block !important;
    }
}

.menu-list {
    border-right: 3px solid #fff;
    margin: 10px 0;
    padding-right: 10px;
}

.btn-close,
#changePasswordBtn {
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .custom-modal {
        width: 800px;
        max-width: 100%;
    }

    .menu-list {
        width: 25%;
    }
}

@media (max-width: 767.98px) {
    .custom-modal {
        width: 100%;
        margin: 0;
    }

    .menu-list {
        width: 20%;
        height: 100%;
        flex-direction: column !important;
        /* แนวตั้งในมือถือ */
        overflow-y: auto;
    }

    .content-board {
        flex-grow: 1;
        height: 100%;
    }

    .menu-item {
        width: 100%;
    }
}

.content-board {
    max-height: calc(90vh - 20px);
    /* ลด margin/padding เผื่อ */
    overflow-y: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.menu-item {
    width: 100%;
    font-weight: 600;
    margin: 2px 0;
}

.menu-item-block {
    background-color: var(--light_color);
    width: 100%;
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
    padding: 3px 0;
}

.menu-item.active .menu-item-block {
    background-color: var(--active_color);
}


.tag-name {
    background-image: url(/assets/img/demo/modal/1/1-1.png);
    width: 100%;
    cursor: pointer;
    background-size: 100% 100%;
    background-position: 50%;
    background-repeat: no-repeat;
    padding-top: .5rem;
    padding-bottom: .5rem;
    line-height: 1rem;
    color: #000;
    text-align: center;
}

.level {
    width: 45px;
    max-width: 100%;
    transition: 0.3s;
    filter: grayscale(50%) brightness(70%);
    opacity: 0.5;
}

.level.active {
    filter: none;
    opacity: 1;
}

.tag-wallet {
    background-image: url(/assets/img/demo/modal/1/3.png);
    width: 100%;
    cursor: pointer;
    background-size: 100% 100%;
    background-position: 50%;
    background-repeat: no-repeat;
    line-height: 14px;
    color: #fff;
    text-align: right;
    padding: .5rem .5rem .5rem;
    font-size: 13px;
}

.tag-diamond {
    background-image: url(/assets/img/demo/modal/1/4.png);
    width: 100%;
    cursor: pointer;
    background-size: 100% 100%;
    background-position: 50%;
    background-repeat: no-repeat;
    line-height: 14px;
    color: #fff;
    text-align: right;
    padding: .5rem .5rem .5rem;
    font-size: 13px;
}

.profile-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.modal {
    backdrop-filter: blur(5px);
}

.modal-board {
    background-color: var(--accent_color);
    border-radius: 15px;
    padding: 10px;
    font-weight: 500;
    box-shadow: 0px 0px 10px 3px var(--neutral_color);
}

.modal-board input {
    width: 100%;
    padding: 5px 40px 5px 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

.btn-comfirm {
    padding: 5px 20px;
    background-color: var(--neutral_color);
    color: #000;
    border: none;
    border-radius: 15px;
}

.btn-receive {
    padding: 2px 5px;
    background-color: var(--neutral_color);
    color: #000;
    border: none;
    border-radius: 15px;
    white-space: nowrap;
}

.btn-comfirm:disabled,
.btn-receive:disabled {
    background-color: #8a8a8a;
}

.btn-green {
    padding: 5px 20px;
    background-color: var(--highlight_color);
    color: #fff;
    border: none;
    border-radius: 15px;
}

.btn-white {
    padding: 5px 20px;
    background-color: #ffffff;
    color: #000;
    border: none;
    border-radius: 15px;
}

.btn-yell {
    padding: 5px 40px;
    background-color: #fefec0;
    color: #000;
    border: none;
    font-size: 20px;
    font-weight: 500;
    border-radius: 20px;
    margin-top: 10px;
}

.btn-white.active {
    padding: 5px 20px;
    background-color: var(--highlight_color);
    color: #fff;
    border: none;
    border-radius: 15px;
}

.text-box-show {
    border-radius: 20px;
    background-color: #fff;
    padding: 5px;
}

.cover-setting {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.setting-modalPage-board {
    background-color: #fffdc5;
    box-shadow: -4px -4px #bae0a0;
    border-radius: 10px;
    font-weight: 500;
    height: 100%;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.setting-modalPage-board .text-res {
    font-size: 18px;
}

@media (max-width: 767.98px) {
    .setting-modalPage-board .text-res {
        font-size: 13px;
    }
}

.title-modal {
    font-size: 17px;
    margin-left: 5px;
}

.share-board {
    font-weight: 600;
}

.share-box {
    border-radius: 15px;
    background-color: var(--accent_color);
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    gap: 10px;
}

.share-url {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-right: 10px;
    font-family: monospace;
}



.tab-item.active {
    background: var(--active_color);
    border-radius: 15px;
    border: none;
    font-weight: 500;
    border-bottom: 3px solid var(--active_color);
    /* เปลี่ยนสีขอบล่างเป็นสีเดียวกับ background */
}

.tab-item {
    border: none;
    background-color: transparent;
    padding: 4px;
}

.tab-border-item {
    border: none;
    background-color: transparent;
    padding: 4px;
    border-bottom: 3px solid white;
    transition: border-color 0.3s, background-color 0.3s;
    border-radius: 0;
    color: #000;
    /* ไม่ต้องมี border-radius เว้นแต่ต้องการ */
}

.filter-form {
    text-align: center;
}

@media screen and (max-width: 768px) {
    .filter-form {
        text-align: start;
    }
}

input[type=date] {
    border-radius: 10px;
    background-color: #ffffff44;
    border: 2px solid #ffffff;
    padding: 5px;
    color: var(--highlight_color);
}

.tb-report {
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

.tb-report,
th {
    background-color: var(--highlight_color);
    color: #fff;
    border: none;
    font-size: 15px;
}

.tb-report,
tr {
    background-color: #fff;
    color: var(--highlight_color);
}

.tb-report,
td {
    background-color: #fff;
    color: var(--highlight_color);
    font-size: 15px;
}

@media (max-width: 767.98px) {

    .tb-report,
    td {
        font-size: 10px;
    }
}

.txt-income {
    color: #fbd112;
    font-size: 25px;
    font-weight: 500;
}

/* password css*/
.form-group {
    position: relative;
}

input.error {
    border: 2px solid red !important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.toggle-password-2 {
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
    color: #888;
}

.toggle-password.active {
    color: red;
}

.error-text {
    font-size: 14px;
    color: red;
    min-height: 20px;
    margin-top: 1px;
    margin-left: 10px;
    font-weight: 300;
}

input.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

#ageCheckContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#ageCheckContainer input {
    width: auto;
}

#resendOtpBtn[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

/* end password*/

.text-error {
    color: red;
    font-size: 12px;
    font-weight: normal;
}

.deposit-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.promotion-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 767.98px) {

    .deposit-board {
        grid-template-columns: 1fr;
    }
}

.modal-card {
    background-color: var(--light_color);
    border-radius: 10px;
    display: flex;
    padding: 20px 10px;
    position: relative;
    cursor: pointer;
}

.modal-card-comment {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(255 0 0);
    padding: 0 5px;
    color: #fff;
    border-top-right-radius: 10px;
}

.deposit-hot {
    animation: mymove 0.5s infinite;
}

@keyframes mymove {
    from {
        background-color: #fff;
    }

    to {
        background-color: #ffffffaa;
    }
}

.depL img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-right: 10px;
}

.depR {
    display: flex;
    flex-direction: column;
    font-size: 1em;
}

.depR .sub-text {
    color: #555;
    font-size: 0.9em;
    margin-top: 4px;
}

.text-depGreen {
    color: var(--highlight_color);
    font-weight: 600;
}

.text-link {
    color: #dc3545;
    text-decoration: underline;
    cursor: pointer;
}

.text-detail {
    font-size: 14px;
}

.modal.show#bankUpdateModal {
    z-index: 1070;
    /* มากกว่า default (1055) ของ modal แรก */
}

.hide-important {
    display: none !important;
}

.deposit-card {
    background-color: #fefec0;
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #ccc;
}

.deposit-card-img {
    width: 50px;
}

.bank-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 15px 20px;
    background-color: #fefec0;
    margin-top: 10px;
}

.bank-card.BAAC {
    background-color: #E3EBFD;
}

.bank-card.BAY {
    background-color: #FCF6BD;
}

.bank-card.BBL {
    background-color: #C0E4F6;
}

.bank-card.CIMB {
    background-color: #E8ABB5;
}

.bank-card.GHB {
    background-color: #FFE2D1;
}

.bank-card.GSB {
    background-color: #F8D5F8;
}

.bank-card.HSBC {
    background-color: #F6C6C7;
}

.bank-card.IBANK {
    background-color: #C0E4F6;
}

.bank-card.ICBC {
    background-color: #E8ABB5;
}

.bank-card.KBANK {
    background-color: #D0F4DE;
}

.bank-card.KKP {
    background-color: #E4D5E3;
}

.bank-card.KTB {
    background-color: #C0E4F6;
}

.bank-card.LHBANK {
    background-color: #E7D8C9;
}

.bank-card.MIZUHO {
    background-color: #A8D1E7;
}

.bank-card.SCB {
    background-color: #D4D2F2;
}

.bank-card.SCBT {
    background-color: #C0E4F6;
}

.bank-card.TCD {
    background-color: #A8D1E7;
}

.bank-card.TISCO {
    background-color: #A8D1E7;
}

.bank-card.TTB {
    background-color: #A8D1E7;
}

.bank-card.UOB {
    background-color: #A8D1E7;
}


.deposit-details {
    flex: 1;
    text-align: left;
    font-size: 16px;
}

.bankNoAcc {
    font-weight: 600;
}

.deposit-logo {
    text-align: center;
}

.deposit-logo img {
    width: 50px;
    height: auto;
}

.copy-btn {
    margin-top: 8px;
    display: inline-block;
    background-color: var(--highlight_color);
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #09755a;
}

.modal-board.bank {
    background-color: var(--accent_color);
    border-radius: 15px;
    padding: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0px 0px 10px 3px var(--neutral_color);
}

.image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.deposit-p2p-img {
    width: 160px;
    height: auto;
}

.label-amount {
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-board input.deposit-input {
    width: 100%;
    padding: 5px 10px;
    text-align: right;
    box-sizing: border-box;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 500;
}

.thpay-card {
    background-color: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-align: center;
    padding: 10px;
}

.thpay-bill {
    background-color: #000971;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    color: #fff;
    padding: 10px;
}

.thpay-detail {
    display: flex;
    justify-content: space-between;
}

.upload-image-btn {
    width: 80px;
}

.update-bank {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.update-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 5px;
    font-size: 12px;
    border-radius: 10px;
    background-color: var(--active_color);
    font-weight: 500;
    border: 1px solid #ffffff;
    margin-top: 10px;
}

.update-board>.left {
    justify-self: left;
}

.update-board>.right {
    justify-self: right;
}

.modal-header {
    border: none;
    padding: 1rem 1rem 0 1rem;
}

.modal-body {
    padding: .5rem 1rem;
}

.modal-footer {
    border: none;
    padding: 0 .75rem .75rem .75rem;
    justify-content: center;
}

#loginModal .modal-footer {
    border: none;
    padding: 0 .75rem;
    justify-content: center;
}

.modalUBank .modal-content {
    background-color: #d9d9d9de;
    border: none;
    border-radius: 15px;
    box-shadow: inset 0 0 0 10px var(--medium_color);
}

.modalUBank .form-label {
    font-weight: 500;
    font-size: 17px;
}

.style-menu {
    width: 20%;
}

#loginModal .modal-content,
#forgotModal .modal-content,
#signupModal .modal-content,
#otpModal .modal-content,
#gameModal .modal-content,
#gameSelectModal .modal-content {
    border-radius: 25px;
    background: #ffffffb3;
    box-shadow: 0 0 10px 1px var(--dark_color);
}

#contactModal .modal-content {
    border-radius: 25px;
    background: var(--primary_color);
}

#contactModal .modal-body {
    padding: 0 45px 15px 45px;
}

#loginModal .form-control,
#signupModal .form-control {
    border-radius: 25px;
}

.forgot-text {
    color: #dc3545;
    padding-right: 25px;
    line-height: 16px;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

.btn-close-custom {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 2.25em;
    height: 2.25em;
    background: transparent url(/assets/img/close.png) center / contain no-repeat;
    border: none;
    opacity: 0.8;
    cursor: pointer;
}

.btn-close-custom:hover {
    opacity: 1;
}

.custom-toast {
    min-width: 250px;
    max-width: 350px;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* CSS สำหรับ central alert */
.central-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 250px;
    max-width: 400px;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* success style */
.central-alert.success {
    background-color: #28a745;
}

/* failed style */
.central-alert.failed {
    background-color: #dc3545;
    padding-top: 4rem;
    /* ให้รูปอยู่ด้านบน */
}

/* รูปกากบาทบน failed */
.central-alert.failed::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: url('/assets/img/close.png') no-repeat center/contain;
}

/* ปุ่มปิด */
.central-alert button.close-alert {
    margin-top: 1rem;
    padding: 0.3rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.central-alert.success button.close-alert {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.central-alert.failed button.close-alert {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M1.5 5.5l6.5 6 6.5-6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

.guide-link {
    display: flex;
    flex-direction: column;
    /* จัดเรียงแนวตั้ง */
    align-items: center;
    /* จัดกลางแนวนอน */
    text-decoration: none;
    /* ตัดเส้นใต้ลิงก์ */
    color: inherit;
    /* ใช้สีตามปกติ */
}

.income-group {
    display: flex;
    gap: 8px;
    /* ระยะห่างระหว่างปุ่ม */
    flex-wrap: nowrap;
    /* ไม่ให้ขึ้นบรรทัดใหม่ */
}

.income-group .income-submenu-btn {
    flex: 1;
    /* ให้ปุ่มขยายกว้างเท่า ๆ กัน */
    white-space: nowrap;
    /* ป้องกันข้อความตัดบรรทัด */
}

.poker-board {
    width: 100%;
    max-width: 1174px;
    height: 100%;
    margin: 0 auto;
    /* จัดกลาง container */
    background: url('/assets/img/demo/custom/bg-com-poker-webp.webp') no-repeat center center;
    background-size: cover;

    /* จัดปุ่มให้อยู่กลาง */
    display: flex;
    align-items: center;
    justify-content: center;
}

.esport-board {
    width: 100%;
    max-width: 1174px;
    height: 100%;
    margin: 0 auto;
    /* จัดกลาง container */
    background: url('/assets/img/demo/custom/bg-com-esport-webp.webp') no-repeat center center;
    background-size: cover;

    /* จัดปุ่มให้อยู่กลาง */
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-btn {
    position: relative;
    padding: 5px 20px;
    font-size: 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #ff9800, #8a5200);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.game-btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.8), rgb(250 0 247 / 64%), rgb(255 0 89 / 80%));
    background-size: 200% 200%;
    z-index: -1;
    animation: gold-glow 3s linear infinite;
}

.game-btn::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff9800, #8a5200);
    z-index: -1;
}

@keyframes gold-glow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ✅ สำหรับมือถือ */
@media (max-width: 768px) {
    .poker-board {
        background: url('/assets/img/demo/custom/bg-mobile-poker-webp.webp') no-repeat center center;
        background-size: cover;
    }

    .esport-board {
        background: url('/assets/img/demo/custom/bg-mobile-esport-webp.webp') no-repeat center center;
        background-size: cover;
    }
}

/* ----- แท็บเมนูหลัก ----- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

.left-navbot {
    display: flex;
    flex: 1;
    background: #ffffffcc;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    height: 70px;
}

.center-navbot {
    background: linear-gradient(180deg, #75757500 30%, #ffffffcc 30%);
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
}

.right-navbot {
    display: flex;
    flex: 1;
    background: #ffffffcc;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    height: 70px;
}


/* ----- ปุ่มเมนูทั่วไป ----- */
.nav-item {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
}

.nav-item img {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 4px;
}

/* ----- ปุ่มเมนูตรงกลางพิเศษ ----- */
.nav-item.center {
    position: relative;
    top: -15px;
}

.nav-item.center img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
}

.nav-item-board {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
}

#gameModal .nav-link.active {
    color: #ffffff;
    background-color: #2bad66;
    border: none;
}

#gameModal .nav-link {
    color: #2bad66;
    background-color: #ffffff;
    border: none;
}

#gameModal .page-item.active .page-link {
    color: #ffffff;
    background-color: #2bad66;
    border: none;
}

#gameModal .page-item .page-link {
    color: #2bad66;
}

.side-menu {
    position: fixed;
    top: 180px;
    /*left: 50%;              
    transform: translateX(-50%); */
    background: #ffffffcc;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    transition: top 0.3s ease;
    z-index: 2;
}

/* ตอนที่ปิด (เลื่อนไปด้านบน) */
.side-menu.closed {
    top: 115px;
    /* ขยับขึ้นไปนอกจอ (ปรับตามความสูงเมนูจริง) */
    z-index: 2;
}

/* ปุ่ม toggle */
/* ปุ่ม toggle */
/* ปุ่ม toggle */
.menu-toggle {
    position: absolute;
    bottom: -60px;
    /* ยื่นออกมาด้านล่างแทน */
    left: 50%;
    transform: translateX(-50%);
    background: #61c98e;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 41% 49%, 52% 52%, 59% 49%, 100% 0);
}

.menu-toggle span {
    position: absolute;
    top: 0px;
    /* ให้ข้อความอยู่ใต้ปุ่ม */
}

/* เมนูไอคอน */
.menu-icons {
    display: flex;
    flex-direction: row;
    /* เปลี่ยนจาก column → row */
    gap: 10px;
    justify-content: center;
    /* จัดให้อยู่ตรงกลางแนวนอน */
}

.menu-icons img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s;
}

.menu-icons img:hover {
    transform: scale(1.1);
}

.carousel {
    height: 45px;
    overflow: hidden;
    position: relative;
    padding-bottom: 5px;
}

.slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 100%;
}

/* สำหรับมือถือ */
.slide {
    flex: 0 0 auto;
    min-width: 20%;
    box-sizing: border-box;
    padding: 0 5px;
    text-align: center;
    margin: 0 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 2px solid #02885e;
    background: linear-gradient(180deg, #ececec, #c2c2c2);
    color: #02885e;
    border-radius: 10px;
}

/* สำหรับหน้าจอใหญ่ (คอม) */
@media screen and (max-width: 768px) {
    .slide {
        min-width: 33.3333%;
    }
}

.amount {
    font-size: .65rem;
    font-weight: bold;
}

.id {
    margin-top: 3px;
    font-size: .5rem;
    opacity: 0.9;
}

.contact-card {
    background: #ffffff;
    border-radius: 35px;
    padding: 10px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    /* ระยะระหว่างรูปกับข้อความ */
}

.contact-card img {
    width: 50px;
    border-radius: 10px;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.partner-board {
    border-top: 4px solid #47bd89;
    background: #daf3d6;
    min-height: 300px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
    .partner-board {
        grid-template-columns: repeat(5, 1fr);
        padding: 0 10px;
        gap: 5px;
    }
}

.under-box {
    width: 60px;
    /* กำหนดความกว้าง */
    aspect-ratio: 1 / 1;
    /* ทำให้สูง = กว้าง */
    border-radius: 15px;
    background: #fff8;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
}

.under-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.under-box img {
    width: 35px;
}

.image-slider {
    width: 100%;
    overflow: hidden;
    padding: 0 20px;
}

.slider-track {
    display: flex;
    justify-content: space-evenly;
}

.img-item {
    flex: 0 0 auto;
}

.img-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* --- Desktop (6 อันต่อแถว) --- */
@media (min-width: 768px) {

    .img-item {
        flex: unset;
    }
}

/* --- Mobile (ทำเป็นสไลด์แนวนอน เห็น 3.5 อัน) --- */
@media (max-width: 767px) {
    .image-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 5px;
    }

    .slider-track {
        flex-wrap: nowrap;
    }

    .img-item {
        flex: 0 0 calc(100% / 3.5);
    }

    .image-slider::-webkit-scrollbar {
        display: none;
    }
}

.tab-content {
    padding: 10px;
    display: none;
}

.tab-content.active {
    display: block;
    /* โชว์เฉพาะอันที่เลือก */
}

#gameSearch {
    border-radius: 25px;
    width: 150px;
}

.btn-select {
    padding: 7px 30px;
    background: var(--dark_color);
    color: #fff;
    border: none;
    border-radius: 25px;
}

.btn-select img {
    width: 30px;
    border-radius: 1px;
}

.hot-title {
    background: linear-gradient(90deg, #fece50, #f97e8d);
    color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 200px;
    margin: auto;
}

.content-promotion {
    border: 2px solid #02885e;
    border-radius: 10px;
    background: #ffffff85;
}

.content-promotion p {
    font-weight: 600;
    font-size: 18px;
}

.condition-rule {
    max-width: 500px;
    margin: auto;
}

.star-wrap {
    position: relative;
    display: inline-block;
}

.star-img {
    width: 100%;
    display: block;
}

.labels {
    position: absolute;
    transform: translate(-50%, -50%);
    background: none;
    color: #000;

    display: block;
    /* บังคับให้ .label เป็น block ธรรมดา */
    text-align: center;
    /* จัดข้อความตรงกลาง */
    white-space: normal !important;
    /* บังคับให้ตัดบรรทัดได้ */
}

.labels p {
    margin: 0;
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.usernameTag {
    background: #fff;
    margin: 5px 0 10px 0 !important;
}

.prize {
    color: #fff;
    background: url(/assets/img/main/ribbin-webp.webp);
    background-size: cover;
}

@media screen and (max-width: 768px) {
    .labels p {
        font-size: 13px;
    }

    .usernameTag {
        font-size: 11px !important;
        margin: 0 0 4px 0 !important;
    }
}


.star-wrap .labels:nth-child(2) {
    top: 40%;
    left: 50%;
}

/* แฉกบน */
.star-wrap .labels:nth-child(3) {
    top: 61%;
    left: 21.5%;
}

/* แฉกขวาบน */
.star-wrap .labels:nth-child(4) {
    top: 61%;
    left: 77.5%;
}

/* แฉกขวาล่าง */
.star-wrap .labels:nth-child(5) {
    top: 83%;
    left: 32%;
}

/* แฉกซ้ายล่าง */
.star-wrap .labels:nth-child(6) {
    top: 83%;
    left: 67%;
}

/* แฉกซ้ายบน */

.register-img {
    width: 80%;
    max-width: 300px;
    border-radius: 15px;
}

.echoNews {
    background: var(--accent_color);
    border-radius: 15px;
    padding: 15px 25px;
}

.echoNews img {
    width: 100%;
    max-width: 300px;
}

.switch input[type="checkbox"] {
    display: none;
}

.switch img {
    cursor: pointer;
}

.contacts-wrapper {
    display: grid;
    gap: 5px;
}

/* ถ้ามีน้อยกว่าหรือเท่ากับ 3 → 1 ต่อแถว */
.contacts-wrapper.single {
    grid-template-columns: 1fr;
}

/* ถ้ามี 4 ขึ้นไป → 2 ต่อแถว */
.contacts-wrapper.double {
    grid-template-columns: 1fr 1fr;
}

.contact-board {
    background: linear-gradient(90deg, var(--highlight_color), var(--dark_color), var(--highlight_color));
    display: flex;
    align-items: center;
    padding: 5px 20px;
    font-size: 12px;
    color: var(--light_color);
    border-radius: 30px;
    border: 3px solid var(--highlight_color);
}

.contact-board img {
    width: 35px;
    height: 35px;
    margin-right: 5px;
}



#newsModal .modal-content {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    top: 45px;
}

.popup-img {
    width: 250px;
    border-radius: 15px;
}

.tabs {
    overflow: hidden;
}

.tab-color {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    overflow: hidden;
    border-radius: 35px;
    background: linear-gradient(90deg, var(--dark_color), var(--dark_color), var(--dark_color));
    margin-left: -5px;
    margin-right: -5px;
}

.tabs-container {
    display: flex;
    overflow-x: hidden;
    /* ป้องกัน scrollbar ปรากฏ */
    white-space: nowrap;
}

.active-hot {
    position: absolute;
    left: 0;
    top: 0;
    width: 180px;
    height: 100%;
    background: linear-gradient(90deg, #fdce50, #fb7d8f);
    border-radius: 35px;
    color: #fff;
    z-index: 1;
    pointer-events: none;
    /* 👈 ป้องกันการบังการคลิก */
}

@media screen and (max-width: 768px) {
    .active-hot {
        width: 130px;
    }

}

.tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-align: center;
    cursor: pointer;
    min-width: 120px;
}

.tabed {
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 125px;
    cursor: pointer !important;
    justify-content: center;
}

.tabed.active {
    background: linear-gradient(90deg, #ffd326, #f8f68b, #ffd326);
    border-radius: 35px;
    color: #000;
    padding: 5px;
}

.tabed img {
    display: block;
    margin-right: 5px;
    width: 35px;
    height: 35px;
}

.tabs-wrapper {
    position: relative;
    /* 👈 เพิ่ม */
    display: flex;
    align-items: center;
    overflow: hidden;
    /* 👈 เพื่อไม่ให้หลุดขอบ */
    border-radius: 35px;
}

.cover-swiper {
    flex: 1;
    position: relative;
    /* 👈 เพิ่ม */
    z-index: 2;
    overflow: hidden;
}

.swiper-wrapper {
    align-items: center;
}

.account-cardboard {
    background: var(--accent_color);
    background-size: cover;
    padding: 10px;
    font-size: 12px;
    max-width: 400px;
    margin: auto;
    border-radius: 10px;
}

.charector-board {
    gap: 10px;
    align-items: center;
    background: linear-gradient(180deg, var(--dark_color), var(--medium_color));
    padding: 10px 0;
    border-radius: 10px;
}

.bankUpdate-btn {
    display: inline-block;
    color: var(--dark_color);
    background-color: var(--primary_color);
    border-color: var(--dark_color);
}

.bankUpdate-btn.active {
    display: inline-block;
    color: #fff;
    background-color: var(--dark_color);
    box-shadow: 0 0 0 .25rem var(--medium_color);
}

.toggle-password-login {
    position: absolute;
    right: 5%;
    top: 55%;
    cursor: pointer;
    color: #888;
}