
/* .container-dot {
    position: relative;
    width: 100%;
    height: 100%;
} */

.dot {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.8;
    animation: float linear infinite;
}

/* Táº¡o 20 Äá»m vá»i cÃ¡c thuá»c tÃ­nh khÃ¡c nhau */
.dot:nth-child(1) {
    width: 10px;
    height: 10px;
    background: #fff;
    left: 10%;
    top: 50%;
    animation-duration: 15s;
    animation-delay: 0s;
}
.dot:nth-child(2) {
    width: 10px;
    height: 10px;
    background: #fff;
    left: 25%;
    top: 10%;
    animation-duration: 10s;
    animation-delay: 2s;
}
.dot:nth-child(3) {
    width: 10px;
    height: 10px;
    background: #fff;
    left: 50%;
    top: 20%;
    animation-duration: 10s;
    animation-delay: 1s;
}
.dot:nth-child(4) {
    width: 10px;
    height: 10px;
    background: #fff;
    left: 70%;
    top: 30%;
    animation-duration: 5s;
    animation-delay: 3s;
}
.dot:nth-child(5) {
    width: 10px;
    height: 10px;
    background: #fff;
    left: 30%;
    top: 80%;
    animation-duration: 5s;
    animation-delay: 0.5s;
}
.dot:nth-child(6) {
    width: 25px;
    height: 25px;
    background: #fff;
    left: 80%;
    top: 60%;
    animation-duration: 12s;
    animation-delay: 4s;
}
.dot:nth-child(7) {
    width: 10px;
    height: 10px;
    background: #fff;
    left: 15%;
    top: 70%;
    animation-duration: 5s;
    animation-delay: 1.5s;
}
.dot:nth-child(8) {
    width: 10px;
    height: 10px;
    background: #fff;
    left: 65%;
    top: 20%;
    animation-duration: 10s;
    animation-delay: 2.5s;
}
.dot:nth-child(9) {
    width: 5px;
    height: 5px;
    background: #fff;
    left: 40%;
    top: 80%;
    animation-duration: 10s;
    animation-delay: 3.5s;
}
.dot:nth-child(10) {
    width: 10px;
    height: 10px;
    background: #fff;
    left: 75%;
    top: 45%;
    animation-duration: 10s;
    animation-delay: 0.1s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-100px) translateX(50px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}
/* Vertical Slider Styles */
.list-trung {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
    align-items: center;
}
.list-left, .list-right {
    height: 400px;
    width: 450px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.list-left-item, .list-right-item {
    position: absolute;
    width: 100%;
    height: 80px;
    display: flex
;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    /* background: rgba(255, 255, 255, 0.1); */
    border: none;
    transition: all 0.5s ease;
    width: 70%;
}

.flake {
  z-index: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}

.flake {
  width: 70px;
  height: auto;
  z-index: 2;
}

/* Animation cho cÃ¡c flake */
.flake:nth-child(1) { 
  animation: float1 5s linear infinite;
  left: 10%;
}
.flake:nth-child(2) { 
  animation: float2 7s linear infinite;
  left: 25%;
}
.flake:nth-child(3) { 
  animation: float3 6s linear infinite;
  left: 40%;
}
.flake:nth-child(4) { 
  animation: float4 8s linear infinite;
  left: 15%;
}
.flake:nth-child(5) { 
  animation: float5 9s linear infinite;
  left: 70%;
}
.flake:nth-child(6) { 
  animation: float6 7s linear infinite;
  left: 85%;
}
.flake:nth-child(7) { 
  animation: float7 6s linear infinite;
  left: 15%;
}
.flake:nth-child(8) { 
  animation: float8 8s linear infinite;
  left: 60%;
  
}

/* Keyframes cho animation */
@keyframes float1 {
  0% {
    top: 100px;
    transform: rotate(0deg);
  }
  100% {
    top: 100vh;
    transform: rotate(360deg);
  }
}

@keyframes float2 {
  0% {
    top: 100px;
    transform: rotate(0deg);
  }
  100% {
    top: 100vh;
    transform: rotate(-360deg);
  }
}

@keyframes float3 {
  0% {
    top: 100px;
    transform: rotate(0deg) scale(0.8);
  }
  100% {
    top: 100vh;
    transform: rotate(360deg) scale(0.8);
  }
}

@keyframes float4 {
  0% {
    top: 100px;
    transform: rotate(0deg) scale(1.2);
  }
  100% {
    top: 100vh;
    transform: rotate(-360deg) scale(1.2);
  }
}

@keyframes float5 {
  0% {
    top: 100px;
    transform: rotate(0deg);
  }
  100% {
    top: 100vh;
    transform: rotate(360deg);
  }
}

@keyframes float6 {
  0% {
    top: 100px;
    transform: rotate(0deg) scale(0.9);
  }
  100% {
    top: 100vh;
    transform: rotate(-360deg) scale(0.9);
  }
}

@keyframes float7 {
  0% {
    top: 100px;
    transform: rotate(0deg) scale(1.1);
  }
  100% {
    top: 100vh;
    transform: rotate(360deg) scale(1.1);
  }
}

@keyframes float8 {
  0% {
    top: 100px;
    transform: rotate(0deg);
  }
  100% {
    top: 100vh;
    transform: rotate(-360deg);
  }
}
/*  */
.otherstuff {
  position: absolute;
  bottom: -2px;
  left: 10px;
  width: 180px;
  line-height: 50%;
  height: 30px;
  color: #444;
  font-size: 20px;
  text-decoration: none;
  opacity: .25;
}

span {
  /* position: relative;
  top: -3px;
  left: 5px;
  color: #fff;
  font-family: arial; */
}

.otherstuff:hover {
  color: #fff;
  opacity: 1;
  transition: color .2s linear, opacity .2s linear;
}

  
.lucky-draw-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    
}
img.head-wheel {
    position: absolute;
    top: -10.5%;
    width: 80%;
    text-align: center;
    margin: 0 auto;
    left: 8%;
    z-index: 2;
    transform: rotate(-2deg);
}

