﻿/* CSS Variables */
:root {
    /* default text */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Kanit', 'Playfair Display', Georgia, serif;
    /* default wrapper width container */
    --wrapper-width-container: 1100px;


    --site-header-bg-color1: var(--bgvip01_site_header_bg_color1);
    --site-header-bg-color2: var(--bgvip01_site_header_bg_color2);
    --site-header-height: 60px;
    --site-header-shadow1: 0 6px 18px #00000080;
    --site-header-shadow2: 0 2px 6px #00000066;

    --site-menu-text-normal-color: var(--bgvip01_site_menu_text_normal_color);
    --site-menu-text-active-color: var(--bgvip01_site_menu_text_active_color);

    --site-sub-menu-text-normal-color: var(--bgvip01_site_sub_menu_text_normal_color);
    --site-sub-menu-text-active-color: var(--bgvip01_site_sub_menu_text_active_color);

    --btn-primary-color1: var(--bgvip01_btn_primary_color1);
    --btn-primary-color2: var(--bgvip01_btn_primary_color2);
    --btn-primary-color3: var(--bgvip01_btn_primary_color3);
    --btn-primary-gradient: linear-gradient(135deg, var(--btn-primary-color1) 0%, var(--btn-primary-color2) 50%, var(--btn-primary-color3) 100%);
    --btn-primary-shadow-active-color: var(--bgvip01_btn_primary_shadow_active_color);

    --btn-secondary-color1: var(--bgvip01_btn_secondary_color1);
    --btn-secondary-color2: var(--bgvip01_btn_secondary_color2);
    --btn-secondary-color3: var(--bgvip01_btn_secondary_color3);

    --btn-secondary-gradient: linear-gradient(135deg, var(--btn-secondary-color1) 0%, var(--btn-secondary-color2) 50%, var(--btn-secondary-color3) 100%);
    --btn-secondary-shadow-active-color: var(--bgvip01_btn_secondary_shadow_active_color);


    --card-bg-color: var(--bgvip01_card_bg_color);
    --card-border-primary-active: var(--bgvip01_card_border_primary_active);
    --card-shadow-primary-active: var(--bgvip01_card_shadow_primary_active);

    --card-border-secondary-active: var(--bgvip01_card_border_secondary_active);
    --card-border-secondary-normal: var(--bgvip01_card_border_secondary_normal);

    --panel-header-bg-color1: var(--bgvip01_panel_header_bg_color1);
    --panel-header-bg-color2: var(--bgvip01_panel_header_bg_color2);

    --panel-header-bg-color-gradient: linear-gradient(to bottom, var(--panel-header-bg-color1) 20%, var(--panel-header-bg-color2) 100%);

    --panel-body-bg-color1: var(--bgvip01_panel_body_bg_color1);
    --panel-body-bg-color2: var(--bgvip01_panel_body_bg_color2);

    --panel-body-bg-color-gradient: linear-gradient(to bottom, var(--panel-body-bg-color1) 20%, var(--panel-body-bg-color2) 100%);


    --footer-bg-color1: var(--bgvip01_footer_bg_color1);
    --footer-bg-color2: var(--bgvip01_footer_bg_color2);

    --site-text-foreground: var(--bgvip01_site_text_foreground);
    /* สี text หลัก ใช้ทั้งหน้า */
    --site-text-muted-foreground: var(--bgvip01_site_text_muted_foreground);
    /* สี text รอง ใช้ทั้งหน้า */
    --site-text-primary-title: var(--bgvip01_site_text_primary_title);

    --member-header-panal-height: 45px;

}

/* --- Site Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--site-header-height);

    background: linear-gradient(to bottom, var(--site-header-bg-color1) 85%, var(--site-header-bg-color2) 150%);
    border-bottom: 1px solid #141414;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--site-header-shadow1), var(--site-header-shadow2);
}

.site-header__container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-header__left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-header__logo-img {
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(2px 3px 6px black);
}

/* Center Section (Navigation) */
.site-header__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__link {
    text-decoration: none;
    color: var(--site-menu-text-normal-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.site-header__link:hover,
.site-header__link--active {
    color: var(--site-menu-text-active-color);
}

.site-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--site-menu-text-active-color);
    transition: width 0.3s ease;
}

.site-header__link:hover::after,
.site-header__link--active::after {
    width: 100%;
}


.site-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__btn {
    height: 36px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    /* Config for <a> tag usage */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-header__btn--login {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--btn-primary-color2);
    border-radius: 10px;
}

.site-header__btn--login:hover {
    background: #ffbf001a;
    box-shadow: 0 0 15px #ffbf0066;
}

.site-header__btn--register, .site-header__btn--member {
    background: var(--btn-primary-gradient);
    color: #000000;
    border-radius: 10px;
    position: relative;
    overflow: visible;
    /* To allow stars to show outside */
}



.site-header__btn--register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px #ffbf0099;
}

@media (max-width: 1200px) {
    .site-header__center {
        gap: 10px;
    }

    .site-header__horse {
        height: 40px;
    }
}

@media (max-width: 1024px) {
    .site-header__center {
        display: none;
    }
}

@media (max-width: 768px) {}

