     /* กำหนดสีสำหรับ Scrollbar */
        ::-webkit-scrollbar {
            width: 10px; /* ความกว้างของ scrollbar */
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1; /* สีพื้นหลังของ track */
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #6a49f2, #7556f3); /* สีม่วงไล่ระดับ */
            border-radius: 10px; /* มุมโค้งของ thumb */
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #6a49f2; /* สีเมื่อ hover */
        }
        /* Body Style */
        body.buddyP1-body {
            font-family: "Kanit", sans-serif;
            margin: 0;
            padding: 0;
            height: 200vh; /* เพียงเพื่อแสดงให้เห็นว่าปุ่มลอยอยู่ */
            background-color: #f4f4f9;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        /* Floating Button */
        .buddyP1-floating-btn {
            position: fixed;
            top: 10%;
            right: 20px;
            background-color: #2b2f33;
            color: white;
            padding: 15px 20px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.5s ease;
            z-index: 99998;
            opacity: 1; /* ปุ่มแสดงอยู่ */
        }

        .buddyP1-floating-btn.buddyP1-hidden {
            opacity: 0; /* ปุ่มซ่อน */
            pointer-events: none; /* ไม่ให้กดปุ่มได้เมื่อซ่อน */
        }

        /* Title with Lines */
        .buddyP1-title-with-lines {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 20px 0;
        }

        .buddyP1-title-with-lines::before,
        .buddyP1-title-with-lines::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #ddd;
            margin: 2px 10px;
        }

        .buddyP1-title-with-lines h3 {
            margin: 0;
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }

        /* Wallet Information */
        .buddyP1-wallet-info {
            margin-left: 15px;
        }

        .buddyP1-wallet-info h2 {
            margin: 0;
            font-size: 14px;
            color: #aaa;
        }

        .buddyP1-wallet-info p {
            margin: 0;
            font-size: 24px;
            font-weight: bold;
            color: #62c4f4;
        }

        /* Profile Image */
        .buddyP1-profile-img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .buddyP1-profile-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Hover Effect for Profile Image */
        .buddyP1-profile-img:hover {
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(255, 200, 0, 0.8);
        }

        /* Responsive Style for Mobile */
        @media screen and (max-width: 768px) {
            .buddyP1-sidebar {
                width: 100%;
            }

            .buddyP1-floating-btn {
                width: 60px;
                height: 60px;
                border-radius: 50%;
                padding: 0;
                justify-content: center;
                right: 20px;
            }

            .buddyP1-wallet-info {
                display: none;
            }

            .buddyP1-profile-img {
                width: 60px;
                height: 60px;
            }
        }

        /* Right Sidebar */
        .buddyP1-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 350px;
            height: 100%;
            background-color: white;
            box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
            transition: right 0.3s ease;
            padding: 20px;
            z-index: 999999;
        }

        .buddyP1-sidebar.buddyP1-open {
            right: 0;
        }

        .buddyP1-sidebar h2 {
            margin: 0;
            font-size: 18px;
        }

        /* Overlay */
        .buddyP1-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 5;
            display: none;
        }

        .buddyP1-overlay.buddyP1-active {
            display: block;
        }

        .buddyP1-wallet-box {
            background-color: #f5f5f5;
            padding: 15px;
            border: 1px solid #e0e0e0;
            margin-top: 10px;
            border-radius: 10px;
        }

        .buddyP1-wallet-box h3 {
            margin: 0;
            font-size: 16px;
            color: #555;
        }

        .buddyP1-wallet-box p {
            margin: 5px 0 0;
            font-size: 14px;
            font-weight: bold;
            color: #333;
        }

        .buddyP1-tab-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        .buddyP1-tab-buttons button {
            background-color: white;
            border: 1px solid #e0e0e0;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 10px;
            width: 48%;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .buddyP1-tab-buttons button.buddyP1-active {
            border-color: #6a0dad;
        }

        .buddyP1-tab-buttons button:hover {
            border-color: #6a0dad;
        }

        .buddyP1-tab-content {
            margin-top: 20px;
        }

        .buddyP1-tab-content form {
            display: none;
        }

        .buddyP1-tab-content form.buddyP1-active {
            display: block;
        }

        .buddyP1-form-group {
            margin-bottom: 15px;
        }

        .buddyP1-form-group label {
            display: block;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .buddyP1-form-group input[type="file"] {
            padding: 10px;
            font-size: 14px;
            width: 100%;
            border: 1px solid #e0e0e0;
            border-radius: 5px;
        }

        .buddyP1-form-group input[type="submit"] {
            background-color: #6a0dad;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
        }

        .buddyP1-form-group input[type="submit"]:hover {
            background-color: #5a0dad;
        }
    .qr-payment-section {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.qr-container {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 20px;
}

.qr-image {
    width: 200px;
    height: 220px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.bank-details {
    text-align: left;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

.bank-details p {
    margin: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.notification-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    animation: fadeIn 0.3s ease-in;
}

.btn.btn-close-top {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Live Stream Notification Integration Styles */
/* ปรับ z-index ให้ไม่ชนกับระบบเดิม */
.live-stream-overlay {
    z-index: 100000; /* สูงกว่าระบบอื่นๆ */
}

/* ป้องกันการชนกันระหว่าง Live Stream และ notification ระบบเดิม */
.live-stream-overlay ~ .notification-overlay {
    z-index: 99999;
}

/* ป้องกันการชนกันระหว่าง Live Stream และ sidebar */
.live-stream-overlay ~ .buddyP1-sidebar {
    z-index: 99998;
}

.live-stream-overlay ~ .buddyP1-overlay {
    z-index: 99997;
}

/* ใช้ font Kanit เหมือนเว็บไซต์ */
.live-stream-content {
    font-family: 'Kanit', sans-serif;
}

.live-stream-header h2 {
    font-family: 'Kanit', sans-serif;
}

/* ปรับปรุงการแสดงผลบน Mobile */
@media (max-width: 768px) {
    .live-stream-overlay {
        backdrop-filter: blur(3px); /* ลด blur บน mobile เพื่อประสิทธิภาพ */
    }
}

    .input-container {
        display: flex;
        align-items: center;
        border: 1px solid #c0c0c0;
        border-radius: 20px;
        overflow: hidden;
        width: 300px;
        background-color: #f9f9f9;
        margin-bottom: 10px;
    }

    .input-container input[type="number"] {
        border: none;
        padding: 10px;
        flex: 1;
        font-size: 16px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        outline: none;
        background-color: transparent;
    }

    .input-label {
        padding: 10px 15px;
        background-color: #f2f2f2;
        font-size: 16px;
        color: #333;
        border-left: 1px solid #c0c0c0;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .button-options {
        display: flex;
        gap: 10px;
    }

    .amount-button {
        padding: 5px 10px;
        font-size: 12px;
        border: 1px solid #c0c0c0;
        border-radius: 20px;
        background-color: white;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;
    }

    .amount-button.selected {
        background-color: #dad1ff;
        color: #000000;
        border-color: #6a49f2;
    }

   .summary {
        margin-top: 20px;
        font-size: 14px;
    }

    .summary h3 {
        font-size: 18px;
        font-weight: bold;
        color: #333;
    }

    .summary p {
        display: flex;
        justify-content: space-between;
        margin: 5px 0;
    }

    /* Align the display-amount and display-points text to the right */
    #display-amount, #display-points {
        text-align: right;
        flex: 1;
    }

    /* Style for the file upload container */
    .file-upload-container {
        display: flex;
        flex-direction: column;
    }

    /* Hide the default file input */
    .file-upload-container input[type="file"] {
        display: none;
    }

    /* Style for custom upload button */
    .custom-file-upload {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        border: 1px dashed #ccc;
        border-radius: 10px;
        cursor: pointer;
        font-size: 16px;
        color: #333;
        background-color: #fafafa;
        transition: border-color 0.3s;
    }

    .custom-file-upload:hover {
        border-color: #888;
    }

    /* Style for the "+" icon */
    .custom-file-upload span {
        font-size: 24px;
        margin-right: 8px;
        color: #888;
    }
    
        .notification-content {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            max-width: 600px; /* เพิ่มความกว้างเพื่อรองรับวิดีโอ */
            width: 90%;
            position: relative;
            animation: slideIn 0.3s ease-out;
        }

        .video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
            height: 0;
            overflow: hidden;
            margin: 1rem 0;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        .btn {
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.2s;
        }

        .btn-close {
            background-color: #e5e7eb;
            color: #374151;
        }

        .btn-close:hover {
            background-color: #d1d5db;
        }
        
        /* ปุ่มปิด */
        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #aaa;
        }
        .close-button:hover {
            color: #555;
        }
        
        /* ปุ่มสำหรับเปิดคลิป */
.youtube-button {
  background-color: #ff0000;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.youtube-button:hover {
  background-color: #cc0000;
}

/* ครอบ Modal */
.youtube-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s;
}

/* เนื้อหา Modal */
.youtube-modal-content {
  background: #000;
  padding: 10px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
}

/* ปุ่มปิด Modal */
.youtube-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: color 0.3s;
}

.youtube-modal-close:hover {
  color: red;
}

/* เมื่อ Modal เปิด */
.youtube-modal-overlay.show {
  visibility: visible;
  opacity: 1;
}
    /* Input and File Upload Styling */


    .file-upload-container input[type="file"] {
        display: none;
    }

    .custom-file-upload {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        border: 1px dashed #ccc;
        border-radius: 10px;
        cursor: pointer;
        font-size: 16px;
        color: #333;
        background-color: #fafafa;
        transition: border-color 0.3s;
    }

    .custom-file-upload span {
        font-size: 24px;
        margin-right: 8px;
        color: #888;
    }

    /* Submit Button Styling */
    .submit-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 10px;
        border: none;
        color: white;
        background-color: #ccc;
        cursor: not-allowed;
        transition: background-color 0.3s;
    }

    /* Enabled Submit Button Styling */
    .submit-button.enabled {
        background-color: #6a49f2;
        cursor: pointer;
    }