:root {
    /* You MUST find this value in the original site's CSS */
    --header-bg: #222;
    --bg-main: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
    /* This is a placeholder fallback color */
}

body {
    background-color: black;
    color: white;
    font-family: Lato, sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    color: #ed2a00;
}

.fs12 {
    font-size: 12px;
}

.truncate {
    overflow: hidden;
    white-space: nowrap;
}

/* Target the SweetAlert2 confirm button */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: #ed2a00 !important;
    /* Bootstrap red */
    border-color: #ed2a00 !important;
}

/* Optional: hover effect */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover {
    background-color: #ed2a00 !important;
    /* Darker red on hover */
    border-color: #ed2a00 !important;
}

.was-validated .form-check-input:valid:checked,
.form-check-input.is-valid:checked {
    background-color: #ed2a00 !important;
    /* change valid checked color to orange */
    border-color: #ed2a00 !important;
    /* optional: change border too */
}

.form-check-input:checked {
    background-color: #ed2a00;
    border-color: #ed2a00;
}

/*
     * 1. Change Primary Button to Red
     * ======================================
     * We'll use Bootstrap's own "danger" red for consistency.
     */
.btn-primary {
    /* Set the main colors */
    --bs-btn-color: #fff;
    /* Text color */
    --bs-btn-bg: #ed2a00;
    /* Background color */
    --bs-btn-border-color: #ed2a00;
    /* Border color */

    /* Set the colors for the :hover state */
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #bb2d3b;
    /* A darker red */
    --bs-btn-hover-border-color: #b02a37;
    /* A slightly darker red */

    /* Set the colors for the :active state */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #a52834;

    /* Set the focus shadow color */
    --bs-btn-focus-shadow-rgb: 225, 83, 97;
}

/*
     * 2. Change Secondary Button to Yellow
     * ======================================
     * We use your provided color and set the text to black for contrast.
     */
.btn-secondary {
    /* Set the main colors */
    --bs-btn-color: #000;
    /* Black text for readability */
    --bs-btn-bg: #f7bc33;
    /* Your yellow */
    --bs-btn-border-color: #f7bc33;
    /* Your yellow */

    /* Set the colors for the :hover state */
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #e0a82e;
    /* A darker yellow */
    --bs-btn-hover-border-color: #d39e2c;
    /* A slightly darker yellow */

    /* Set the colors for the :active state */
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #d39e2c;
    --bs-btn-active-border-color: #c6952a;

    /* Set the focus shadow color */
    --bs-btn-focus-shadow-rgb: 247, 188, 51;
}

/*
     * 3. Change Success Button to Green
     * ======================================
     * We'll use Bootstrap's own "danger" red for consistency.
     */
.btn-success {
    /* Set the main colors */
    --bs-btn-color: #fff;
    /* Text color */
    --bs-btn-bg: #228b4a;
    /* Background color */
    --bs-btn-border-color: #228b4a;
    /* Border color */

    /* Set the colors for the :hover state */
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2c9c55;
    /* A darker red */
    --bs-btn-hover-border-color: #0f7936;
    /* A slightly darker red */

    /* Set the colors for the :active state */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0f7936;
    --bs-btn-active-border-color: #0d692f;

    /* Set the focus shadow color */
    --bs-btn-focus-shadow-rgb: 225, 83, 97;
}

/*
 * 4. Invert Outline Primary Button (Red)
 * ========================================
 * Text/border is red, fills with red on hover.
 */
.btn-outline-primary {
    /* Set the default state (text and border color) */
    --bs-btn-color: #ed2a00;
    --bs-btn-border-color: #ed2a00;

    /* Set the :hover state (inverted) */
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ed2a00;
    --bs-btn-hover-border-color: #ed2a00;

    /* Set the :active state (using your darker shades) */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #a52834;

    /* Set the focus shadow color */
    --bs-btn-focus-shadow-rgb: 225, 83, 97;
}

/*
 * 5. Invert Outline Secondary Button (Yellow)
 * ==========================================
 * Text/border is yellow, fills with yellow on hover.
 */
.btn-outline-secondary {
    /* Set the default state (text and border color) */
    --bs-btn-color: #f7bc33;
    --bs-btn-border-color: #f7bc33;

    /* Set the :hover state (inverted) */
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #f7bc33;
    --bs-btn-hover-border-color: #f7bc33;

    /* Set the :active state (using your darker shades) */
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #d39e2c;
    --bs-btn-active-border-color: #c6952a;

    /* Set the focus shadow color */
    --bs-btn-focus-shadow-rgb: 247, 188, 51;
}