@media (max-width: 480px) {
    .site-header__btn {
        padding: 0 10px;
        font-size: 0.75rem;
    }
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    padding-top: var(--site-header-height);
    background-color: #0b0b0b;
    color: var(--site-text-foreground);
    font-family: var(--font-sans);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* for member page */
.main {
    position: relative
}

/* end member page */
/* --- Main Slider Architecture --- */

.main-slider {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: var(--background);
    user-select: none;
    -webkit-user-select: none;
    padding: 1em 0;
    padding-top: 1em;
    overflow-x: hidden;
}

/* Perspective Context */
.main-slider__container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    width: 100%;
    height: auto;
    perspective: 1500px;
}

/* Individual Slide */
.slide {
    grid-area: 1/1;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    transition: all 0.7s cubic-bezier(0.33, 1, 0.68, 1);

    /* Responsive Dimensions */
    width: 85vw;
    height: 26vh;
    /* Mobile height as requested */
}

@media (min-width: 768px) {
    .slide {
        width: min(75vw, 1100px);
        aspect-ratio: 8 / 3;
        height: auto;
    }
}

.slide-inner {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #ffffff14;
    box-shadow: 0 25px 60px -15px #000000b3, 0 10px 30px -20px #00000080;
    transition: border-color 0.5s, box-shadow 0.5s;
    background-color: var(--card-bg-color);

}

.slide-inner.focused {
    border-color: var(--card-border-primary-active);
    box-shadow: 0 0 12px var(--card-border-primary-active);
}

.slide-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    transition: transform 0.8s ease;
}

.slide:hover .slide-img {
    transform: scale(1.03);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0a0af2 0%, #0a0a0a33 60%, transparent 100%);
}

.slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s;
}

@media (min-width: 768px) {
    .slide-content {
        padding: 2.25rem;
        gap: 0;
    }
}

.slide-category {
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0em;
    color: var(--site-menu-text-active-color);
}

.slide-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--site-text-foreground);
}

@media (min-width: 768px) {
    .slide-title {
        font-size: 2.25rem;
    }
}

.slide-subtitle {
    max-width: 30rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--site-text-muted-foreground);
    opacity: 0.8;
}

/* --- Control System --- */

.main-slider__controls {
    position: relative;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    top: -5px;
}

.main-slider__counter {
    font-size: 0.65rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.1em;
    color: var(--site-text-muted-foreground);
    opacity: 0.7;
    position: relative;
    top: 6px;
    /* Slightly adjusted for mobile */
}

@media (min-width: 768px) {
    .main-slider__counter {
        font-size: 0.7rem;
        top: 10px;
    }
}

.main-slider__controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* Reduced gap for mobile */
}

@media (min-width: 768px) {
    .main-slider__controls-row {
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {

    #main-slider-btn-prev,
    #main-slider-btn-next {
        /* Mobile specific overrides */
        height: 1.5rem;
        width: 1.5rem;
    }
}


@media (min-width: 768px) {
    .nav-btn {
        height: 2.75rem;
        width: 2.75rem;
    }
}

.nav-btn svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 768px) {
    .nav-btn svg {
        width: 16px;
        height: 16px;
    }
}



.main-slider__indicators {
    display: flex;
    align-items: center;
    gap: 0.5em;
    position: relative;
    top: 14px;
    /* Tighter spacing for mobile */
}

@media (min-width: 768px) {
    .main-slider__indicators {
        gap: 0.5rem;
    }
}

.indicator-dot {
    height: 0.3rem;
    /* Slightly smaller dots */
    width: 0.3rem;
    border-radius: 9999px;
    background-color: #8c8c8c66;
    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    cursor: pointer;
    border: none;
    padding: 0;
}

@media (min-width: 768px) {
    .indicator-dot {
        height: 0.35rem;
        width: 0.35rem;
    }
}

.indicator-dot:hover {
    background-color: #8c8c8cb3;
}

.indicator-dot.active {
    width: 1.5rem;
    /* Shorter active line for mobile */
    background-color: var(--site-menu-text-active-color);
}

@media (min-width: 768px) {
    .indicator-dot.active {
        width: 2.25rem;
    }
}

.section-wrapper-container {
    max-width: var(--wrapper-width-container);
    overflow-x: hidden;
    margin: 0 auto;
}

/* =========================
   OPTIONAL PRESETS (disabled)
   ========================= */

/* 
   FULL-SCREEN MODE:
   .main-slider { height: 100vh; justify-content: center; padding: 0; }
   .main-slider__container { height: 100%; }
   .main-slider__controls { position: absolute; bottom: 2.5rem; }
*/

/* 
   ASPECT RATIO PRESETS (enable ONE at a time):
*/

/* 1:1 Square Preset:
   .slide { aspect-ratio: 1 / 1; height: auto; }
   @media (min-width: 768px) { .slide { width: 500px; } }
*/

/* 16:9 Cinematic Preset:
   .slide { aspect-ratio: 16 / 9; height: auto; }
*/

/* 21:9 Ultra-wide Preset:
   .slide { aspect-ratio: 21 / 9; height: auto; }
*/

/* --- List Games Provider 1 Grid --- */

.list-games-provider1 {
    padding: 1em 0;
    width: 100%;
}

