.announcement-modal .modal-dialog {
    max-width: 400px !important; /* ปรับ % ตามต้องการ เช่น 95% หรือ 85% */
    width: auto; /* รักษาความกว้างอัตโนมัติ */
}

/* ถ้าต้องการลดขนาดสูงด้วย */
.announcement-modal .modal-content {
    /* ลดขนาดความสูง ถ้าต้องการ */
    max-height: 90vh; /* สูงสุดไม่เกิน 90% ของ viewport height */
    overflow-y: auto; /* เลื่อน scroll ถ้าเนื้อหาเกิน */
    background-color: #e6dcfb;
}

.announcement-modal .modal-body {
    padding: 0px 3px 0px 3px; /* ปรับขอบตามต้องการ */
}

.announcement-modal .swiper-slide {

    box-sizing: border-box;
}

.announcement-modal .modal-header {
    display: flex;
    justify-content: flex-end; /* ดันปุ่มไปชิดขวา */
    align-items: center; /* จัดแนวกลางแนวตั้ง */
    padding: 1rem; /* ปรับ padding ตามต้องการ */
}

.announcement-modal .swiper-slide img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;

    display: block;
}

.swal2-html-container img {
    max-width: 100%;
    height: auto;
}


.swiper-slide {
    padding: 0 !important; /* เอา padding ออกให้หมด */
    box-sizing: border-box; /* ป้องกัน box model ผิดพลาด */
}

/* ถ้ามี container ย่อยที่มี padding */
/*.swiper-slide > div {*/
/*    padding: 0 !important;*/
/*}*/
.table-responsive-new {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: unset;
}

.dropzone {
    max-height: 100px; /* หรือ height: 200px; */
    border: 2px dashed #007bff;
    background-color: #84aff3;
    color: #0a0e14;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item {
    min-width: 110px;
    min-height: 80px;
    background: #232323;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0005;
    color: #ffb52a;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ถ้าอยากให้ card มีระยะห่างระหว่างกัน ให้ใช้ gap ที่ .menu-scroll */
    transition: border 0.18s, background 0.15s, color 0.15s;
    text-align: center;
    border: 1px solid #ffb52a;
/ / เพิ่มถ้าอยากให้ hover ชัด
}

/* ป้องกัน a ทำลาย flex ของ block */
.menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    padding: 12px 0 6px 0;
}

.menu-item img {
    width: 36px;
    height: 36px;
    margin-bottom: 5px;
    object-fit: contain;
}

.menu-item small {
    margin-top: 2px;
    font-size: 1.08rem;
    letter-spacing: 0.3px;
    color: #ffb52a;
    font-weight: 600;
}

.menu-item:hover,
.menu-item.active,
.menu-item:focus-within {
    background: #111;
    box-shadow: 0 4px 20px #0009;
}

.menu-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    /* optional: hide scrollbar */
    scrollbar-width: none;
}


.menu-scroll {
    display: flex;
    gap: 22px;
    /*background: #191919;*/
    padding: 18px 18px 10px 18px;
    width: fit-content;
    margin: 0 auto;

}

.menu-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.menu-scroll-wrapper {
    scrollbar-width: none;
}

@media (max-width: 600px) {
    .cat {

        padding-right: 0px !important;
        padding-left: 0px !important;

    }

    .menu-scroll {
        width: 100%;
        margin: 0;
        gap: 5px;
        padding: 5px 4px 4px 0px;
    }

    .menu-item {
        min-width: 66px;
        min-height: 48px;
        border-radius: 11px;
        font-size: 0.95rem;
    }

    .menu-item a {
        padding: 7px 0 3px 0;
    }

    .menu-item img {
        width: 26px;
        height: 26px;
        margin-bottom: 2px;
    }

    .menu-item small {
        font-size: smaller;
    }
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: transparent;
    border-radius: 22px;
    padding: 22px 10px;
    width: 120px;
    align-items: center;

    /* box-shadow: 0 4px 40px #000b; // ใส่ได้ถ้าอยากเด่น */
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #232323 70%, #23231c 100%);
    border-radius: 16px;
    padding: 15px 8px 10px 8px;
    text-decoration: none;
    color: #ffd700;
    font-weight: 700;
    font-size: 1.04rem;
    letter-spacing: 0.5px;
    box-shadow: 0 1.5px 10px #0007;
    transition: background 0.16s,
    color 0.16s,
    box-shadow 0.14s,
    transform 0.14s;
    margin: 0 auto;
    outline: none;
    margin-bottom: 10px;
    border: 1px solid #ffb52a;
/ / เพิ่มถ้าอยากให้ hover ชัด
}