/*
 * 6. Invert Outline Success Button (Green)
 * ==========================================
 * Text/border is green, fills with green on hover.
 */
.btn-outline-success {
    /* Set the default state (text and border color) */
    --bs-btn-color: #228b4a;
    --bs-btn-border-color: #228b4a;

    /* Set the :hover state (inverted) */
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #228b4a;
    --bs-btn-hover-border-color: #228b4a;

    /* Set the :active state (using your darker shades) */
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #0f7936;
    --bs-btn-active-border-color: #0d692f;

    /* Set the focus shadow color */
    --bs-btn-focus-shadow-rgb: 247, 188, 51;
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    background-color: #ed2a00;
}

/* HEADER */

.header-text {
    color: #c6c6c6;
}

.header-user-name {
    color: #f7bc33;
}

.env-label {
    display: inline-flex;
    vertical-align: top;
    background-color: #ed2a00;
    /* A strong red */
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    z-index: 9999;
    border-radius: 5px;
    opacity: 0.8;
    /* Makes it slightly transparent */
    pointer-events: none;
    /* Allows you to click "through" it */
}

/* Part 1: Redeem Banner */
.redeemBanner {
    /* Add styles from original site */
    background-color: #ed2a00;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.redeemBanner button {
    /* Add styles from original site */
    background-color: #fff;
    /* Bootstrap primary blue */
    color: #ed2a00;
    border: none;
    border-radius: 5px;
    padding: 0.25rem 0.75rem;
    margin-left: 1rem;
}

.closeRedeem {
    cursor: pointer;
}

.closeRedeem svg {
    width: 1em;
    height: 1em;
}

/* Part 2: Main Header Bar */
.header-bar {
    /* These values came from h-[50px] lg:h-[90px] and header-border */
    height: 50px;
    background-color: var(--header-bg);
    border-bottom: 1px solid #444;
}

@media (min-width: 992px) {

    /* Bootstrap 'lg' breakpoint */
    .header-bar {
        height: 90px;
    }
}

.header_logo_img {
    /* You MUST get this from the original site's CSS */
    display: inline-flex;
    background-image: url('/logo/default@2x.png?v=20251109');
    width: 150px;
    /* Example */
    height: 24px;
    /* Example */
    background-size: contain;
    background-repeat: no-repeat;
}

.promotion_box_btn {
    border-radius: 5px;
    /* from rounded-[5px] */
    /* Add background, color, etc. from original site */
}

.topbar_btn_1,
.topbar_btn_2 {
    /* Add all styling from original site (padding, background, color, font-weight, etc.) */
    padding: 0.5rem 1rem;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.topbar_btn_1 {
    background-color: #444;
}

.topbar_btn_2 {
    background-color: #0d6efd;
}

/* Example */

.img-lang {
    max-width: 25px;
    vertical-align: middle;
}

.lang-btn .btn-link {
    padding: 0.25rem 0.5rem;
}

.lang-menu {
    background-color: #222 !important;
}

.lang-country,
.lang-option .btn-link {
    color: #fff !important;
}

.lang-option .btn.disabled,
.lang-option .btn:disabled {
    background-color: transparent !important;
    color: #ed2a00 !important;
    font-weight: bold !important;
    cursor: not-allowed;
    pointer-events: none;
}

.lang-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: none;
    padding: 0;
}

.lang-btn-mobile {
    width: 25px;
    height: 25px;
}