.list-games-provider1__grid {
    display: grid;
    /* Responsive auto-fit grid */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    /* 8px fixed gap */
    width: 100%;
    padding: 10px;
}

.list-games-provider1__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    /* FIXED height as requested */
    text-decoration: none;
    cursor: pointer;
    /* Slow transition for base state/fade out */
    transition: all 1.8s ease-in-out;

    /* Base requirements with gradient border effect */
    background-image: linear-gradient(#2d2d2d, #2d2d2d),
        linear-gradient(to right, var(--btn-secondary-color2) 0%, var(--btn-secondary-color1) 43%, var(--btn-secondary-color1) 50%, var(--btn-secondary-color1) 58%, var(--btn-secondary-color2) 95%, var(--btn-secondary-color3) 100%);
    padding: 1px 3px !important;
    border: 1px solid transparent;
    border-radius: 2px;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    color: #f0d77900;
}

.list-games-provider1__item:hover {
    transition: all 0.2s ease;
    /* Fast override for hover interaction */
    transform: translateY(-3px);
    /* Golden Gradient Background on Hover */
    background-image: linear-gradient(#2d2d2d, #2d2d2d),
        linear-gradient(to right, var(--btn-secondary-color2) 0%, var(--btn-secondary-color1) 43%, var(--btn-secondary-color1) 50%, var(--btn-secondary-color1) 58%, var(--btn-secondary-color2) 95%, var(--btn-secondary-color3) 100%);

    /* Reveal the gradient by changing the inner background to transparent on hover */
    background-image: linear-gradient(to right, var(--btn-secondary-color3) 0%, var(--btn-secondary-color1) 43%, var(--btn-secondary-color1) 50%, var(--btn-secondary-color1) 58%, var(--btn-secondary-color3) 100%),
        linear-gradient(to right, var(--btn-secondary-color3) 0%, var(--btn-secondary-color1) 43%, var(--btn-secondary-color1) 50%, var(--btn-secondary-color1) 58%, var(--btn-secondary-color3)95%, var(--btn-secondary-color3) 100%);


    filter: brightness(1.1);
    box-shadow: 0 8px 20px;
}

/* JavaScript Triggered Slow Effect */
.list-games-provider1__item.active-effect {
    transform: translateY(-3px);
    background-image: linear-gradient(to right, var(--btn-secondary-color3) 0%, var(--btn-secondary-color1) 43%, var(--btn-secondary-color1) 50%, var(--btn-secondary-color1) 58%, var(--btn-secondary-color3) 100%),
        linear-gradient(to right, var(--btn-secondary-color3) 0%, var(--btn-secondary-color1) 43%, var(--btn-secondary-color1) 50%, var(--btn-secondary-color1) 58%, var(--btn-secondary-color3)95%, var(--btn-secondary-color3) 100%);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px;
    transition: all 1.5s ease-in-out;
}

.list-games-provider1__item.active-effect .list-games-provider1__img {
    filter: brightness(0);
    transform: scale(1.1);
    /* Faster zoom and color change for the logo */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.list-games-provider1__item:focus-visible {
    outline: 2px solid var(--btn-secondary-color1);
    outline-offset: 2px;
}

.list-games-provider1__img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: 26px;
    /* Maintain visual consistency for logos within 48px height */
    pointer-events: none;
    display: block;
    /* Premium Gold Filter: Converts colorful/black logos to a refined golden tone */
    filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(0.9);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.list-games-provider1__item:hover .list-games-provider1__img {
    /* Change logo to black/dark on golden background for readability */
    filter: brightness(0);
    transform: scale(1.1);
}

.list-games-provider1__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 1024px) {
    .list-games-provider1__grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .list-games-provider1 {
        padding: 1rem 0;
    }

    .list-games-provider1__grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.375rem;
        /* 6px gap */
    }
}

@media (max-width: 480px) {
    .list-games-provider1__grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 0.25rem;
        /* 4px gap */
    }
}

/* --- Live Casino Providers (Fixed Hover & Responsive) --- */

.live-casino-providers {
    padding: 1.5rem 0;
    width: 100%;
    overflow: hidden;
    /* Fix: Prevent scrollbars from inner transforms/shadows */
}

.live-casino-providers__header {
    margin-bottom: 0;
    padding: 0 15px;
}

.live-casino-providers__title {
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;

    /* Golden Metallic Gradient Effect */
    background: linear-gradient(to bottom,
            #fcebb6 0%,
            #b3841b 45%,
            #fcebb6 50%,
            #9c6d0f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* 3D Drop Shadow like in the image */
    filter: drop-shadow(0 2px 2px);

    border-left: none;
    padding-left: 0;
}

.live-casino-providers__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 15px;
    /* Added padding to accommodate hover life & shadow */
    width: 100%;
    box-sizing: border-box;
}

.live-casino-providers__item {
    text-decoration: none;
    display: block;
    outline: none;
}

