body {
    margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(-45deg, #02111D, #0A2E3F, #005A70, #0A2E3F);
    background-size: 400% 400%; animation: gradientBG 15s ease infinite;
    color: #fff; height: 100vh; overflow: hidden; display: flex; flex-direction: column;
}
@keyframes gradientBG { 0% {background-position: 0% 50%;} 50% {background-position: 100% 50%;} 100% {background-position: 0% 50%;} }

.main-header { height: 10vh; display: flex; justify-content: center; align-items: center; z-index: 10;}
.mega-gold-text {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text; color: transparent; text-align: center; font-size: 32px; font-weight: 900;
    text-shadow: 2px 2px 10px rgba(212,175,55,0.4); text-transform: uppercase; margin: 0;
}

.container { display: flex; justify-content: center; align-items: stretch; padding: 0 20px 20px 20px; height: 90vh; gap: 15px; box-sizing: border-box;}
.col { display: flex; flex-direction: column; }
.left-col, .right-col { flex: 1.6; height: 100%; }
.center-col { flex: 3.4; align-items: center; justify-content: center; height: 100%; position: relative; padding-top: 10px;}

/* Ô NỀN GRADIENT SANG TRỌNG */
.glass-panel {
    background: linear-gradient(135deg, rgba(0, 20, 30, 0.9) 0%, rgba(0, 77, 64, 0.6) 100%); 
    backdrop-filter: blur(10px); border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 15px; padding: 15px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
}

/* THANH TRƯỢT CỐ ĐỊNH */
.scrollable-list { flex: 1; overflow-y: auto; padding: 0; margin: 0; list-style: none; width: 100%; }
.scrollable-list::-webkit-scrollbar { width: 5px; }
.scrollable-list::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 10px; }

.gold-title { color: #FFD700; text-align: center; border-bottom: 1px solid rgba(255,215,0,0.3); padding-bottom: 8px; margin-bottom: 12px; text-transform: uppercase; font-size: 15px; letter-spacing: 1px;}

/* KHUNG QR CỐ ĐỊNH */
.qr-section { height: 42%; margin-top: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-glow { background: white; padding: 10px; border-radius: 10px; display: flex; justify-content: center; margin-bottom: 8px; box-shadow: 0 0 20px rgba(255,255,255,0.4);}
.qr-image { width: 130px; height: 130px; display: block; object-fit: contain; }
.qr-link-box { background: rgba(212,175,55,0.1); padding: 5px 8px; border-radius: 6px; border: 1px dashed #D4AF37; text-align: center; font-size: 11px; width: 100%; box-sizing: border-box; word-break: break-all;}

/* HIỆU ỨNG CHỌN QUÀ */
.prize-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,255,255,0.05) 100%); 
    border: 1px solid rgba(212,175,55,0.3); border-radius: 8px;
    padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 8px; cursor: pointer; transition: 0.3s;
}
.prize-card:hover { background: rgba(212,175,55,0.2); }
.prize-card.selected { 
    background: linear-gradient(135deg, rgba(212,175,55,0.4) 0%, rgba(0,255,127,0.2) 100%);
    border: 2px solid #FFD700; box-shadow: 0 0 15px #FFD700; transform: scale(1.02);
}
.prize-name { font-size: 15px; font-weight: bold; color:#fff; }
.qty-badge { background: #D4AF37; color: #000; font-weight: bold; font-size: 13px; padding: 4px 12px; border-radius: 10px; }

/* FIX LỖI BẢNG VÀNG */
.winner-glow li { 
    display: block !important; width: 100%; padding: 12px 10px; border-bottom: 1px solid rgba(0,255,127,0.2);
    box-sizing: border-box; text-align: left;
}
.winner-glow li strong { color: #00FF7F; font-size: 16px; display: block; margin-bottom: 5px; }
.win-detail { color: #FFD700; font-weight: bold; font-size: 14px; display: block; }

/* VÒNG QUAY */
.wheel-container { position: relative; width: 520px; height: 520px; cursor: pointer; }
.arrow-vip { position: absolute; top: 50%; right: -25px; transform: translateY(-50%) rotate(-90deg); width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 50px solid #fff; z-index: 100; filter: drop-shadow(0 -5px 5px rgba(0,0,0,0.5)); }
.arrow-vip::after { content:''; position:absolute; top:-48px; left:-16px; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 45px solid #FFD700; }

.vip-btn { background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C); border: none; padding: 15px 40px; font-size: 18px; font-weight: bold; color: #000; border-radius: 50px; cursor: pointer; text-transform: uppercase; }
#btn-yield { background: linear-gradient(to right, #0052D4, #4364F7, #6FB1FC); color: white; border: 1px solid #99ccff; box-shadow: 0 0 15px rgba(0, 128, 255, 0.4); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 1000; display: flex; justify-content: center; align-items: center; }
.Greeting-Box { color: #00FF7F; font-size: 18px; font-weight: bold; text-shadow: 0 0 15px #00FF7F; text-align: center; margin-top: 10px; }

/* =========================================================
   TÙY CHỈNH LẠI BẢNG THÔNG BÁO TRÚNG THƯỞNG NHỎ GỌN & ĐẸP MẮT
   ========================================================= */

/* Thu nhỏ khung Modal tổng thể */
.modal-content {
    width: 450px !important;     
    padding: 30px 20px !important; 
}

/* Thu nhỏ chữ "CHÚC MỪNG" */
.modal-content h2.mega-gold-text {
    font-size: 32px !important; 
    margin-bottom: 10px !important;
}

/* Thu nhỏ dòng chữ tên người và giải thưởng */
#modal-message {
    font-size: 18px !important;  
    margin: 20px 0 !important;
}

/* Ép 3 Nút (Nhận, Nhường, Vắng Mặt) lên CÙNG 1 HÀNG ngang */
.modal-content > div:last-child {
    display: flex !important;
    flex-direction: row !important; /* Dàn hàng ngang */
    justify-content: center !important; /* Căn giữa cụm nút */
    gap: 10px !important; /* Khoảng cách giữa các nút */
    width: 100% !important; /* Chiếm trọn chiều rộng khung */
}

/* Định hình từng nút để vừa vặn trên 1 dòng */
.modal-content > div:last-child > button {
    flex: 1 1 0 !important; /* Ép chia đều 3 phần bằng nhau tuyệt đối */
    padding: 10px 0 !important; /* Bỏ lề trái phải để tiết kiệm diện tích */
    font-size: 12px !important; /* Cỡ chữ nhỏ gọn */
    white-space: nowrap !important; /* Không cho rớt dòng chữ bên trong nút */
    min-width: 0 !important; /* Mẹo nhỏ để flexbox không bị tràn */
}