.referral .btn-primary-gradient {
    background: linear-gradient(90deg, #ed2a00, #ed2a00) !important;
}

.social-media-text {
    color: #fff !important;
}

.card-body {
    color: #fff !important;
}

.btn-primary-gradient {
    background-image: linear-gradient(to bottom, #ff7148, #ed2a00) !important;
}

/* Part 3: Secondary Nav Menu */
.topbar_menu {
    height: 45px;
    /* from h-[45px] */
    background-color: #ed2a00;
    /* Example */
    color: #fff;
}

.topbar_menu_item {
    /* d-flex, align-items-center, gap-2 are in HTML */
    padding: 0 0.75rem;
    text-decoration: none;
    color: #fff;
    height: 45px;
    /* To fill the bar */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    /* from gap-2 */
}

.topbar_menu_item.active,
.topbar_menu_item:hover {
    color: #f7bc33;
}

.topbar_menu_item:hover .icon-game-hot,
.topbar_menu_item.active .icon-game-hot {
    background-image: url("../icon/game_categories/hot.gif");
}

.topbar_menu_item:hover .icon-game-slot,
.topbar_menu_item.active .icon-game-slot {
    background-image: url("../icon/game_categories/slot_hover@2x.png");
}

.topbar_menu_item:hover .icon-game-sport,
.topbar_menu_item.active .icon-game-sport {
    background-image: url("../icon/game_categories/sport_hover@2x.png");
}

.topbar_menu_item:hover .icon-game-live-casino,
.topbar_menu_item.active .icon-game-live-casino {
    background-image: url("../icon/game_categories/livecasino_hover@2x.png");
}

.topbar_menu_item:hover .icon-game-lottery,
.topbar_menu_item.active .icon-game-lottery {
    background-image: url("../icon/game_categories/lottery_hover@2x.png");
}

.topbar_menu_item:hover .icon-game-fishing,
.topbar_menu_item.active .icon-game-fishing {
    background-image: url("../icon/game_categories/fishing_hover@2x.png");
}

.topbar_menu_item:hover .icon-game-cockfight,
.topbar_menu_item.active .icon-game-cockfight {
    background-image: url("../icon/game_categories/cockfight_hover@2x.png");
}

.nav-item-container {
    position: relative;
    /* Needed for the dropdown */
}

/* This is the complex dropdown. It NEEDS JS to work properly. */
.topbar_menu_item_dropdown {
    display: none;
    /* Hidden by default */
    position: absolute;
    left: 0;
    width: 100vw;
    /* Spans full width */
    background-color: #fff;
    /* Example */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    top: 100%;
    /* Position it below the nav item */
    z-index: 10;
}

/* Simple CSS-only hover effect to show dropdown */
.nav-item-container:hover .topbar_menu_item_dropdown {
    display: block;
}

.topbar-promo-btn {
    background-color: #56b131;
}

.topbar-affiliate-btn {
    background-color: #4767e6;
}

/* LOGIN & SIGN UP FORM */
.modal-content {
    background: #000;
    color: #fff;
}

.btn-close,
.btn-close:hover {
    color: #ccc;
    font-weight: 700;
    font-size: 20px;
}

.login-forgot-color {
    color: #f7bc33;
}

/* CONTENT */
.marquee-container {
    align-items: center;
    cursor: pointer;
    display: flex;
    padding: 8px 8px;
    position: relative;
}

.marquee-icon {
    font-size: 20px;
}

.marquee-viewport {
    /* This container just hides the overflow */
    white-space: nowrap;
    /* Prevents text from wrapping */
}

.marquee-content {
    /* This is the element that moves.
          We apply the animation to it.
        */
    display: inline-block;
    /* Makes it size to its text content */
    padding-left: 100%;
    /* Starts the text off-screen to the right */
    animation: marquee-scroll 15s linear infinite;
    color: white;
    /* Your text color */
}

/* You must define the keyframes for your animation.
      This moves the text from right to left.
    */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        /* Moves the element left by its *own* full width */
        transform: translateX(-100%);
    }
}

.card {
    background-color: #000;
}

.marquee_box {
    width: calc(100% - 40px);
    color: #fff;
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    justify-content: space-around;
    margin-left: 1rem;
    animation: marquee-scroll 10s linear infinite;
}

/*
* Custom class from your original code to hide the scrollbar
*/
.none-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.none-scrollbar::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