.live-casino-providers__card {
    position: relative;
    aspect-ratio: 200 / 265;
    overflow: hidden;
    border-radius: 12px;
    background-color: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px -1px #00000033;
    will-change: transform;

    /* Premium Golden Gradient Border */
    border: 1.5px solid transparent;
    background-image: linear-gradient(#1a1a1a, #1a1a1a),
        linear-gradient(to bottom right, #c99f36 0%, #fae488 50%, #b3841b 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.live-casino-providers__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: transform 0.6s ease;
}

.live-casino-providers__overlay {
    position: absolute;
    inset: 0;
    background: #000000a6;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.live-casino-providers__btn {
    background: linear-gradient(to bottom, var(--btn-secondary-color1) 0%, var(--btn-secondary-color2) 50%, var(--btn-secondary-color3) 100%);
    color: #000000;
    font-weight: 700;
    padding: 0.6rem 1.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    transform: translateY(15px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover States - Fixed scrollbar by using container padding and overflow hidden */
.live-casino-providers__item:hover .live-casino-providers__card {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px #000000a6;
}

.live-casino-providers__item:hover .live-casino-providers__img {
    transform: scale(1.1);
}

.live-casino-providers__item:hover .live-casino-providers__overlay {
    opacity: 1;
}

.live-casino-providers__item:hover .live-casino-providers__btn {
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .live-casino-providers__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .live-casino-providers__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .live-casino-providers__title {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .live-casino-providers {
        padding: 1rem 0;
    }

    .live-casino-providers__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .live-casino-providers__title {
        font-size: 1.15rem;
    }
}

.contact-box {
    position: fixed;
    top: 30%;
    right: 0;
    transform: translateY(-50%) translateX(calc(100% - 45px));
    /* Only tab visible initially */
    width: 260px;
    z-index: 9999;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-box.active,
.contact-box:hover {
    transform: translateY(-50%) translateX(0);
}

.contact-box__side {
    width: 45px;
    height: 162px;
    background: var(--btn-secondary-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    border-radius: 10px 0 0 10px;

    box-shadow: 0 12px 48px #000000cc, 0 4px 16px #00000099, 0 0 0 1px #ffffff26 inset, 0 2px 4px #ffffff1a inset;
}


.contact-box__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.contact-box__agent-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    /* Make it black to match the theme */
}

.contact-box__tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
}

.contact-box__detail {
    flex: 1;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #b3841b;
}

.contact-box__info {
    position: relative;
    padding: 15px 20px;
    background: var(--btn-secondary-gradient);
    text-align: center;
}

.contact-box__head {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111;
    line-height: 1;
    margin: 0;
}

.contact-box__subtext {
    font-size: 0.8rem;
    color: #222;
    font-weight: 700;
    margin-top: 2px;
}


.contact-box__list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #0d0d0d;
    border-bottom: 3px solid #d4af37;
}

.contact-box__item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #eee;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-box__item:hover {
    background: #252525;
    transform: translateX(-5px);
    border-color: #d4af37;
    color: #fff;
}

.contact-box__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .contact-box {
        width: 280px;
    }


}

/* --- Game Layout Section --- */
.game-layout {
    display: flex;
    gap: 0;
    padding: 1em 0;
    min-height: 600px;
    padding-top: 0;
}

.side-menu-main {
    flex: 0 0 100px;
    background: var(--panel-header-bg-color-gradient);
    border-radius: 15px 0 0 15px;
    padding: 10px 5px;
    border: 1px solid #333;
    border-right: none;
    transition: flex-basis 0.3s ease;
    position: relative;
    box-shadow: 3px 0px 10px -4px #000000f5;
}

@media (max-width: 768px) {
    .side-menu-main {
        flex: 0 0 70px;
        /* Reduced width for mobile */
        padding: 10px 2px;
    }
}

.side-menu-main__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 800px;
    overflow-y: auto;
    padding: 0px 5px 15px 0;
    /* Add top/bottom padding for fade */

    /* Scroll Fade Effect */
    /* -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%); */
}

@media (max-width: 768px) {
    .side-menu-main__items {
        gap: 8px;
    }

    .side-menu__item {
        padding: 8px 2px;
        /* Smaller padding for mobile items */
        border-radius: 8px;
    }

    .side-menu__title {

        /* Hide title on very small screens if needed, or adjust size */
        font-size: 0.4rem;
        /* Smaller font if kept */
    }
}

/* Custom Scrollbar for Side Menu */
.side-menu-main__items::-webkit-scrollbar {
    width: 3px;
}

.side-menu-main__items::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.side-menu__item {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    border: 1px solid var(--card-border-secondary-normal);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 5px;
    cursor: pointer;
}

.side-menu__item.active {
    background: var(--btn-secondary-gradient) !important;
    border: 1px solid var(--card-border-secondary-active);
}

.side-menu__item.active>.side-menu__icon img {
    filter: invert(1) grayscale(1) brightness(0.3);
}

.side-menu__item.active>.side-menu__title {
    color: var(--site-sub-menu-text-active-color);
    font-weight: 500;

}

.side-menu__item:hover {
    background: #222;
    border-color: #fcebb6;
}

.side-menu__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.side-menu__title {
    color: var(--site-sub-menu-text-normal-color);
    font-size: 0.7em;
    font-weight: 300;
    text-align: center;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Game Panel Styles */
.game-panel {
    flex: 1;
    background: var(--panel-body-bg-color-gradient);
    border-radius: 0 15px 15px 0;
    border: 1px solid #333;
    padding: 20px;
    min-height: 500px;
}

.game-panel__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
}

.game-panel__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    border: 1px dashed #444;
    border-radius: 10px;
    color: #888;
}