.lucky-draw-header-icon {
    animation: daxiao 3s linear infinite;
}
@keyframes daxiao {
    0% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    25% {
        -o-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    50% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    75% {
        -o-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    100% {
        -o-transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}
.guolv{
    /* background-image: url('https://pqtic.com/wp-content/uploads/2025/04/xingguang.gif');
   
    display: block;
    mix-blend-mode: screen;
    -webkit-mix-blend-mode: screen;
    -moz-mix-blend-mode: screen;
    -ms-mix-blend-mode: screen;
    -o-mix-blend-mode: screen; */
}
.lucky-draw-header-icon {
    position: absolute;
    left: 20%;
    top: 10%;
}
.prize-header h2:after {
    content: "";
    width: 0;
    height: 0;
}

.lucky-draw-container-wrapper{
    /* background-image: url('/wp-content/uploads/2025/04/BG-1.jpg'); */
    background-image: url('/wp-content/uploads/2025/09/BG.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
    display: flex    ;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
}
#code-input-modal .modal-content{
    background-image: url('/wp-content/uploads/2019/09/67bd9fb6011fd.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    
}
/* .lucky-draw-container-wrapper::before {
    content: "";
    background-image: url('/wp-content/uploads/2019/09/ELEMENT.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    animation: floatStar 3s ease-in-out infinite;

} */
/* Keyframes hiá»u á»©ng */
@keyframes floatStar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}
/* li.prize-item-preview:nth-child(3) {
    display: none;
} */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    position: relative;
    z-index: 99;
}
.spin-button {
    animation: updown 3s linear infinite;
}
section#contact-footer {
    z-index: 9999 !important;
}
@keyframes updown { 
    0% {  
        -o-transform: scale(1); 
        -ms-transform: scale(1); 
        -moz-transform: scale(1); 
        -webkit-transform: scale(1); 
        transform: scale(1); 
        transform: scale(1); 
    }  
    25% {  
        -o-transform: scale(1.1); 
        -ms-transform: scale(1.1); 
        -moz-transform: scale(1.1); 
        -webkit-transform: scale(1.1); 
        transform: scale(1.1); 
        transform: scale(1.1); 
    }  
    50% {  
        -o-transform: scale(1); 
        -ms-transform: scale(1); 
        -moz-transform: scale(1); 
        -webkit-transform: scale(1); 
        transform: scale(1); 
        transform: scale(1); 
    }  
    75% {  
        -o-transform: scale(1.1); 
        -ms-transform: scale(1.1); 
        -moz-transform: scale(1.1); 
        -webkit-transform: scale(1.1); 
        transform: scale(1.1); 
        transform: scale(1.1); 
    }  
    100% {  
        -o-transform: scale(1); 
        -ms-transform: scale(1); 
        -moz-transform: scale(1); 
        -webkit-transform: scale(1); 
        transform: scale(1); 
        transform: scale(1); 
    }  
  
  } 
.prize-item {
    aspect-ratio: 1;
   
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
   
    position: relative;
}
.prize-item:nth-child(1){
    background-image: url('/wp-content/uploads/2025/03/1-24.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(2){
    background-image: url('/wp-content/uploads/2025/03/1-25.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(3){
    background-image: url('/wp-content/uploads/2025/03/1-26.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(4){
    background-image: url('/wp-content/uploads/2025/03/1-27.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(5){
    background-image: url('/wp-content/uploads/2025/03/1-28.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(6){
    background-image: url('/wp-content/uploads/2025/03/1-29.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(7){
    background-image: url('/wp-content/uploads/2025/03/1-30.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(8){
    background-image: url('/wp-content/uploads/2025/03/1-31.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.prize-item:nth-child(9){
    background-image: url('/wp-content/uploads/2025/03/1-33.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.prize-item:nth-child(10){
    background-image: url('/wp-content/uploads/2025/03/1-32.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(11){
    background-image: url('/wp-content/uploads/2025/03/1-34.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prize-item:nth-child(12){
    background-image: url('/wp-content/uploads/2025/03/1-35.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.prize-item img {
    width: 100%;
    height: auto;
}

.prize-item span {
    font-weight: bold;
    color: #333;
}
.btn-delete-selected #bulk-delete-codes {
    color: #0c398e !important;
    border-color: #0c398e !important;
}
.btn-delete-selected {
    float: right;
}
.prize-item.dim {
    opacity: 0.3;
}
tbody#the-list td {
    text-align: center;
}
table.wp-list-table.widefat.fixed.striped td {
    text-align: center;
}
.guestbook_bg {
    text-align: center;
}
.prize-item.highlight {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    opacity: 1;
}
button.btn-draw-again {
    margin: 0;
    font-size: 17px;
    padding: 10px;
}
.prize-item.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 2;
    background: #92eaf2;
    padding: 2px;
}

img.prize-image {
    width: 125px;
    height: auto;
}
#spinButton {
    grid-column: 2 / span 2;
    grid-row: 2 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 90%;
    text-align: center;
    margin: 0 auto;
}

#spinButton span {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

#spinButton:hover {
    transform: scale(1.05);
}

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

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    text-align: right;
    background: #673ab7;
    padding: 0 15px;
    color: #fff !important;
    border-radius: 5px;
}

.close-modal:hover {
    color: #000;
}

.code-input-section {
    text-align: center;
    margin: 20px 0;
}

#lottery-code {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

#lottery-code:focus {
    border-color: #9966cd;
    outline: none;
    box-shadow: 0 0 5px rgb(209 68 255 / 30%);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.button-primary {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.button-secondary {
    background-color: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.button-primary:hover {
    background-color: #ff2222;
}

.button-secondary:hover {
    background-color: #555;
}

/* Error message style */
.error-message {
    color: #ff4444;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* Message Popup Styles */
.message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    text-align: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.message-popup.success {
    background-color: #673ab7;
}

.message-popup.error {
    background-color: #f44336;
}

.message-popup.error.login-required {
    background-color: #f44336;
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Login Notice Styles */
.login-notice .modal-content {
    max-width: 400px;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-notice h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.login-notice p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.login-notice .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.login-notice .button-primary {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.login-notice .button-secondary {
    background-color: #666;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-notice .button-primary:hover {
    background-color: #ff2222;
}

.login-notice .button-secondary:hover {
    background-color: #555;
}

.login-notice .close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.login-notice .close-modal:hover {
    color: #333;
}

/* Modal Background */
.lucky-draw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Initial Winning Popup */
.winning-popup .modal-content {
    max-width: 500px;
    padding: 50px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    background-repeat: round;
    background-position: revert;
}

.winning-popup .prize-image {
    width: auto;
    height: auto;
    object-fit: contain;
    /* margin-bottom: 20px; */
}

.winning-popup .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.winning-popup .go-check-btn,
.winning-popup .draw-again-btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.winning-popup .go-check-btn {
    background-color: #f5f5f5;
    color: #fff;
}

.winning-popup .draw-again-btn {
    background-color: #ff4444;
    color: white;
}

/* Prize Details Popup */
.prize-details-popup .modal-content {
    max-width: 500px;
    background: white;
    border-radius: 10px;
    position: relative;
    padding: 0;
}

.prize-details-popup h2 {
    margin: 0;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 10px 10px 0 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 25px;
    color: #666;
    cursor: pointer;
}

.prize-info {
    padding: 5px;
    justify-content: center;
}

.prize-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.prize-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.prize-image img{
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.prize-title {
    font-size: 16px;
    color: #666;
}

.congratulations-text {
    text-align: center;
    color: #ff4444;
    font-size: 18px;
    margin-bottom: 20px;
}

.prize-value {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
}

.redemption-section {
    background: #fff1f1;
    padding: 20px;
}

.redemption-section h3 {
    color: #ff4444;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.redemption-row {
    display: flex;
    margin-bottom: 15px;
}

.redemption-row .label {
    width: 150px;
    font-size: 15px;
    color: #666;
    text-align: left;
}

.code-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code {
    color: #333;
    font-family: monospace;
    font-size: 18px;
}

.copy-btn {
    background: transparent;
    border: 1px solid #673ab7;
    color: #673ab7;
    padding: 2px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: #673ab7;
    color: white;
}

.method {
    color: #666;
    flex: 1;
}

/* Animation */
.winning-popup {
    animation: fadeIn 0.3s ease-out;
}

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

/* Code Display Styles */
.code-content {
    text-align: center;
}

.code-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.code-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.code-display input {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    background: #f9f9f9;
}

.copy-code-btn {
    padding: 10px 20px;
    background-color: #673ab7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-code-btn:hover {
    background-color: #45a049;
}

.back-to-prize-btn {
    padding: 10px 20px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-to-prize-btn:hover {
    background-color: #555;
} 
.button-group button {
    font-size: 20px !important;
    padding: 10px;
    background: linear-gradient(to right, #673ab7, #3f51b5);
    color: #fff;
    border: 2px solid #673ab7;
}
.redemption-section h3 {
    text-align: center !important;
    line-height: 40px !important;
    border-bottom: none !important;
    margin-top: 14px !important;
    font-size: 1rem !important;
    color: #d91b1b !important;
}
.prize-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #ffffff00;
    border-radius: 20px;
    padding: 20px;
}
.prize-grid{
    background-image: url('/wp-content/uploads/2019/09/KHUNG-NGOAI-EF1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px;
}
.prize-grid {
    animation: switchImages 1s infinite;
    background-size: 100%;
}

@keyframes switchImages {
    0% {
        background-image: url('/wp-content/uploads/2019/09/KHUNG-NGOAI-EF2.png');
    }
    50% {
        background-image: url('/wp-content/uploads/2019/09/KHUNG-NGOAI-EF1.png');
    }
    100% {
        background-image: url('/wp-content/uploads/2019/09/KHUNG-NGOAI-EF2.png');
    }
}

.lucky-draw-bottom-btn img, .lucky-draw-top-btn img, .lucky-draw-bottom-left img {
    width: 80%;
    height: auto;
    animation: floatStar 3s ease-in-out infinite;
}
.lucky-draw-top-btn {
    position: absolute;
    top: 10%;
    left: 10%;
    z-index: 9;

}
.lucky-draw-bottom-btn{
    position: absolute;
    bottom: 5%;
    right: 10%; 
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    z-index: 9;
}


.lucky-draw-bottom-left {
    position: absolute;
    bottom: 1%;
    left: 10%;
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.lucky-draw-header-bg {
    text-align: center;
    /* margin-bottom: -7px; */
    position: absolute;
    top: -17%;
}
.lucky-draw-header-bg img {
    width: 100%;
}
.lucky-draw-container {
    position: relative;
}
img#prize-total {
    /* width: 100px !important; */
    margin: 0 20px;
   
}


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

.prizes-list-modal .modal-content {
    background: #fff;
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
    top: 10%;
}

.prizes-list-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.prizes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.prize-item-preview {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex
    ;
        justify-content: space-between;
    min-width: 200px;
}

.prize-item-preview:hover {
    transform: translateY(-5px);
}



.prize-item-preview h3 {
    margin: 0;
    font-size: 16px !important;
    color: #333 !important;
}



/* ThÃªm cursor pointer cho prize-total */
#prize-total {
    cursor: pointer;
}

#prize-total:hover {
    opacity: 0.8;
}

.lucky-draw-modal .modal-content{
    width: 29%;
}
.prizes-list-modal .modal-content::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

.prizes-list-modal .modal-content::-webkit-scrollbar
{
	width: 10px;
	background-color: #F5F5F5;
}

.prizes-list-modal .modal-content::-webkit-scrollbar-thumb
{
	background-color: rgb(27, 115, 216);	
	background-image: -webkit-linear-gradient(45deg,
	                                          rgba(255, 255, 255, .2) 25%,
											  transparent 25%,
											  transparent 50%,
											  rgba(255, 255, 255, .2) 50%,
											  rgba(255, 255, 255, .2) 75%,
											  transparent 75%,
											  transparent)
}

@media (max-width: 1024px) and (min-width: 900px) {
    .lucky-draw-header-bg img {
        width: 80%;
    }
    .lucky-draw-modal .modal-content {
        width: 59%;
    }
    
    /* Responsive cho wheel container trÃªn tablet */
    .wheel-container {
        width: 450px;
        height: 450px;
        padding: 15px;
    }
    
    /* Responsive cho wheel-dots trÃªn tablet */
    .wheel-dots {
        top: -3px;
        left: -2px;
        right: -8px;
        bottom: -8px;
    }
    
    .wheel-dot {
        width: 9px;
        height: 9px;
        border-width: 0.8px;
        opacity: 0.9;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
    }
    
    /* Responsive cho wheel segments trÃªn tablet */
    .wheel-segment {
        font-size: 11px;
        padding: 8px;
    }
    
    .wheel-segment-text {
        font-size: 10px;
        max-width: 70px;
    }
    
    .wheel-segment-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .wheel-center {
        width: 80px;
        height: 80px;
    }
    
    .wheel-center-pointer {
        top: -10px;
        font-size: 20px;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    .lucky-draw-header-bg img {
        width: 85%;
    }
    .lucky-draw-modal .modal-content {
        width: 65%;
    }
    
    /* Responsive cho wheel container trÃªn tablet nhá» */
    .wheel-container {
        width: 400px;
        height: 400px;
        padding: 12px;
    }
    
    /* Responsive cho wheel-dots trÃªn tablet nhá» */
    .wheel-dots {
        top: -2px;
        left: -1px;
        right: -6px;
        bottom: -6px;
    }
    
    .wheel-dot {
        width: 8px;
        height: 8px;
        border-width: 0.7px;
        opacity: 0.85;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.85);
    }
    
    /* Responsive cho wheel segments trÃªn tablet nhá» */
    .wheel-segment {
        font-size: 10px;
        padding: 6px;
    }
    
    .wheel-segment-text {
        font-size: 9px;
        max-width: 65px;
    }
    
    .wheel-segment-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .wheel-center {
        width: 70px;
        height: 70px;
    }
    
    .wheel-center-pointer {
        top: -8px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    img.head-wheel{
        top: -8.5%;

    }
    .winning-popup .modal-content{
        padding: 10px;
    }
    .img-congratulation img{
        display: none;
    }
    .lucky-draw-container-wrapper{
        padding: 0;
    }
    
    .lucky-draw-header-icon #prize-total{
        width: 100px;
    }
    .lucky-draw-modal .modal-content {
        width: 59%;
    }
    .lucky-draw-bottom-btn img, .lucky-draw-top-btn img, .lucky-draw-bottom-left img {
        width: 40%;
    }
    .lucky-draw-modal .modal-content {
        width: 80%;
    }
    .lucky-draw-header-bg img {
        width: 100%;
    }
    .lucky-draw-header-bg {
       
        top: -12%;
    }
}
/* .prize-grid {
    position: relative;
    border-radius: 23px;
}
.prize-grid::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
     border-radius: 23px;
     border: 5px solid rgb(200 239 249);
    animation: border-anim 2s linear infinite;
    
}


@keyframes border-anim {
    0% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
    25% {
        clip-path: polygon(0% 0%, 25% 0%, 0% 0%, 0% 0%);
    }
    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 25%, 0% 25%);
    }
    75% {
        clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 100% 0%);
    }
    100% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
} */

/* ===== WHEEL OF FORTUNE STYLES ===== */
.wheel-container {
    position: relative;
    width: 550px;
    height: 550px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.3));
}

.wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #673ab7 0deg 30deg,
        #000000 30deg 60deg,
        #673ab7 60deg 90deg,
        #000000 90deg 120deg,
        #673ab7 120deg 150deg,
        #000000 150deg 180deg,
        #673ab7 180deg 210deg,
        #000000 210deg 240deg,
        #673ab7 240deg 270deg,
        #000000 270deg 300deg,
        #673ab7 300deg 330deg,
        #000000 330deg 360deg
    );
    box-shadow: 
    0 0 50px rgb(0 0 0 / 80%), inset 0 0 50px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: rotate(0deg);
    border: 3px solid #FAFFC7;
}
.wheel-center-pointer {
    display: none;
    position: absolute;
    top: -14px;
    color: #ffd700;
    transform: translateX(-140%) rotate(341deg) ;
}
.img-congratulation img {
    width: 100%;
    position: absolute;
    top: -190px;
    left: 0;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(var(--final-rotation, 3600deg)); }
}

.wheel.spinning {
    filter: brightness(1.2) contrast(1.1);
    transition: transform 0.1s ease-out;
}

/* Giá»¯ nguyÃªn vá» trÃ­ sau khi animation káº¿t thÃºc */
.wheel:not(.spinning) {
    transition: transform 0.3s ease-out;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding: 10px;
    box-sizing: border-box;
}

/* CÃ¡c segment sáº½ ÄÆ°á»£c táº¡o Äá»ng báº±ng JavaScript */

.wheel-segment-content {
    /* XÃ³a transform cá» Äá»nh, sáº½ ÄÆ°á»£c tÃ­nh toÃ¡n Äá»ng */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wheel-segment-text {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 80px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: white;
}

.wheel-segment-icon {
    width: 40px;
    height: 40px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.wheel-segment-icon.tfx {
    background: #87CEEB;
    color: #000;
}

.wheel-segment-icon.usdt {
    background: #90EE90;
    color: #000;
}

.wheel-segment-icon.btc {
    background: #FFD700;
    color: #000;
}

.wheel-segment-icon.cash {
    background: #32CD32;
    color: #fff;
}

.wheel-segment-icon.bottle {
    background: #FFFFFF;
    color: #000;
    border: 2px solid #87CEEB;
}

.wheel-segment-icon.thanks {
    background: #FF69B4;
    color: #fff;
}

.wheel-segment-icon .prize-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
   
}

.wheel-segment-icon .prize-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.wheel-segment-icon.normal {
    background: #FFD700;
    color: #000;
}



@keyframes pointerGlow {
    from { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1)); }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
   
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.wheel.spinning ~ .wheel-center {
    /* KhÃ´ng quay nÃºt center, chá» disable pointer events */
    pointer-events: none;
}

.wheel.spinning ~ .wheel-center .go-button {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: buttonGlow 0.5s ease-in-out infinite alternate;
    font-weight: bold;
    transform: scale(1.1);
    transition: all 0.3s ease;
    cursor: not-allowed;
    content: "SPINNING...";
}

@keyframes buttonGlow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 1); }
}

/* XÃ³a cÃ¡c animation khÃ´ng cáº§n thiáº¿t vÃ¬ nÃºt center khÃ´ng quay ná»¯a */



@keyframes pulse {
    0% { box-shadow: 0 0 30px rgba(65, 105, 225, 1), inset 0 0 20px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(65, 105, 225, 1.2), inset 0 0 25px rgba(255, 255, 255, 0.7); }
    100% { box-shadow: 0 0 30px rgba(65, 105, 225, 1), inset 0 0 20px rgba(255, 255, 255, 0.5); }
}

.wheel-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 30px #F8FAC9, 0 0 60px #F8FAC9;
    animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    from { box-shadow: 0 0 30px #F8FAC9, 0 0 60px #F8FAC9; }
    to { box-shadow: 0 0 30px #F8FAC9, 0 0 60px #F8FAC9; }
}

.wheel-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.wheel-dots {
    position: absolute;
    top: -4px;
    left: -6px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    pointer-events: none; /* Äáº£m báº£o dots khÃ´ng cáº£n trá» tÆ°Æ¡ng tÃ¡c */
}

.wheel-dot {
    border: 2px solid #fff;
    background: #fff;
    position: absolute;
    width: 12px;
    height: 12px;
    background: #560ae7;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: dotPulse 1.5s ease-in-out infinite;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform, box-shadow; /* Optimize for animations */
    transition: all 0.3s ease; /* Smooth transitions */
}

/* Hover effect cho dots trÃªn desktop */
@media (min-width: 1025px) {
    .wheel-dot:hover {
        box-shadow: 0 0 15px rgba(227, 134, 209, 0.8);
        transform: scale(1.3);
    }
}

@keyframes dotPulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 10px rgba(255, 255, 255, 1);
        transform: scale(1.2);
    }
}

/* Responsive animation cho dots */
@media (max-width: 1350px) {
    .list-left,.list-right{
        display: none;
    }
}
@media (max-width: 1024px) {
    /* .spin-btn {
        width: 100%;
    } */
    .wheel-dot {
        animation: dotPulse 2s ease-in-out infinite;
    }
    .list-left,.list-right{
        display: none;
    }
}

@media (max-width: 768px) {
    .wheel-dot {
        animation: dotPulse 1.8s ease-in-out infinite;
    }
    .flake{
        display: none;
    }
    .wheel-center-pointer {
       
        top: -8px;
       
        font-size: 11px;
    }

}

@media (max-width: 480px) {
    .wheel-dot {
        animation: dotPulse 1.5s ease-in-out infinite;
    }
    .wheel-center-pointer {
       
        top: -11px;
        transform: translateX(-136%) rotate(329deg);
        font-size: 11px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .wheel-container {
        width: 350px;
        height: 350px;
        padding: 12px;
    }
    
    .wheel-segment {
        font-size: 10px;
        padding: 5px;
    }
    
    .wheel-segment-icon {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .wheel-segment-icon .prize-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .wheel-segment-icon .prize-icon {
        font-size: 10px;
    }
    
    .wheel-center {
        width: 80px;
        height: 80px;
    }
    
    .go-button {
        font-size: 14px;
    }
    
    .wheel-segment-text {
        font-size: 8px;
        max-width: 60px;
    }
    
    /* Responsive cho wheel-dots */
    .wheel-dots {
        top: -2px;
        left: -1px;
        right: -8px;
        bottom: -8px;
    }
    
    .wheel-dot {
        width: 7px;
        height: 7px;
        border-width: 0.6px;
        opacity: 0.8;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    }
}

@media (max-width: 480px) {
    .wheel-container {
        width: 280px;
        height: 280px;
    }
    
    .wheel-segment {
        font-size: 8px;
        padding: 3px;
    }
    
    .wheel-segment-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .wheel-segment-icon .prize-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .wheel-segment-icon .prize-icon {
        font-size: 8px;
    }
    
    .wheel-center {
        width: 50px;
        height: 50px;
    }
    
    .go-button {
        font-size: 12px;
    }
    
    .wheel-segment-text {
        font-size: 7px;
        max-width: 50px;
    }
    
    /* Responsive cho wheel-dots trÃªn mÃ n hÃ¬nh nhá» */
    .wheel-dots {
        top: -1px;
        left: -1px;
        right: -10px;
        bottom: -10px;
    }
    
    .wheel-dot {
        width: 6px;
        height: 6px;
        border-width: 0.5px;
        opacity: 0.75;
        box-shadow: 0 0 3px rgba(255, 255, 255, 0.75);
    }
}

/* Hide old prize grid when using wheel */
.wheel-mode .prize-grid {
    display: none;
}

.wheel-mode .lucky-draw-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}