/* Vendor button container */
.vendor-btn {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.hot-btn {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    justify-content: center;
    margin: 5px;
}

/* Background style for the vendor button */
.tab_btn_bg {
    display: flex;
    flex-direction: column;
    /* Stack icon and name vertically */
    align-items: center;
    /* Center icon horizontally */
    justify-content: center;
    background-color: #666;
    border-radius: 100%;
    height: 50px;
    width: 50px;
    margin: 0 auto;
    transition: all 0.3s;
    position: relative;
}

/* Vendor icon styling */
.tab_btn_img {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

/* Vendor name under the icon */
.tab_btn_text {
    text-align: center;
    margin-top: 8px;
    /* Adjust spacing between icon and name */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    /* Adjust font size if needed */
}

.active .tab_btn_bg {
    background: var(--bg-main);
}

.btnProvider {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    border: 0;
    display: block;
    position: relative;
}

.tab-image-bg {
    align-items: center;
    background-color: #000;
    border-radius: 100%;
    display: flex;
    height: 50px;
    justify-content: center;
    margin: 0 auto;
    transition: all .3s;
    width: 50px;
}

.app_tag {
    left: 0;
    position: absolute;
    top: 0;
    width: 30px;
}

.tab_btn_text {
    color: #fff;
    text-transform: uppercase;
    font-size: .75rem;
    line-height: 1rem;
}

.provider-hot-tag {
    left: 0;
    position: absolute;
    top: 0;
}

/* GAME LIST */

/*
 * Custom CSS for the Bootstrap 5 Game Card
 */
.my-auto {
    margin-top: 35% !important;
}

.game-btn {
    width: calc(12.5% - 20px);
}

.game-card-bs5 {
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: transparent;
}

.game-card-bs5 .card-img {
    /* Ensures the image covers the card area */
    object-fit: cover;
    width: 100%;
    height: 100%;
    /* Add a zoom effect on hover */
    transition: transform 0.3s ease;
    /* border-radius: 30px; */
    border-radius: 10px;
}

/* The "Play Now" button (hidden by default) */
.game-card-bs5 .game-card-hover-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* The game title section (always visible) */
.game-card-bs5 .game-card-title {
    /* Gradient to make text readable over any image */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

/* The main overlay (for hover) */
.game-card-bs5 .card-img-overlay {
    background: rgba(0, 0, 0, 0.2); /* Slight dark overlay by default */
    transition: background-color 0.3s ease;
}


/* --- HOVER EFFECTS --- */
.game-card-bs5:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.game-card-bs5:hover .card-img {
    transform: scale(1.05);
    /* Slight zoom on image */
}

.game-card-bs5:hover .card-img-overlay {
    background: rgba(0, 0, 0, 0.7);
    /* Darken overlay on hover */
}

.game-card-bs5:hover .game-card-hover-content {
    opacity: 1;
    /* Show "Play Now" button */
}

/* 1. Remove default borders and add spacing */
.pagination {
    gap: 0.5rem;
    /* This creates the space between buttons */
    --bs-pagination-border-width: 0;
    /* Remove default borders */
    --bs-pagination-focus-box-shadow: none;
    /* Remove blue focus shadow */
    --bs-pagination-active-bg: #ed2a00;
    /* Fallback active bg */
    --bs-pagination-active-border-color: #ed2a00;
}

/* 2. Style all buttons (links) */
.pagination .page-link {
    /* Sizing and Shape */
    width: 40px;
    /* Set fixed width */
    height: 40px;
    /* Set fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.375rem !important;
    /* Force rounded corners */

    /* Default Colors */
    background-color: #2c2c2e;
    /* Dark grey */
    color: #e0e0e0;
    /* Light grey text */
    border: 1px solid #444;

    /* Text */
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

/* 3. Style the hover/focus state */
.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: #444;
    /* Lighter grey on hover */
    color: #fff;
}

/* 4. Style the ACTIVE button */
.pagination .page-item.active .page-link {
    background-image: linear-gradient(#e74c3c, #dc3545);
    /* Red gradient */
    color: #fff;
    border-color: #c9302c;
}

/* 5. Style the DISABLED buttons */
.pagination .page-item.disabled .page-link {
    background-color: #1c1c1e;
    /* Very dark */
    color: #555;
    border-color: #333;
}

/* * 6. (CSS Trick) Change arrow icons
 * This hides the default '«' and '»' and replaces them with '<' and '>'
*/
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
    font-size: 0;
    /* Hide default text */
}

.pagination .page-link[rel="prev"]::before {
    content: '<';
    font-size: 1rem;
    /* Re-set font size for the icon */
}

.pagination .page-link[rel="next"]::before {
    content: '>';
    font-size: 1rem;
    /* Re-set font size for the icon */
}

/* END OF GAME LIST */


/* FOOTER */
.footer-link-text {
    color: #8c8c8c;
}

/* BOTTOM NAV */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    /* Distributes items evenly */
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Adjust height as needed */
    background-color: #222;
    /* Example background */
    border-top: 1px solid #444;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    /* Icon/text color */
    font-size: 12px;
}

.bottom-nav-item.active {
    color: #fff;
    /* Color for the active item */
}

.bottom-nav-item .icon {
    font-size: 20px;
    /* For icon fonts */
    margin-bottom: 4px;
    /* Use <img> or <svg> for icons */
}


@media (max-width: 1400px) {
    .game-btn {
        width: calc(16.6% - 20px);
    }
}

@media (max-width: 1024px) {
    .game-btn {
        width: calc(20% - 20px);
    }
}

@media (max-width: 767px) {
    .game-btn {
        width: calc(50% - 20px);
    }
}

/* ============================= */
/* Target buttons, links, spans, and menu items with Chinese text */
/* ============================= */
a,
button,
span,
.topbar_menu_item {
    word-break: keep-all;
    /* Prevent breaking between CJK characters */
    white-space: nowrap;
    /* Prevent wrapping mid-word */
    line-break: strict;
    /* Strict line breaking for Chinese/Japanese */
    text-align: center;
}

/* Responsive font sizes */
@media (max-width: 970px) {

    a,
    button,
    span,
    .topbar_menu_item {
        font-size: 0.875rem;
    }
}

@media (max-width: 970px) {

    a,
    button,
    span,
    .topbar_menu_item {
        font-size: 0.8rem;
    }
}

/* Hamburger menu button */
.hamburger-menu {
    background-color: #ed2a00;
    color: white;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    display: none;
    /* hide on desktop */
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
    /* so dropdown is positioned relative to this */
    z-index: 100;
}

.hamburger-menu:hover {
    background-color: #bb2d3b;
}

/* Mobile styles */
@media (max-width: 970px) {
    .hamburger-menu {
        display: block;
    }

    /* Hide menu by default on mobile */
    #game-category-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        /* dropdown below hamburger */
        top: 100%;
        /* right below button */
        left: 0;
        /* width: 100%; */
        /* background-color: #ed2a00; */
        border-radius: 8px 8px 8px 8px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
    }

    #game-category-menu .topbar_menu_item {
        border-radius: 8px 8px 8px 8px;
    }

    /* Show when active */
    #game-category-menu.active {
        display: flex;
        max-height: 1000px;
        /* large enough for all items */
        opacity: 1;
        background: #ed2a00;
        border-radius: 0;
    }

    /* Tight spacing for items */
    .nav-item-container {
        margin: 2px 0;
        width: 100%;
        border-bottom: 1px solid #fff;
    }

    .nav-item-container:last-child {
        border-bottom: none;
    }

    .topbar_menu_item {
        width: 100%;
        text-align: left;
        padding: 0.5rem 1rem;
        border-radius: 0;
        background-color: #ed2a00;
        color: white;
        font-weight: bold;
        display: flex;
        align-items: center;
        transition: background-color 0.3s ease;
    }

    .topbar_menu_item i {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .topbar_menu_item:hover {
        background-color: #bb2d3b;
    }


    /* Small circular buttons */
    .btn-circle {
        width: 20px;
        /* diameter */
        height: 20px;
        /* diameter */
        padding: 0;
        /* remove default padding */
        border-radius: 50%;
        /* make round */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        /* icon size */
    }

    /* Optional: adjust icon size inside */
    .btn-circle i {
        font-size: 16px;
    }

}