.game-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.game-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Game Grid Styles --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
}

@media (max-width: 480px) {
    .game-grid {
        /* Enforce minimum 2 columns on small mobile screens */
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: max-content;
        /* Ensure rows respect content height */
        gap: 12px;
        /* Increase gap slightly just in case */

        /* Mobile Scroll Logic */
        /* height calculation: 100vh - (Header + Padding + BottomNav space + Safety Margin) */
        max-height: calc(100vh - 160px);
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling for iOS */

        /* Visual Tweaks */
        padding-bottom: 90px;
        /* More padding for bottom nav space */
        padding-right: 5px;
        /* Prevent scrollbar overlap content */
    }

    /* Black-Gold Scrollbar */
    .game-grid::-webkit-scrollbar {
        width: 4px;
        /* Thin scrollbar */
    }

    .game-grid::-webkit-scrollbar-track {
        background: #111;
        /* Black track */
        border-radius: 4px;
    }

    .game-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #b8860b, #ffd700);
        /* Gold gradient thumb */
        border-radius: 4px;
    }

    .game-grid .game-card {
        aspect-ratio: auto !important;
        /* Allow natural height for portrait images */
        height: auto !important;
        min-height: 120px;
        /* Min height to prevent collapse */
    }

    .game-grid .game-card__img {
        position: relative;
        /* Ensure normal flow inside card */
        height: auto !important;
        width: 100%;
        object-fit: contain;
        /* Show full image */
    }
}
@media (max-width: 680px) { 
    .game-grid .game-card__img {
        position: relative;
        /* Ensure normal flow inside card */
        height: auto !important;
        width: 100%;
        object-fit: contain;
        /* Show full image */
    }
}

@media (max-width: 768px) {
     .game-grid::-webkit-scrollbar-track {
        background: #111;
        /* Black track */
        border-radius: 4px;
    }

    .game-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #b8860b, #ffd700);
        /* Gold gradient thumb */
        border-radius: 4px;
    }
}
.game-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #111;
    border: 1px solid var(--card-border-secondary-normal);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Wide layout for Lotto Tab (4:3 images) */
#tab-lotto .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

#tab-lotto .game-card {
    aspect-ratio: 4 / 3;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-border-secondary-active);
    box-shadow: 0 10px 20px #00000080;
}

.game-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card__img {
    transform: scale(1.1);
}

