* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            padding-bottom: 50px;
            background-color: #f8f9fa;
        }

        .header {
            background-color: #000;
            background-image: url('../Photo/eree.png');
            background-size: 100% 100%;
            background-repeat: no-repeat;
            background-position: center;
            padding: 20px;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
            min-height: 200px;
        }

        .round-frame {
            background: linear-gradient(90deg, #e74c3c, #9b59b6);
            padding: 15px 20px;
            text-align: center;
            margin: 10px auto;
            border-radius: 50px;
            display: inline-flex;
            width: auto;
            height: 40px;
            align-items: center;
            justify-content: center;
        }


        .alert-banner {
            background: #fff9f2;
            color: rgb(179, 111, 110);
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border-radius: 8px;
            margin: 10px;
        }

        .alert-banner .speaker-icon {
            width: 15px;
            height: 15px;
            background: #e74c3c !important;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white !important;
            font-weight: bold;
            font-size: 15px;
            transform: none !important;
            border: none !important;
            outline: none !important;
        }
        

        .nav-tabs {
            background: white;
            display: flex;
            border-bottom: 1px solid #eee;
            width: 100%;
        }

        .nav-tab {
            flex: 1;
            padding: 12px 8px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            color: #666;
            font-size: 14px;
            text-align: center;
            line-height: 1.3;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 90px;
            transition: all 0.3s ease;
        }

        .nav-tab:hover {
            background: #f8f9fa;
        }
        
        .nav-tab.active {
            color: #007bff;
            border-bottom-color: #007bff;
            background: #f8f9fa;
        }

        .welfare-container {
            padding: 0px 10px 0px 10px;
            background: white;
            margin: 0;
            border-radius: 15px;
        }

        .time-settings-bar {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            background: white;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            width: 100%;
            transition: all 0.3s ease;
            gap: 0px;
            padding-left: 0px;
            flex-wrap: nowrap;
        }



        @media (max-width: 767px) {
            .time-settings-bar {
                flex-direction: row !important;
                gap: 10px !important;
                align-items: flex-start !important;
            }
            
            .time-left, .time-right {
                flex: 1 !important;
                width: auto !important;
                justify-content: flex-start !important;
            }
        }

        .time-left, .time-right {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }
        
        .time-label {
            font-size: 17px;
            color: #666;
            margin-bottom: 0px;
            font-weight: bold;
            text-align: left;
        }
        
        .time-value {
            font-size: 17px;
            color: #333;
            font-weight: bold;
        }
        
        .time-label-text {
            color: #333;
            font-weight: bold;
        }
        
        .time-number {
            color: #e74c3c;
            font-weight: normal;
        }

        .closed-text {
            color: #e74c3c;
            font-weight: normal;
        }

        .black-text {
            color: #000;
        }

        .time-value {
            font-size: 17px;
            font-weight: normal;
            color: #e74c3c;
        }

        .time-value.closed {
            color: #e74c3c;
        }

        .round-label {
            color: rgb(255, 198, 100);
            font-size: 20px;
            font-weight: normal;
        }

        .content-section {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 10px 9px 0px 9px;
            margin: 0 0 15px 0;
            border: 1px solid #eee;
        }

        .content-row {
            display: flex;
            justify-content: space-between;
            gap: 20px;
        }

        .content-left, .content-right {
            flex: 1;
        }

        .vip-info {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            gap: 0;
            padding: 10px;
            border-radius: 8px;
        }

        .vip-col-1 {
            flex: 0 0 auto;
            width: auto;
        }

        .vip-col-2 {
            flex: 0 0 auto;
            width: auto;
            margin-left: 10px;
        }

        .vip-col-3 {
            flex: 1;
            text-align: right;
        }

        .news-text {
            font-size: 14px;
            color: #333;
            line-height: 1.4;
            margin-bottom: 10px;
            margin-top: -40px;
            border-radius: 8px;
            padding: 10px;
        }

        .pk-battle-section {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            min-height: 90px;
            position: relative;
            margin-top: -20px;
            justify-content: center;
            overflow: visible; /* อนุญาตให้แสดงเนื้อหาทั้งหมด */
            gap: 0px;
            flex-wrap: nowrap;
            padding: 0;
        }

        .pk-left-panel, .pk-right-panel {
            flex: 1;
            min-height: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            max-width: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 0;
            overflow: visible;
            flex-shrink: 0;
            padding: 0;
            margin: 0;
        }

        .pk-left-panel {
            background: url('/Photo/red.png');
            background-size: 100% 100%;
            background-position: center;
            background-repeat: no-repeat;
            min-height: 90px;
            border-radius: 0;
            padding: 0;
            margin: 0;
        }
        
        .pk-left-panel:hover {
            transform: scale(1.02);
        }

        .pk-right-panel {
            background: url('/Photo/blue.png');
            background-size: 100% 100%;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 0;
            padding: 0;
            margin: 0;
        }
        
        .pk-right-panel:hover {
            transform: scale(1.02);
        }

        .pk-center {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background: url('/Photo/pgk.png');
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            width: 68px;
            height: 68px;
            z-index: 10;
            margin: 0;
            padding: 0;
            pointer-events: none; /* ป้องกันการคลิก */
        }


        .vip-section {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            border: 1px solid #eee;
            position: relative;
        }

        .vip-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .vip-label {
            font-size: 21px;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 4px;
        }

        .vip-label.red {
            background: none;
            color: #e74c3c;
            font-weight: normal;
        }

        .vip-minimum-black {
            font-size: 15px;
            color: #000;
        }


        .vip-time {
            font-size: 14px;
            color: #666;
        }

        .vip-description {
            font-size: 14px;
            color: #333;
            line-height: 1.4;
            margin-bottom: 15px;
        }

        .pk-battle {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
        }

        .pk-left {
            flex: 1;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .pk-right {
            flex: 1;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        .pk-button {
            padding: 15px 25px;
            border-radius: 25px;
            color: white;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer;
            width: 120px;
            text-align: center;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .pk-button.red {
            background: white;
            color: #e74c3c;
            margin-left: 20px;
            margin-right: auto;
        }

        .pk-button.blue {
            background: white;
            color: #4a90e2;
            margin-right: 20px;
            margin-left: auto;
        }

        .pk-button:hover {
            transform: translateY(-2px);
        }
        
        .pk-button.red:hover {
            background: #f8f9fa;
            border-color: #e74c3c;
        }
        
        .pk-button.blue:hover {
            background: #f8f9fa;
            border-color: #4a90e2;
        }


        .support-icon {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 20px;
            opacity: 0.7;
        }


        .material-symbols-outlined {
            font-family: 'Material Symbols Outlined';
            font-weight: normal;
            font-style: normal;
            font-size: 15px;
            line-height: 1;
            letter-spacing: normal;
            text-transform: none;
            display: inline-block;
            white-space: nowrap;
            word-wrap: normal;
            direction: ltr;
            font-feature-settings: 'liga';
            -webkit-font-feature-settings: 'liga';
            -webkit-font-smoothing: antialiased;
            font-variation-settings:
                'FILL' 0,
                'wght' 400,
                  'GRAD' 0,
                'opsz' 20;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .modal-content {
            background: url('/Photo/vip new.png') no-repeat center center;
            background-size: 100% 100%;
            background-repeat: no-repeat;
            background-position: 0% 0%;
            margin: 0 auto;
            padding: 0;
            border-radius: 5px;
            width: 350px;
            max-width: 350px;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            overflow: hidden;
            height: auto;
            min-height: 500px;
        }

        .modal-header {
            background: none;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 0;
            position: relative;
            height: 120px;
            width: 100%;
            margin-top: 0;
            z-index: 1;
            pointer-events: none;
        }
        
        .close-btn {
            pointer-events: auto;
        }

        .modal-title {
            font-size: 18px;
            font-weight: normal;
            color: white;
            margin-top: -75px;
        }

        .close-btn {
            background: none;
            border: 2px solid #666;
            font-size: 16px;
            cursor: pointer;
            color: #666;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            right: 10px;
            top: 10px;
            z-index: 10;
            transition: all 0.3s ease;
        }
        
        .close-btn:hover {
            background: #666;
            color: white;
            transform: scale(1.1);
        }

        .team-selection {
            margin-bottom: 20px;
            padding: 0px 20px 20px 20px;
            margin-top: -70px;
        }

        .team-buttons {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            justify-content: center;
            margin-top: -40px;
            position: relative;
            z-index: 100;
            flex-wrap: nowrap;
            align-items: center;
        }

        .team-btn {
            padding: 10px;
            border: none;
            border-radius: 25px;
            background: #eee !important;
            color: #666 !important;
            font-size: 14px !important;
            font-weight: normal;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            z-index: 101;
            width: 83px;
            height: 29px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .team-btn:hover {
            opacity: 0.8;
        }

        .team-btn.active {
            background: #999 !important;
            color: white !important;
        }

        .team-btn.red.active {
            background: #ff1800 !important;
            color: white !important;
        }

        .team-btn.blue.active {
            background: #4a90e2 !important;
            color: white !important;
        }


        .balance-info {
            font-size: 14px;
            font-weight: normal;
            color: #666;
            margin-bottom: 10px;
            text-align: center;
        }

        .odds-info {
            font-size: 14px;
            font-weight: normal;
            color: #666;
            margin-bottom: 20px;
            margin-top: 10px;
            text-align: center;
            line-height: 2;
        }
        
        .number-black {
            color: #000;
        }

        .amount-section {
            margin-bottom: 20px;
            padding: 0 20px;
        }

        .amount-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            justify-content: center;
            margin-top: -20px;
        }

        .amount-btn {
            min-width: 40px;
            width: 40px;
            min-height: 40px;
            height: 40px;
            border: 1px solid #ddd;
            border-radius: 0px;
            background: #f7f4f4ee !important;
            color: #f6ad4a;
            font-size: 32px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            padding: 0;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }
        
        .amount-btn:hover {
            transform: scale(1.1);
        }
        
        .amount-btn img {
            filter: brightness(0) saturate(100%) invert(76%) sepia(52%) saturate(463%) hue-rotate(340deg) brightness(99%) contrast(95%);
            width: 40px;
            height: 40px;
        }
        
        .amount-btn i,
        .amount-btn .material-symbols-outlined {
            color: #f6ad4a;
            font-size: 32px;
        }

        .amount-input {
            flex: 0 0 auto;
            width: 180px;
            padding: 10px;
            border: none;
            border-radius: 8px;
            text-align: center;
            font-size: 14px;
            font-weight: normal;
            background: #eee !important;
            color: #565656;
            transition: all 0.3s ease;
        }
        
        .amount-input:focus {
            outline: none;
            transform: scale(1.02);
        }

        .quick-amounts {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
        }

        .quick-amount-btn {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 8px;
            background: #eee;
            color: #666;
            font-size: 14px;
            font-weight: normal;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .quick-amount-btn:hover {
            transform: translateY(-2px);
        }

        .quick-amount-btn.active {
            background: #f6ad4a !important;
            color: white !important;
        }

        .join-btn {
            width: 265px;
            height: 48px;
            margin: 30px auto 18px auto;
            padding: 15px;
            background: linear-gradient(-90deg, #ff5b3b, #ffa439);
            color: white;
            border: none;
            border-radius: 24px;
            font-size: 14px;
            font-weight: normal;
            cursor: pointer;
            transition: all 0.3s ease;
            display: block;
        }

        .join-btn:hover {
            transform: translateY(-2px);
        }

        .jackpot-btn {
            width: 265px;
            height: 48px;
            margin: 10px auto 18px auto;
            padding: 15px;
            background: linear-gradient(-90deg, #9b59b6, #e74c3c);
            color: white;
            border: none;
            border-radius: 24px;
            font-size: 14px;
            font-weight: normal;
            cursor: pointer;
            transition: all 0.3s ease;
            display: block;
        }

        .jackpot-btn:hover {
            transform: translateY(-2px);
        }

        @media (max-width: 480px) {
            .time-settings-bar {
                flex-direction: column;
                gap: 10px;
            }

            .vip-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .pk-battle {
                flex-direction: column;
                gap: 15px;
            }

            .pk-left, .pk-right {
                width: 100%;
            }
            
            .pk-battle-section {
                height: auto;
                min-height: 90px;
            }
            
            .pk-left-panel, .pk-right-panel {
                min-height: 90px;
            }
            
            .pk-center {
                width: 56px;
                height: 56px;
            }
        }

/* ---- ---- */

.footer-nav-loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    flex-direction: column;
}

.footer-nav-loading.is-visible {
    display: flex;
}

.footer-nav-loading__box {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav-loading__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196f3;
    border-right-color: #42a5f5;
    animation: footer-nav-spin 0.75s linear infinite;
    box-sizing: border-box;
}

.footer-nav-loading__logo {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
    background: transparent;
}

@keyframes footer-nav-spin {
    to { transform: rotate(360deg); }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    border-top: 1px solid #ccc;
    height: 50px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 8px;
    min-width: 60px;
    flex: 1;
}

.nav-item:hover {
    color: #333;
}

.nav-item.active {
    color: #e74c3c;
}

.nav-icon {
    font-size: 18px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-label {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 500;
}