/* General Styles for Profile Button */
/* General Styles for Profile Button */
.profile-btn .nav-item {
    margin-bottom: 10px;
    /* Small gap between list items */
}

/* Base Styling for Links */
.profile-btn .nav-link {
    color: white !important;
    /* Default text color */
    display: flex;
    align-items: center;
    /* Align icon and text vertically */
    padding-left: 15px;
    /* Padding for left side (icon space) */
    padding-right: 15px;
    /* Padding for right side */
    font-size: 16px;
    /* Font size */
    transition: color 0.3s, background-color 0.3s;
    /* Smooth transitions */
}

/* Adding gap between icon and text */
.profile-btn .nav-link i {
    margin-right: 8px;
    /* Small gap between icon and text */
}

/* Hover and Active States */
.profile-btn .nav-link:hover,
.profile-btn .nav-link.active {
    color: #ed2a00 !important;
    /* Red color on hover and active state */
    background-color: transparent !important;
    /* No background on hover */
}

/* Remove the background color on the active state to keep it clean */
.profile-btn .nav-link.active {
    color: #ed2a00 !important;
    background-color: transparent !important;
}

/* Optional: Style the "active" link for better visibility */
.profile-btn .nav-link.active i {
    color: #ed2a00 !important;
}

/* Style for icons to make them outline (line drawing) */
.profile-btn .nav-link i {
    font-weight: 100;
    /* Lighter weight for the outline icons */
    -webkit-font-smoothing: antialiased;
    /* Ensure smoother icons */
}

