
.popup_giaithuong {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    padding: 0% 0% !important;
    display: none;
    transition: visibility 0s, opacity 0.5s linear;
    opacity: 0;
}
.active_popup {
    transition: visibility 0s, opacity 0.5s linear;
    display: flex;
    opacity: 1;
}

.popup_giaithuong-box {
    background-image: url('../images/popup/bg_mm.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 50%;
    aspect-ratio: 3 / 2;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


#popup_news .popup_giaithuong-box {
    background-color: white !important;
    background-image: none;
    overflow: scroll;
}

.popup-box_news {
    padding: 4% !important;
}
.popup-box_news_title {
    margin-bottom: 2% !important;
    font-size: 2rem !important;
}

.popup_show_clone {
    transform: translate(0%, 0%) !important;
    z-index: 10 !important;
    position: absolute;
    top: 0px;
    right: 8px;

}

#popup_Error .popup_giaithuong-box{
    background-image: url(../images/popup/bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 50%;
    aspect-ratio: 3 / 2;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text_popup {
    /*    color: white;
        width: 74%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: clamp(11px, 3.2vw, 16px);
        text-align: center;
        padding: 0 0 !important;
        margin: 0 auto !important;*/

    color: white !important;
    width: 74%; /* Giới hạn độ rộng để chữ không đè lên viền vàng */
    font-size: clamp(11px, 2.2vw, 16px);
    text-align: center;

    /* Xóa bỏ position absolute nếu có */
    position: relative; 
    z-index: 2;

    margin: 0 !important; /* Để Flexbox của cha làm việc chuẩn nhất */
    padding: 0;
}

.popup_giaithuong-win .popup_giaithuong-box {
    background-image: url(../images/popup/bg_win.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 50%;
    aspect-ratio: 3 / 2;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.line_footer_popup {
    width: 35%;
    position: absolute;
    bottom: 0;
    right: 0;
}
.line_header_popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 130%;
    transform: translate(-30%,-55%);
}
.line_mayman {
    width: auto;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.line_mayman_win {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.line_mayman_win_price {
    width: auto;
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.line_mayman_win_price_next {
    position: absolute;

    background-color: #2860FC;
    padding: 0 10px !important;
    border-radius: 5px;
    color: white;
    box-shadow: 6px 4px 5px 0px rgba(138,138,138,0.75);
    -webkit-box-shadow: 6px 4px 5px 0px rgba(138,138,138,0.75);
    -moz-box-shadow: 6px 4px 5px 0px rgba(138,138,138,0.75);
}

.line_mayman_win_price_next a{
    color: white;
    font-weight: 800;
}
.line_mayman_win_price_next a:hover{
    color: yellow;
    font-weight: 800;
}
.xengay_popup {
    width: 24%;
    height: 16%;
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translate(-50%,60%);
}
.pop_img {
    position: absolute;
    width: 20%;
}
.pop_img-1 {
    top: 30%;
    right: 0;
}
.pop_img-1r {
    bottom: 35%;
    left: 3%;
    width: 10%;
}
.pop_img-3r {
    bottom: 10%;
    left: 0;
    transform: rotate(-70deg);
    width: 15%;
}
.pop_img-2{
    top: 5%;
    right: 5%;
    width: 20%;
}
.pop_img-2a {
    bottom: 25%;
    right: 5%;
    width: 18%;
}
.pop_img-3{
    top: 18%;
    left: 20%;
    width: 15%;
}
.pop_img-4{
    top: 18%;
    left: 5%;
    width: 15%;
}
.pop_img-5{
    top: 5%;
    right: 25%;
    width: 6%;
}
.pop_img-6{
    top: 22%;
    right: 10%;
    width: 16%;
}
.pop_img-7{
    top: 35%;
    left: 0%;
    width: 10%;
}
.pop_img-8{
    bottom: 15%;
    left: 5%;
    width: 18%;
}
.pop_img-9{
    top: 35%;
    right: 10%;
    width: 6%;
}
.pop_img-10{
    top: 35%;
    right: 45%;
    width: 20%;
    z-index: 1;
}


@media (max-width: 1399.98px) { 

    .xengay_popup {
        transform: translate(-40%,-15%);
    }

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

    .xengay_popup {
        transform: translate(-50%,-15%);
    }
}

@media (max-width: 991.98px) { 

}

@media (max-width: 767.98px) { 

    .line_mayman {
       
    }
    .text_popup {
        color: white;
        width: 74%;
    }

}

@media (max-width: 575.98px) {  

}
/* Mobile nhỏ: dưới 576px */
@media (max-width: 575.98px) { 

}

/* Mobile & Tablet đứng: dưới 768px */
@media (width: 712px) { 
    .line_mayman_win {
        width: 100%;
    }
    .popup_show_clone {

    }
    .line_mayman_win_price {

    }
}
/* chỉ có table*/
@media (min-width: 768px) and (max-width: 1024px) {
    .line_mayman_win {
        width: 100%;
    }
    .popup_show_clone {

    }
    .line_mayman_win_price {

    }
    .text_popup {
        width: 74%;
    }    
}

@media (min-width: 991.98px) and (max-width: 1023.98px) {
    .line_mayman_win {
        width: 100%;
    }
    .popup_show_clone {

    }
    .line_mayman_win_price {

    }
}
/* Tablet ngang & Laptop nhỏ: dưới 992px */
@media (max-width: 991.98px) {  }

/* Laptop/Desktop thông thường: dưới 1200px */
@media (max-width: 1199.98px) {  }

/* Desktop lớn: dưới 1400px */
@media (max-width: 1399.98px) { }