* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', sans-serif;
}

html, body {
    background: url('../img/bg.png') repeat center top #000 !important;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    background: transparent !important;
    min-height: 100vh;
}

/* HEADER FULL BANNER MỚI TRÀN VIỀN 100% */
header.main-header {
    width: 100%;
    position: relative;
    display: block;
    overflow: hidden;
    background: none !important;
    height: auto !important;
    padding: 0 !important;
}

.header-banner-wrapper {
    display: block;
    width: 100%;
    height: auto;
}

.header-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* NÚT BACK */
.nutback {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    z-index: 10;
}

.nutback button {
    background: none;
    border: none;
    cursor: pointer;
}

.nutback img {
    width: 100%;
}

/* CHỮ TRUNG TÂM KHUYẾN MÃI U888 */
.title {
    width: 1200px;
    max-width: 100%;
    margin: 15px auto 0;
    text-align: center;
    z-index: 2;
}

.main-title-text {
    color: #FF8A00;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000, -2px -2px 0px #000, 2px -2px 0px #000, -2px 2px 0px #000, 0px 4px 10px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    margin: 0;
    padding: 10px 0;
}

/* KHU VỰC ẢNH TITLE KHUYẾN MÃI HOT (TITLE.PNG) DỜI BÊN DƯỚI FORM */
.title-image-box {
    width: 100%;
    max-width: 1200px;
    margin: 10px auto 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* KHU VỰC KHUYẾN MÃI DƯỚI */
.khuyenmai {
    width: 100%;
    margin: 10px 0 0;
    padding-bottom: 20px;
}

.banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.banner-detail {
    width: calc(50% - 10px);
    display: flex;
    justify-content: center;
}

.banner-detail a {
    display: flex;
}

.banner-detail img {
    max-width: 100%;
    height: auto;
}

/* FORM NHẬP THÔNG TIN CỦA SẾP */
.form-container {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto 10px;
    padding: 20px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #FF1000 0%, #FF5400 100%);
}

form {
    width: 100%;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    line-height: 35px;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    background: #f8f8f8;
}

.promo-wrapper {
    position: relative;
    width: 100%;
}

#promo-info {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f8f8f8;
    outline: none;
}

.add-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #F82702;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-code {
    display: flex;
    gap: 10px;
}

.verify-code input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
}

.submit-btn {
    width: 40%;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin: 20px auto 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 13.8309px;
    background: linear-gradient(90deg, #FD4500 0%, #F51601 100%);
    border: 2px solid #FFFFFF;
}

.submit-btn:hover {
    background: linear-gradient(90deg, red 0%, #A90300 100%);
}

/* POPUP KHUYẾN MÃI DẠNG BẢNG */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.popup-content {
    background: url(../img/popup.png) no-repeat top center;
    background-size: cover;
    padding: 15px;
    border-radius: 10px;
    width: 670px;
    max-width: 90%;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    border: solid 2px #fff;
    max-height: 650px;
    overflow: hidden;
}

.box-logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.box-logo img {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Ô TÌM KIẾM KHUYẾN MÃI TRONG POPUP */
.search-km-box {
    margin-bottom: 12px;
    width: 100%;
}

.search-km-box input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #FFD700;
    outline: none;
    font-size: 14px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.popup-content .table-wrapper{ max-height: 450px; overflow: auto; margin-bottom: 20px; border-radius: 8px; }
.popup-content table{ background: #fff; border-radius: 8px; border-spacing: 0px; width: 100%; }
.popup-content table tr th{ background: linear-gradient(180deg, #FF0000 0%, #CF1421 100%); color: #fff; font-weight: normal; font-size: 20px; padding: 8px; }
.popup-content table tr td{ font-size: 16px; border: 1px solid #E40000; padding: 8px 15px; text-align: left; }

.popup-content .close-btn {
    position: absolute;
    top: -25px;
    right: 30px;
    background: #fff;
    color: gray;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(50%, 40px);
}

.code-btn {
    background: linear-gradient(90deg, #FE4700 0%, #DC0000 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
}

.km-noidung {
    background: #fff;
}

/* GIF CỐ ĐỊNH GÓC DƯỚI BÊN TRÁI */
.gif-left-bottom {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    width: 140px;
    transition: transform 0.3s ease;
}

.gif-left-bottom:hover {
    transform: scale(1.08);
}

.gif-left-bottom a {
    display: block;
    width: 100%;
}

.gif-left-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* RESPONSIVE MOBILE CHUNG */
@media screen and (max-width: 1138px) {
    .container {
        height: 100%;
        background: transparent !important;
    }

    .main-title-text {
        font-size: 20px;
    }

    .form-container {
        width: 90%;
    }

    .title-image-box {
        width: 90%;
    }

    .banner-detail {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .submit-btn {
        width: 80%;
    }

    .popup-content {
        padding: 10px;
    }

    tr td {
        font-size: 12px;
        line-height: 18px;
    }

    .nutback {
        width: 30px;
    }

    .gif-left-bottom {
        width: 100px;
        bottom: 15px;
        left: 15px;
    }
}

body.noscroll { overflow: hidden; }

/* WELCOME MODAL OVERLAY CỦA SẾP */
.welcome-overlay{
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

.welcome-box{
    position: relative;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    width: 400px;
    height: 400px;
}

.welcome-img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-close{
    position: absolute;
    top: 8px; right: 8px;
    width: 36px; height: 36px;
    border: 0; border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: #fff; font-size: 18px; cursor: pointer;
    display: grid; place-items: center;
    z-index: 10;
}

@media (min-width: 768px){
    .welcome-box{ 
        width: 700px; 
        height: 500px; 
    }
}