.swal2-modal {
    background-color: #222;
    color: #fff;
}

.swal2-icon {
    display: none !important;
}

/* Dark Table Styling */
.vip-table {
    background-color: #1b1b1b;
    color: #fff;
}

.vip-table thead th {
    background-color: #111;
    color: #fff;
}

.vip-table tbody tr:nth-child(even) {
    background-color: #222;
}

.vip-table tbody tr:nth-child(odd) {
    background-color: #1b1b1b;
}

/* Category Name Yellow */
.vip-table .vip-category {
    color: #FFD700;
}

/* VIP Level Tabs Mobile */
.vip-mobile-icon a.active div {
    font-weight: bold;
    text-decoration: underline;
}

.vip-mobile-icon img {
    display: block;
    margin: 0 auto;
}

.history-table {
    border-collapse: separate !important;
    /* needed for border-radius to work */
    border-spacing: 0;
    border-radius: 12px !important;
    overflow: hidden;
    /* ensure rounded corners clip the rows */
}

.history-table thead {
    background-color: #111 !important;
    /* slightly darker header */
    color: #fff;
}

.history-table tbody {
    background-color: #000 !important;
    /* black table body */
    color: #fff;
}

.history-table th,
.history-table td {
    background-color: inherit !important;
    /* make cells inherit parent */
    color: #fff !important;
    vertical-align: middle;
}

.history-table tr:hover {
    background-color: #1a1a1a !important;
    /* hover effect */
}

.history-table .btn-icon {
    background-color: transparent;
    border: 0;
    color: #ffc107 !important;
}

.history-table .btn-icon:hover {
    color: #fff !important;
}

.dark-input {
    background-color: #2a2a2a !important;
    /* dark grey */
    color: #fff !important;
    /* white text */
    border: 1px solid #444 !important;
    /* subtle border */
}

.dark-input:focus {
    background-color: #2a2a2a !important;
    color: #fff !important;
    border-color: #ffc107 !important;
    /* highlight on focus if needed */
    box-shadow: none !important;
}

/* Placeholder color */
.dark-input::placeholder {
    color: #aaa;
    /* light grey placeholder */
}

/* Dark button for search */
.search-btn {
    background-color: #444;
    /* slightly lighter than input */
    border: 1px solid #555;
    /* match border */
    color: #ffc107;
    /* yellow icon like theme */
}

/* Hover effect */
.search-btn:hover {
    background-color: #555;
    color: #fff;
}

/* Dark theme search submit button */
.search [type=submit] {
    background-color: #444 !important;
    /* dark background */
    border: 1px solid #555 !important;
    /* dark border */
    color: #ffc107 !important;
    /* yellow icon */
}

.search [type=submit]:hover {
    background-color: #555 !important;
    /* slightly lighter on hover */
    color: #fff !important;
    /* icon turns white on hover */
}

.message-custom-icon.unread-message {
    background: linear-gradient(90deg, #ea5d2a, #ed2a00) !important;
}

/* Modal background */
.custom-modal {
    background-color: #222;
    /* dark background */
    color: #fff;
    /* white text */
}

/* Modal header */
.custom-modal-header {
    background-color: #ed2a00;
    /* red header */
    color: #fff;
}

/* Optional: buttons inside modal body */
.custom-modal .btn-red {
    background-color: #ed2a00;
    border-color: #ed2a00;
    color: #fff;
}

/* Inactive tabs */
#profileTabs .nav-link,
#promoTabs .nav-link {
    color: #ed2a00;
    /* red for inactive tabs */
    opacity: 1;
    transition: color 0.3s;
}

/* Active tab */
#profileTabs .nav-link.active,
#promoTabs .nav-link.active {
    color: #000000 !important;
    /* black for active tab */
    font-weight: bold;
    /* optional */
}


/* INFO TAB */
.nav-pills .nav-link {
    color: white;
    text-align: left;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
}

.nav-tabs {
    border-bottom: none;
    padding-bottom: 10px;
}

.nav-tabs .nav-link {
    border: 1px solid #5f5f5f;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    margin-right: 6px;
    padding: 7px;
    transition: all .3s;
    white-space: nowrap;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #fff;
    background-color: #ed2a00;
    border: 1px solid #ed2a00;
}