.game-card__overlay {
    position: absolute;
    inset: 0;
    background: #00000099;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

.game-card__play-btn {
    background: linear-gradient(180deg, var(--btn-secondary-color1) 0%, var(--btn-secondary-color2) 50%, var(--btn-secondary-color3) 100%);
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid #fcebb6;
    box-shadow: 0 4px 10px;
    pointer-events: none;
}



/* --- Promotions Section --- */
.promo-section {
    padding: 2rem 15px;
    width: 100%;
}

.promo-section__header {
    margin-bottom: 0;
    padding: 0 5px;
}

.promo-section__title {
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(to bottom, #fcebb6 0%, #b3841b 45%, #fcebb6 50%, #9c6d0f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 2px);
    margin: 0;
}

@media (max-width: 768px) {
    .promo-section__title {
        font-size: 1.3rem;
    }
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    padding: 1em 0;
}

@media (min-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

.promo-card {
    position: relative;
    aspect-ratio: 330 / 415;
    background-color: #121212;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border-secondary-normal);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover, .promo-card.active {
    transform: translateY(-5px);
    border-color: var(--card-border-primary-active);
    box-shadow: 0 10px 25px var(--card-shadow-primary-active);
}

.promo-card.active {
    animation: promoWobble 1.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes promoWobble {
    0% {
        transform: rotate(0deg) scale(1);
    }

    10% {
        transform: rotate(-2.5deg) scale(1.04);
    }

    20% {
        transform: rotate(2.5deg) scale(1.04);
    }

    30% {
        transform: rotate(-1.8deg) scale(1.03);
    }

    45% {
        transform: rotate(1.4deg) scale(1.02);
    }

    60% {
        transform: rotate(-0.9deg) scale(1.01);
    }

    80% {
        transform: rotate(0.5deg) scale(1.005);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.promo-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-card:hover .promo-card__img {
    transform: scale(1.05);
}

.promo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            0%,
            20%,
            50%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

@media (min-width: 768px) {
    .promo-card__overlay {
        padding: 18px;
    }
}

.promo-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.promo-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .promo-card__title {
        font-size: 1.25rem;
    }
}

.promo-card__badge {
    width: 100%;
    padding: 6px 4px;
    background: linear-gradient(to bottom, #fdf5d2 0%, #d4af37 50%, #9c6d0f 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px;
    border: 1px solid;
}

@media (min-width: 768px) {
    .promo-card__badge {
        font-size: 0.85rem;
        padding: 8px 6px;
    }
}

/* Type 2 Specialty (Split Info) */
.promo-card__split-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.promo-card__split-divider {
    width: 1px;
    height: 25px;
    background: #ffffff4d;
}

.promo-card__bar {
    width: 100%;
    padding: 2px;
    border: 1px solid var(--card-border-secondary-normal);
    background: #000000b3;
    color: #f7e7ce;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 5px;
    border-radius: 2px;
    height: 40px;
    justify-content: center;
    align-items: center;
    display: flex;
}

/* Badge Variations */
.badge--red {
    background: linear-gradient(180deg, #ff4d4d 0%, #990000 100%);
    color: #fff;
}

.badge--purple {
    background: linear-gradient(180deg, #d35af7 0%, #6b21a8 100%);
    color: #fff;
}

/* CTA Button */
.promo-card__btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to bottom, var(--btn-secondary-color1) 0%, var(--btn-secondary-color2) 50%, var(--btn-secondary-color3) 100%);
    color: #000;
    text-decoration: none;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--btn-secondary-shadow-active-color);
    border: 0.5px solid var(--btn-secondary-shadow-active-color);
}

.promo-card__btn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .promo-card__btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* --- Promotion Flash Effect --- */
.promo-flash {
    position: relative;
    border-radius: 20px;
}

.promo-flash::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: bgFlashGlow 1.2s ease-out 2;
}

.promo-flash::after {
    content: '';
    position: absolute;
    inset: -5px;
    pointer-events: none;
    z-index: 10;
    border-radius: 20px;
    border: 2px solid;
    animation: borderFlash 1.2s ease-out 2;
}

@keyframes bgFlashGlow {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

@keyframes borderFlash {
    0% {
        border-color: #FCEBB600;
        box-shadow: 0 0 0 #FCEBB600;
    }

    50% {
        border-color: #FCEBB699;
        box-shadow: 0 0 40px #FCEBB666;
    }

    100% {
        border-color: #FCEBB600;
        box-shadow: 0 0 0 #FCEBB600;
    }
}

/* --- Dual Ticker Testimonial Slider --- */
.dual-ticker-slide {
    padding: 1em 0;
    background: #0D0D0D;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.dual-ticker-slide__header {
    text-align: center;
    margin-bottom: 1.5em;
}

.dual-ticker-slide__title {
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #FCEBB6 0%, #D4AF37 45%, #FCEBB6 50%, #9C6D0F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 4px #000000);
}

.dual-ticker-slide__wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Fade Edges Mask */
.dual-ticker-slide--overlay-left,
.dual-ticker-slide--overlay-right {
    content: '';
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.dual-ticker-slide--overlay-left {
    left: 0;
    background: linear-gradient(to right, #0D0D0DFF 0%, #0D0D0D00 100%);
}

.dual-ticker-slide--overlay-right {
    right: 0;
    background: linear-gradient(to left, #0D0D0DFF 0%, #0D0D0D00 100%);
}

.dual-ticker-slide__row {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.dual-ticker-slide__track {
    display: flex;
    width: max-content;
    gap: 15px;
    padding: 5px 0;
    will-change: transform;
}

/* Animations using translate3d for performance */
.dual-ticker-slide__row--left .dual-ticker-slide__track {
    animation: marqueeLeft 45s linear infinite;
}

.dual-ticker-slide__row--right .dual-ticker-slide__track {
    animation: marqueeRight 45s linear infinite;
}

.dual-ticker-slide__row.is-paused .dual-ticker-slide__track {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes marqueeRight {
    from {
        transform: translate3d(-50%, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

.dual-ticker-slide__item {
    width: 320px;
    background: var(--card-bg-color);
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    position: relative;
}

.dual-ticker-slide__item:hover,
.dual-ticker-slide__item:focus-visible {
    transform: translateY(-5px) scale(1.02);
    border-color: #D4AF37;
    background: #1A1A1A;
    box-shadow: 0 10px 25px #000000CC, 0 0 15px #D4AF3733;
    z-index: 2;
}

.dual-ticker-slide__user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dual-ticker-slide__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #D4AF37;
    object-fit: contain;
    background: #222222;
}

.dual-ticker-slide__info {
    display: flex;
    flex-direction: column;
}

.dual-ticker-slide__name {
    color: var(--site-text-foreground);
    font-size: 0.95rem;
    font-weight: 700;
}

.dual-ticker-slide__handle {
    color: var(--site-text-primary-title);
    font-size: 0.8rem;
    font-weight: 600;
}

.dual-ticker-slide__comment {
    color: var(--site-text-muted-foreground);
    font-size: 0.85rem;
    line-height: 1.5;
    font-style: italic;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .dual-ticker-slide__track {
        animation-duration: 150s !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dual-ticker-slide__item {
        width: 320px;
        padding: 20px;
    }

    .dual-ticker-slide__title {
        font-size: 1.75rem;
    }
}

/* --- Site Footer --- */
.site-footer {
    background: var(--footer-bg-color2);
    color: #BBBBBB;
    border-top: 2px solid #222222;
}

/* Footer Top: Navigation */
.site-footer--top {
    background: var(--footer-bg-color1);
    padding: 1.25rem 0;
    border-bottom: 1px solid #333333;
}

.site-footer__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.site-footer__nav-link {
    color: var(--site-menu-text-normal-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .site-footer--top {
        padding: 0.5em 0;
    }

    .site-footer__nav {
        gap: 0.5em;
    }

    .site-footer__nav-link {
        padding: 0 1em;
    }
}


.site-footer__nav-link:hover {
    color: var(--site-menu-text-active-color) !important;
}

/* Footer Middle: Content Grid */
.site-footer--middle {
    padding: 4rem 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.site-footer__logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.site-footer__brand {
    max-width: 95%;
    margin: 0 auto;
}

.site-footer__brand-name {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -2px;
    font-style: italic;
    white-space: nowrap;
}

.site-footer__brand-tagline {
    color: var(--site-text-primary-title);
    font-size: 1.1rem;
    font-weight: 700;
    border-left: 1px solid #444444;
    padding-left: 1.5rem;
}

.site-footer__description {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

.site-footer__description .highlight {
    color: var(--site-text-primary-title);
    font-weight: 700;
    text-decoration: underline;
}

.site-footer__description .read-more {
    color: var(--site-text-primary-title);
    text-decoration: none;
    font-weight: 600;
}

/* Partnership Section */
.site-footer__partnership {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-status {
    color: var(--site-text-primary-title);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.partner-visual {
    margin-bottom: 1.5rem;
    background: radial-gradient(circle, #222222 0%, transparent 70%);
    padding: 20px;
    border-radius: 50%;
}

.partner-logo {
    width: 120px;
    /* Reduced for layout */
    height: auto;
    filter: drop-shadow(0 0 10px var(--card-shadow-primary-active));
    transform: scale(1.6);
}

.partner-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-name {
    color: var(--site-text-foreground);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.partner-period {
    color: #999999;
    font-size: 0.9rem;
}

/* Footer Bottom */
.site-footer--bottom {
    padding: 2rem 0;
    border-top: 1px solid #222222;
}

.site-footer__bottom-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .site-footer__bottom-flex {
        flex-direction: row;
        justify-content: space-between;
    }
}

.site-footer__copyright {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.age-limit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid #ef4444;
    border-radius: 50%;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 800;
}

.site-footer__payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.payment-icon {
    width: 38px;
    height: 38px;
    background-color: #222222;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #333333;
}

/* Placeholder for specific icons until they are provided */
.payment-icon::before {
    font-size: 0.7rem;
    font-weight: 800;
    color: #FFFFFF;
}

.payment-icon.btc::before {
    content: "โฟ";
    color: #F7931A;
}

.payment-icon.eth::before {
    content: "ฮ";
    color: #627EEA;
}

.payment-icon.usdt::before {
    content: "โฎ";
    color: #26A17B;
}

.payment-icon.qr {
    width: 60px;
    border-radius: 4px;
}

.payment-icon.qr::before {
    content: "THAI QR";
    font-size: 0.6rem;
}

.payment-icon.truemoney {
    width: 80px;
    border-radius: 4px;
    background: #FF5C00;
}

.payment-icon.truemoney::before {
    content: "TrueMoney";
    font-size: 0.6rem;
}

.payment-icon.bank {
    width: 100px;
    border-radius: 4px;
}

.payment-icon.bank::before {
    content: "Bank Deposit";
    font-size: 0.6rem;
}

/* ===================================
   Bottom Navbar
   =================================== */

.bottom-navbar {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 640px;
    z-index: 1000;
}

.bottom-navbar__container {
    background: linear-gradient(360deg, #000000 0%, #2d2d2da8 100%);
    border-top-left-radius: 5em;
    border-top-right-radius: 5em;
    border-bottom-right-radius: 10em;
    border-bottom-left-radius: 10em;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 12px 48px #000000cc,
        0 4px 16px #00000099,
        0 0 0 1px #ffffff26 inset,
        0 2px 4px #ffffff1a inset;
    backdrop-filter: blur(10px);
    height: 72px;
}

.bottom-navbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
    text-decoration: none;
    color: var(--site-menu-text-normal-color);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
}

.bottom-navbar__item:hover {
    color: #FFBF00;
    /* background: #ffbf001a; */
}

.bottom-navbar__item:hover .bottom-navbar__icon {
    transform: translateY(-4px);
}

.bottom-navbar__icon {
    width: 55px;
    height: 55px;
    transition: transform 0.3s ease;
    margin-top: -8px;
}

.bottom-navbar__label {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Center Hexagon Button */
.bottom-navbar__item--center {
    position: relative;
    padding: 0;
    margin-top: -30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bottom-navbar__hexagon {
    width: 70px;
    height: 70px;
    background: var(--btn-primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--card-shadow-primary-active),
        0 0 0 3px var(--card-shadow-primary-active);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #5c5c5cd6;
}

.bottom-navbar__item--center:hover .bottom-navbar__hexagon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px var(--btn-primary-shadow-active-color),
        0 0 0 3px #ffffff33;
}

.bottom-navbar__hexagon-icon {
    width: 32px;
    height: 32px;
    stroke: #000000;
    color: #000000;
}

.bottom-navbar__item--center .bottom-navbar__label {
    color: var(--site-menu-text-active-color);
    font-weight: 600;
    margin-top: 2px;
}

/* Active State */
.bottom-navbar__item.active {
    color: var(--site-menu-text-active-color);
}

.bottom-navbar__item.active .bottom-navbar__icon {
    color: var(--site-menu-text-active-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bottom-navbar {
        width: 98%;
    }

    .bottom-navbar__container {
        padding: 10px 15px;
    }

    .bottom-navbar__item {
        padding: 6px 8px;
    }

    .bottom-navbar__label {
        font-size: 0.7rem;
    }

    .bottom-navbar__hexagon {
        width: 60px;
        height: 60px;
    }

    .bottom-navbar__hexagon-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .bottom-navbar__container {
        padding: 8px 10px;
    }

    .bottom-navbar__item {
        padding: 4px 6px;
        gap: 2px;
    }

    .bottom-navbar__icon {
        width: 42px;
        height: 42px;
    }

    .bottom-navbar__label {
        font-size: 0.65rem;
    }

    .bottom-navbar__hexagon {
        width: 55px;
        height: 55px;
    }

    .bottom-navbar__hexagon-text {
        font-size: 0.85rem;
    }
}




/* ======================================================================= */

/* MEMBER HEADER ON SITE-HEADER SHELL */
.site-header {
    transition: transform 0.8s ease-in-out;
}

.site-header.fullscreen {
    transform: translateY(-100%);
}

.site-header.fullscreen.show-ingame {
    transform: translateY(0);
}

.sub-page.fullscreen {
    padding-top: 0;
}

.site-header__btn--member {
    border-radius: 2em;
}

.site-header__member-profile-icon {
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header__btn--member {
    padding: 0 5px;
    min-width: 160px;
    justify-content: space-around;
    overflow: hidden;
}

.site-header__member-username {
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    /* บังคับไม่ให้ขึ้นบรรทัดใหม่ */
    overflow: hidden;
    /* ซ่อนข้อความที่ล้นขอบ */
    text-overflow: ellipsis;
    /* ใส่จุดไข่ปลาเมื่อข้อความยาวเกิน */

}

.site-header__member-money {
    font-weight: 400;
    white-space: nowrap;
    /* บังคับไม่ให้ขึ้นบรรทัดใหม่ */
    overflow: hidden;
    /* ซ่อนข้อความที่ล้นขอบ */
    text-overflow: ellipsis;
    /* ใส่จุดไข่ปลาเมื่อข้อความยาวเกิน */
}

.sidemenu-right-backdrop.active {
    background: #000000b5;
    display: flex;
}

.sidemenu-right-backdrop {
    display: none;
    position: fixed;
    z-index: 1501;
    user-select: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


.sidemenu-right-container {
    min-width: 260px;
    border-radius: 20px 0 0 20px;
    background: var(--panel-body-bg-color-gradient);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    position: fixed;
    user-select: none;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    transform: translateX(110%);
    transition: all 0.3s cubic-bezier(1, .06, .42, 1.01);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2em;
}

.sidemenu-right-container.active {
    display: flex;
    user-select: auto;
    opacity: 1;
    transform: translateX(0);
}

.sidemenu-right-container-close {
    background: transparent;
    outline: none;
    border: none;
    font-size: 1em;
    color: #fff;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
}


.sidemenu-right-container>.user-icon {
    width: 4em;
}

.sidemenu-right-container>.user-icon>.ic {
    max-width: 100%;
    object-fit: contain;
}

.sidemenu-right-container>.user-username {
    color: #fff;
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 0.5em;
}

.sidemenu-right-container>.user-money {
    width: 80%;
    height: 35px;
    background: #464646;
    border-radius: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1em;
}

.sidemenu-right-container>.credit-latest-update {
    color: #dadada;
    margin: 0.25em auto 0.5em auto;
}

.sidemenu-right-container>.user-money .ic {
    height: 90%;
    padding-left: 4px;
    object-fit: contain;
}

.sidemenu-right-container>.user-money .txt {
    font-weight: 400;
    color: #FFC107;
}

.sidemenu-right-container>.user-money .after-txt {
    font-size: 1.3em;
    font-weight: bolder;
    color: #fff;
    width: 50px;
}

.sidemenu-right-container>.user-money .after-txt>.ic {
    object-fit: contain;
    width: 28px;
}

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

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

.after-txt {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 1;
    transform-origin: 50% 50%;
}

.after-txt.active {
    animation: rotate360 0.6s linear;
}

.sidemenu-right-link-item {
    margin-bottom: .9rem;
    border-radius: 14px;
    background: var(--card-bg-color);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    height: 44px;
    width: 80%;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidemenu-right-link-item>.ic {
    height: 90%;
    width: 30px;
    object-fit: contain;
    margin: 0 1em;
}

.sidemenu-right-link-item>.txt {
    color: #fff;
    font-size: 0.9em;
}

.sidemenu-right-link-item.logout {
    background: #5e3030;
}

.footer_tags>.tagslist {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 0;
}

.tagslist {
    display: flex;
}
.taglist_item {
    background: var(--footer-tag-bg);
    padding: 0.25em 1em;
    border-radius: 2em;
    color: var(--footer-txt-subtitle-color);
    height: fit-content;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    width: fit-content;
}

.taglist_item>.taglink {
    font-size: 0.9em;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.taglist_item>.taglink:hover {
    color: var(--footer-txt-subtitle-color);
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}


/* SITE HEADER THEME BY CONFIG VARIABLES */