.sidebar-item img {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    object-fit: contain;
    transition: filter 0.2s, transform 0.13s;
}

.sidebar-item span {
    margin-top: 0;
    font-size: 1.01rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 8px #0007;
    white-space: nowrap;
}

/* effect hover/active เน้นพื้นหลังทองนวล+ขยายเล็กน้อย */
.sidebar-item:hover, .sidebar-item.active, .sidebar-item:focus {
    background: linear-gradient(125deg, #ffe066 35%, #fffbe6 100%);
    color: #181818;
    box-shadow: 0 2px 16px #ffe06644, 0 4px 24px #0005;
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

.sidebar-item:hover img, .sidebar-item.active img {
    filter: brightness(1.13) drop-shadow(0 0 8px #ffe06644);
    transform: scale(1.06) rotate(-2deg);
}

@media (max-width: 600px) {
    .sidebar-menu {
        width: 80px;
        padding: 10px 2px;
        gap: 10px;
    }

    .sidebar-item {
        font-size: 0.93rem;
        padding: 10px 3px 7px 3px;
    }

    .sidebar-item img {
        width: 26px;
        height: 26px;
        margin-bottom: 6px;
    }
}


@media (max-width: 991.98px) {
    .x-category-index .-games-list-outer-container.-has-sidebar .-container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.example {
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow: hidden;
}

.example img {
    max-width: 100%;
    max-height: 100%;
    position: relative;
    vertical-align: middle;
    left: 50%;
    transform: translate(-50%);
    height: 150px;
    width: 150px;
    object-fit: cover;
}

.example-cover img {
    object-fit: cover;
}

.amount-btn {
    flex: 1 1 calc(30% - 10px);
    min-width: 80px;
    max-width: 120px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    background-color: #1e1e1e;
    color: #fff;
    border: 1px solid #ffc107;
    transition: 0.2s;
    margin: 5px;
}

.amount-btn:hover {
    background-color: #ffc107;
    color: #000;
    box-shadow: 0 0 5px #ffc107;
}

.amount-btn.active {
    background-color: #ffc107;
    color: #000;
    border: 1px solid #ffd54f;
    box-shadow: 0 0 6px #ffeb3b inset;
}

.amount-btn.deactive {
    opacity: 0.4;
}

.btn-for-deposit {
    opacity: 0.4;
    transition: opacity 0.2s, filter 0.2s;
}

.btn-for-deposit.is-selected {
    opacity: 1;
}

.btn-for-deposit:hover,
.btn-for-deposit:focus {
    opacity: 1;
    filter: brightness(1.2);
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.min-deposit-box {
    display: inline-block;      /* ทำให้กรอบพอดีกับข้อความ */
    border: 1.5px solid #6c757d; /* สีเทาอ่อนๆ แบบ muted */
    border-radius: 8px;          /* ขอบมน ดูนุ่มนวล */
    background-color: #f8f9fa;   /* สีพื้นหลังอ่อน ๆ */
    font-weight: 600;            /* ตัวหนังสือหนาขึ้น */
    font-size: 1rem;             /* ขนาดตัวอักษรกำลังดี */
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1); /* เงาเบา ๆ เพิ่มมิติ */
    user-select: none;           /* ป้องกันไฮไลท์เวลาคลิก */
    cursor: default;
}