/* Target the SweetAlert2 confirm button */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: #ed2a00 !important;
    /* Bootstrap red */
    border-color: #ed2a00 !important;
}

/* Optional: hover effect */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover {
    background-color: #ed2a00 !important;
    /* Darker red on hover */
    border-color: #ed2a00 !important;
}

.was-validated .form-check-input:valid:checked,
.form-check-input.is-valid:checked {
    background-color: orange !important;
    /* change valid checked color to orange */
    border-color: orange !important;
    /* optional: change border too */
}

.header-bar {
    height: 64px;
    background-color: #101010;
    color: #fff;
}

.img-lang {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    z-index: 99;
}

#btn-lang:focus+.lang-menu,
.lang-menu:hover {
    display: block;
}

.btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .header-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem 1rem;
    }

    .header-account-section {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .balance-text {
        font-size: 0.85rem;
    }
}

.no-caret::after {
    display: none !important;
}

/* Style for the icon container (envelope) */
.inbox-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    /* Blue background */
    border-radius: 50%;
    /* Fully rounded corners for a circular button */
    width: 35px;
    /* Set the width of the icon container */
    height: 35px;
    /* Set the height of the icon container */
    color: white;
    /* Set the icon color to white */
    font-size: 1rem;
    /* Icon size (larger size for better visibility) */
    position: relative;
    /* To position the badge correctly */
    transition: background-color 0.3s ease;
    /* Smooth background color change */
}

.inbox-icon:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

/* Style the envelope icon */
.inbox-icon i {
    display: block;
    /* Ensure the icon is a block element */
    font-size: 1.1rem;
    /* Increase the size of the envelope icon */
}

/* Positioning and styling the unread message badge */
.message-badge-balance .badge {
    position: absolute;
    top: 0px !important;
    /* Adjust positioning for the badge */
    right: -20px !important;
    /* Adjust positioning for the badge */
    color: white;
    /* White text for the badge */
    font-size: 0.7rem;
    /* Font size of the badge */
    padding: 0.2rem 0.5rem;
    /* Padding inside the badge */
    border-radius: 50%;
    /* Make the badge circular */
    min-width: 12px;
    /* Set a minimum width for the badge */
    min-height: 12px;
    /* Set a minimum height for the badge */
    text-align: center;
    /* Center align text in the badge */
    line-height: 1.2;
    /* Adjust line height for vertical centering */
}

/* Adjust for smaller screen sizes (mobile responsiveness) */
@media (max-width: 768px) {
    .inbox-icon {
        width: 20px;
        /* Smaller icon for mobile */
        height: 20px;
        /* Smaller icon for mobile */
        font-size: 0.9rem;
    }
    
    .message-badge-balance .badge {
        font-size: 0.5rem;
        /* Smaller badge text on mobile */
        right: -16px !important;
        padding: 0.2rem 0.4rem;
        /* Adjust padding of the badge */
        min-width: 10px;
        /* Reduce badge size */
        min-height: 10px;
        /* Reduce badge size */
    }
}

/* Optionally for very small screens (extra mobile responsiveness) */
@media (max-width: 480px) {
    .inbox-icon {
        width: 20px;
        /* Even smaller icon for small screens */
        height: 20px;
        /* Even smaller icon for small screens */
        font-size: 0.8rem;
    }

    .inbox-icon i {
        font-size: 0.8rem;
        /* Further reduce icon size */
    }

    .message-badge-balance .badge {
        font-size: 0.4rem;
        /* Further reduce badge text */
        right: -16px !important;
        padding: 0.1rem 0.3rem;
        /* Even smaller padding for the badge */
        min-width: 9px;
        /* Smallest badge size */
        min-height: 9px;
        /* Smallest badge size */
    }
}

/* Target the calendar picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(100%) sepia(100%) saturate(100%) hue-rotate(0deg) brightness(1) contrast(1);
    background-color: yellow; /* Change the icon's background color */
}

.withdraw_modal_table thead {
    background-color: #111 !important;
    color: #fff;
}

/* Toggle button styling */
.toggle-banner-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(128, 128, 128, 0.5); 
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.toggle-banner-btn:hover {
    background: rgba(128, 128, 128, 0.8); 
}

/* Banner container */
.banner-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Banner animation - sliding and fading */
#bannerSlider {
    display: block;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 0; /* Start with a height of 0 */
    opacity: 0; /* Make it invisible by default */
}

/* When the banner is shown */
#bannerSlider.show {
    opacity: 1; /* Make it visible */
    max-height: 1000px; /* Adjust the max-height */
}

/* Mobile view: Show with max-height for mobile */
@media (max-width: 768px) {
    #bannerSlider.show {
        max-height: 300px; /* Limit to 300px in mobile view */
    }

    #bannerSlider.hide {
        max-height: 0; /* Collapse it in mobile view */
    }
}

/* Desktop view: Auto height based on content */
@media (min-width: 769px) {
    #bannerSlider.show {
        max-height: 1000px; /* Allow large max-height for desktop */
        height: auto; /* Ensure the height adjusts based on content */
    }

    #bannerSlider.hide {
        max-height: 0; /* Collapse it for desktop view */
    }
}

/* Ensure the icons are correctly toggled based on the banner visibility */
#toggleIconShow, #toggleIconHide {
    transition: opacity 0.3s ease;  /* Smooth opacity transition */
}

#toggleIconShow {
    display: inline;
}

#toggleIconHide {
    display: none;
}

/* When the banner is shown */
#bannerSlider.show + .toggle-banner-btn #toggleIconShow {
    display: none;
}

#bannerSlider.show + .toggle-banner-btn #toggleIconHide {
    display: inline;
}

/* When the banner is hidden */
#bannerSlider.hide + .toggle-banner-btn #toggleIconShow {
    display: inline;
}

#bannerSlider.hide + .toggle-banner-btn #toggleIconHide {
    display: none;
}

.copy-popup {
    position: absolute;
    background: #666;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 9999;
    transform: translateY(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Game card container */
.game-card-bs5 {
  position: relative;
}

/* NEW badge styling */
.new-badge {    
  font-size: 0.55rem;
  padding: 4px 8px;
  z-index: 1;
  background-color: #259f54 !important;
  color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.badge.position-relative {
    display: inline-block;
    padding-right: 1.6rem;  /* space for icon */
}

.hot-tag-icon {
    position: absolute;
    top: -2px;
    right: 2px;
    width: 20px;   /* desktop size */
    height: 20px;
    pointer-events: none;
}

/* Mobile view: smaller icon */
@media (max-width: 768px) {
    .hot-tag-icon {
        top: -7px;
        right: 2px;
        width: 40px;
        height: 40px;
    }
}

.marquee-viewport {
    width: calc(100% - 35px) !important; /* reduce width by 5px */
    overflow: hidden;
}

.none-scrollbar::-webkit-scrollbar {
    display: none;
}
.none-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Wrapper aligns the search to the right */
.game-search-wrapper {
    position: relative;
    width: 250px; /* default desktop width */
    max-width: 100%; /* prevent overflow on small screens */
    margin-left: auto; /* align to right */
}

/* Input field styling */
.game-search-input {
    width: 100%;
    padding: 0.375rem 2.5rem 0.375rem 1rem; /* space for right icon */
    border-radius: 9999px;
    border: 1px solid #444;
    background-color: #222;
    color: #eee;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out; /* smooth hover/focus effect */
    font-size: 0.9rem;
}

/* Placeholder styling */
.game-search-input::placeholder {
    color: #888;
    opacity: 1;
}

/* Focus state */
.game-search-input:focus {
    background-color: #333;
    border-color: #666;
    outline: none;
}

/* Search icon inside input */
.game-search-icon {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none; /* click passes through to input */
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Stack layout vertically on smaller screens */
    .tab-container {
        flex-direction: column;  /* put search bar below vendors */
        align-items: stretch;
    }

    #provider-section {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
    }

    .game-search-wrapper {
        width: 180px; /* smaller width on tablets */
        margin: 10px 0 0 auto; /* add space above, keep right aligned */
        order: 2; /* ensure it appears below vendor buttons */
    }

    .game-search-input {
        padding: 0.375rem 2rem 0.375rem 0.75rem;
        font-size: 0.85rem;
    }

    .game-search-icon {
        right: 0.6rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tab-container {
        flex-direction: column;
        align-items: stretch;
    }

    .game-search-wrapper {
        width: 100%; /* make full width for phones */
        margin: 10px 0 0 0; /* spacing above, no right margin */
        order: 2;
    }

    .game-search-input {
        padding: 0.35rem 1.8rem 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .game-search-icon {
        right: 0.5rem;
        font-size: 0.85rem;
    }
}

.grayscale {
    filter: grayscale(100%);
    opacity: 0.7; /* Optional: reduce opacity for extra effect */
}




