/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
/*==================== BASE ====================*/
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    background: #e1ddcc;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
}
ol,
ul,
.h1,
.h2,
.h3,
h1,
h2,
h3 {
    margin: 0;
    padding: 0;
}
h1,
h2,
h3,
h4 {
    color: hsl(255, 8%, 15%);
    font-weight: 600;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
button {
    outline: none;
    border: none;
}
dl,
ol,
ul {
    margin-bottom: 0;
}
/*==================== ELEMENTS ====================*/
.wrapper-main {
    background: #F7D482 url(../image/bg-1.jpg) no-repeat;
    background-position: center -50px;
    flex: 1;
    min-height: 1080px;
}
.wrapper-cover {
    background-color: #fffeea;
    padding: 20px 50px 200px 60px;
    max-width: 1400px;
    min-height: 1080px;
}
.wrapper-content {
    width: 100%;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: #fffeea;
    min-height: 600px;
}
.container-md {
    max-width: 900px;
}
li {
    list-style: none;
}
:focus-visible {
    outline: unset;
}
/*=============DEFINE ICON=============*/
i {
    display: block;
}
.icon-568 {
    width: 26px;
    height: 24px;
    background: url(../image/icon-568.png) no-repeat;
}
.icon-close {
    width: 25px;
    height: 24px;
    background: url(../image/icon-close.png) no-repeat;
}
.icon-user {
    width: 29px;
    height: 29px;
    background: url(../image/icon-user.png) no-repeat 0 0 / 100% 100%;
}
.icon-payment {
    width: 21px;
    height: 15px;
    background: url(../image/icon-payment.png) no-repeat 0 0 / 100% 100%;
}
.icon-user-white {
    width: 16px;
    height: 19px;
    background: url(../image/icon-user-white.png) no-repeat 0 0 / 100% 100%;
}
.icon-logout {
    width: 19px;
    height: 19px;
    background: url(../image/icon-logout.png) no-repeat 0 0 / 100% 100%;
}
.icon-card-user {
    width: 29px;
    height: 20px;
    background: url(../image/icon-card-user.png) no-repeat;
    background-size: 100%;
}
.icon-history {
    width: 20px;
    height: 19px;
    background: url(../image/icon-histories.png) no-repeat;
    background-size: 100%;
}
.icon-bag {
    width: 16px;
    height: 20px;
    background: url(../image/icon-bag.png) no-repeat;
    background-size: 100%;
}
/*==================== HEADER ====================*/
.wrapper-header {
    background-color: #000;
}
.wrapper-sub-header {
    background-color: #695b38;
}
.main-header {
    background: #000;
    height: 80px;
    flex-shrink: 0;
    justify-content: space-between;
}
.hamburger-menu {
    display: none;
}
.main-header .logo {
    background: url(../image/logo.png);
    width: 140px;
    height: 56px;
}
.main-header .wrapper-center-nav {
    margin-top: 16px;
    font-size: 20px;
    gap: 20px;
    font-weight: 600;
}
.main-header .wrapper-center-nav li {
    position: relative;
}
.main-header .wrapper-center-nav li a {
    color: #d3d3d3
}
.main-header .wrapper-center-nav li a:hover,
.main-header .wrapper-center-nav li a.active {
    color: #fff;
}
.main-header .wrapper-center-nav li a::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background-color: #acacac;
}
.main-header .wrapper-center-nav li:first-child a::before {
    display: none;
}
.main-header .user-info .avatar-text {
    display: none;
}
.main-header .btn-login,
.main-header .user-info .btn-user {
    width: 121px;
    height: 30px;
    background: #3fa4f9;
    color: #fff;
    font-size: 18px;
    line-height: 30px;
    border: none;
    outline: none;
    border-radius: 3px;
    text-align: center;
    text-decoration: unset;
}
.main-header .user-info {
    max-width: 100%;
}
.main-header .user-info .btn-user {
    max-width: 100%;
    width: 258px;
    gap: 10px;
    padding-left: 10px;
    position: relative;
}
.main-header .user-info .btn-user::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    width: 23px;
    height: 12px;
    background: url(../image/icon-dropdown.png) no-repeat;
    background-size: 100%;
    transition: transform 0.25s ease;
}
.main-header .btn-login:hover {
    background: #61c1fd;
}
.main-header .user-info .btn-user>span,
.main-header .user-info ul.menu li.id .username {
    max-width: 180px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.main-header .user-group {
    gap: 32px;
}
.main-header .user-group .list-products button {
    background: transparent;
    border: none;
    outline: none;
    width: 31px;
    height: 30px;
}
.main-header .user-info .btn-user.show::after {
    transform: translateY(-50%) rotate(0);
}
.main-header .user-info ul.menu,
.main-header .user-group .list-products ul {
    background: #4c4c4c;
    border-radius: 4px;
}
.main-header .user-info ul.menu .wrap-icon {
    width: 30px;
}
.main-header .user-info ul.menu .dropdown-item,
.main-header .user-group .list-products .dropdown-item {
    color: #fff;
}
.main-header .user-info ul.menu .dropdown-item:hover,
.main-header .user-group .list-products .dropdown-item:hover {
    background: #5a5a5a;
}
.main-header .user-info ul.menu li.id {
    padding: 0 16px;
    margin: 6px 0 15px 0;
}
.main-header .user-info ul.menu li.id .username {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.main-header .user-info ul.menu li.id .userId {
    color: #868686;
    user-select: auto;
}
/* User Info Header Styles */
.main-header .user-info ul.menu .user-info-header {
    padding: 7px 11px;
    margin: 0;
    background-color: #5a5a5a;
    border-bottom: 1px solid #4c4c4c;
}
.main-header .user-info ul.menu .avatar-circle {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background-color: #3fa4f9;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
    padding-top: 2px;
}
.main-header .user-info ul.menu .user-info-text {
    flex: 1;
    min-width: 0;
}
.main-header .user-info ul.menu .user-info-text .username {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.main-header .user-info ul.menu .user-info-text .user-rank-name {
    color: #fff;
    font-size: 14px;
    margin-top: 2px;
}
.main-header .user-info ul.menu .user-info-text .user-rank-name span {
    color: #ffb629;
    font-weight: 800;
}
.sub-header {
    background: #695b38;
    height: 33px;
}
.sub-header .menu-item {
    color: #fff;
    text-decoration: unset;
    line-height: 33px;
    padding: 0 10px;
    font-weight: 600;
}
.sub-header .menu-item:not(:first-child) {
    position: relative;
}
.sub-header .menu-item:not(:first-child)::before {
    position: absolute;
    content: "";
    left: 0;
    top: 50%;
    height: 33px;
    transform: translate(-50%, -50%);
    width: 1px;
    background: #ffffff;
}
.sub-header .menu-item:nth-child(2) {
    padding: 0 14px;
}
.sub-header .menu-item:hover,
.sub-header .menu-item.active {
    background: #9b8651;
}
/*==================== FOOTER ====================*/
footer {
    border-top: 12px solid #29588c;
    width: 100%;
    height: 220px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    position: relative;
    flex-shrink: 0;
}
footer .container {
    gap: 29px;
}
footer .footer-logo {
    width: 134px;
    height: 134px;
    background: url(../image/logo-568-512.png) no-repeat;
    background-size: 100%;
}
footer .company-name {
    font-size: 24px;
    line-height: normal;
}
footer .company-text-small {
    color: #acacac;
    font-size: 18px;
    line-height: normal;
}
/*==================== DETAIL ====================*/
.vip-detail .vip-image {
    width: 121px;
    height: 186px;
    background: url(../image/ranks/bg-rank.png) no-repeat 0 0 / 100% 100%;
    text-align: center;
    position: relative;
    padding-top: 6px;
}
.vip-detail .vip-image span {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: -6px;
}
.vip-detail .vip-image .rank-name {
    font-size: 19px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vip-detail .vip-image .rank-name.level-0 {
    color: #ffffff;
    font-size: 14px;
}
.vip-detail .vip-image .rank-name.level-1 {
    color: #696968;
}
.vip-detail .vip-image .rank-name.level-2 {
    color: #866f30;
}
.vip-detail .vip-image .rank-name.level-3 {
    color: #ffffff;
}
.vip-detail .vip-image .rank-name.level-4 {
    color: #316ecb;
}
.vip-detail .vip-image .rank-name.level-5 {
    font-size: 17px;
    color: #b31d00;
}
.vip-detail .vip-image .vip-level {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.rank-medal-small a {
    display: block;
    text-indent: -9999px;
}
.rank-medal-small {
    width: 35px;
    height: 35px;
    margin: 0 -4px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rank-medal-small.gray-medal {
    filter: grayscale(1);
}
.rank-medal-small.active {
    filter: grayscale(0);
}
.rank-medal-small.NONE {
    display: none;
}
.rank-medal-small.SILVER {
    background: url(../image/ranks/1-silver-small.png) no-repeat 0 0 / 100% 100%;
}
.rank-medal-small.GOLD {
    background: url(../image/ranks/2-gold-small.png) no-repeat 0 0 / 100% 100%;
}
.rank-medal-small.PLATINUM {
    background: url(../image/ranks/3-platinum-small.png) no-repeat 0 0 / 100% 100%;
}
.rank-medal-small.DIAMOND {
    background: url(../image/ranks/4-diamond-small.png) no-repeat 0 0 / 100% 100%;
}
.rank-medal-small.DIVINE {
    background: url(../image/ranks/5-divine-small.png) no-repeat 0 0 / 100% 100%;
}
.rank-medal.NONE {
    width: 158px;
    height: 125px;
    background: url(../image/ranks/1-silver.png) no-repeat;
    background-size: 100%;
    filter: blur(4px);
}
.rank-medal.SILVER {
    width: 158px;
    height: 125px;
    background: url(../image/ranks/1-silver.png) no-repeat;
    background-size: 100%;
}
.rank-medal.GOLD {
    width: 158px;
    height: 125px;
    background: url(../image/ranks/2-gold.png) no-repeat;
    background-size: 100%;
}
.rank-medal.PLATINUM {
    width: 158px;
    height: 125px;
    background: url(../image/ranks/3-platinum.png) no-repeat;
    background-size: 100%;
}
.rank-medal.DIAMOND {
    width: 158px;
    height: 125px;
    background: url(../image/ranks/4-diamond.png) no-repeat;
    background-size: 100%;
}
.rank-medal.DIVINE {
    width: 158px;
    height: 125px;
    background: url(../image/ranks/5-divine.png) no-repeat;
    background-size: 100%;
}
/* Animation cho rank change */
@keyframes rankFadeInScale {
    from {
        opacity: 0.5;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.rank-medal {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rank-medal.animate-in {
    animation: rankFadeInScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rank-description {
    transition: opacity 0.3s ease;
}
@keyframes viewRankGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 179, 71, 0.3);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(255, 179, 71, 0);
    }
}
.rank-medal-small.active {
    box-shadow: 0 0 12px rgba(255, 179, 71, 0.6), inset 0 0 8px rgba(255, 179, 71, 0.3);
    animation: viewRankGlow 1s ease-out;
}
.vip-detail .vip-description .vip-process-exp {
    font-size: 18px;
}
.vip-detail .vip-description p {
    margin: 0;
    margin-bottom: 4px;
}
.vip-detail .vip-description .process {
    width: 272px;
    border-radius: 4px;
    height: 8px;
    background: #ffb629;
    overflow: hidden;
}
.vip-detail .vip-description .process .current {
    width: 40%;
    height: 100%;
    background: #f8715f;
    position: relative;
    border: 1px solid #fcaa79;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vip-detail .vip-description .process .current.progress-updating {
    animation: progressPulse 0.6s ease-out;
}
@keyframes progressPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 113, 95, 0.7);
    }
    50% {
        box-shadow: 0 0 8px 4px rgba(248, 113, 95, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(248, 113, 95, 0);
    }
}
.vip-detail .vip-description .process .current::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    background: #f8715f;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #fff;
}
.vip-detail .vip-description p .js-next-vip-name.bold {
    color: #880000;
    font-weight: 600;
    text-transform: uppercase;
}
.vip-detail .vip-description .next-level {
    margin-top: 5px;
}
.vip-detail .vip-description .btn-reload {
    width: 18px;
    aspect-ratio: 40 / 33;
    background: url(../image/reload.png) no-repeat 0 0 / 100% 100%;
    border: none;
    outline: none;
    right: -10px;
    top: 10px;
    transform: translate(100%, -50%);
}
.vip-detail .vip-description .exp-wrap {
    max-width: 273px;
}
.vip-detail .vip-point-info {
    font-weight: bold;
    gap: 10px;
    margin-bottom: 10px;
}
.vip-detail .vip-point-info li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}
.vip-detail .vip-point-info li label {
    text-align: center;
    white-space: nowrap;
    position: relative;
    font-weight: 800;
}
.vip-detail .vip-point-info li:not(:last-child)::after {
    content: "";
    position: absolute;
    height: 13px;
    width: 1px;
    top: 5px;
    right: -5px;
    transform: translateX(50%);
    background: #000;
}
.vip-detail .vip-point-info li:nth-child(1)::after {
    right: 2px;
}
.vip-detail .vip-point-info li:nth-child(2)::after {
    right: -15px;
}
.vip-detail .vip-point-info li>span {
    color: #e24500;
    white-space: nowrap;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
}
.wrapper-mission {
    margin-top: 15px;
    background: #fff;
    box-shadow: 0 0px 7px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    color: #3b3b3b;
    padding: 10px 15px;
}
.wrapper-mission .mission-item .description {
    margin-right: 50px;
}
.wrapper-mission .mission-item .description span {
    color: #e24500;
    font-weight: bold;
    font-weight: 800;
}
.wrapper-mission .mission-item .btn-notice {
    color: #fff;
    background-color: #3fa4f9;
    padding: 5px 13px;
    text-decoration: none;
    border-radius: 5px;
}
.vip-description .btn-view-history {
    color: #08a3e4;
}
.vip-description .btn-view-history .icon-noti-circle {
    display: block;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    margin-right: 6px;
}
.vip-description .btn-view-history .icon-noti-circle.blue {
    background-color: #08a3e4;
}
.vip-description .btn-view-history .icon-noti-circle.orange {
    background-color: #f8715f;
}
.wrap-gifts {
    margin: 0 auto;
    justify-content: flex-start;
    padding: 0 20px;
}
.vip-gifts {
    margin-top: 20px;
}
.vip-gifts h3.title {
    min-width: 267px;
    height: 50px;
    background: url(../image/bg-title.png) no-repeat;
    white-space: nowrap;
    margin: 0;
    line-height: 40px;
    font-size: 16px;
    padding-left: 70px;
    user-select: none;
    padding-top: 10px;
    color: #980202;
    font-weight: 600;
    text-shadow: -1px -1px 0 #e69b1a, 1px -1px 0 #e69b1a, -1px 1px 0 #e69b1a, 1px 1px 0 #e69b1a;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.vip-gifts .gift-item {
    width: 540px;
    height: 121px;
    background: url(../image/bg-gift.png) no-repeat 0 0 / 100% 100%;
    padding: 12px;
    margin: 0 0 0 -5px;
    gap: 10px;
    flex: 0 0 calc((100% - 16px) / 2);
}
.vip-gifts .gift-item.off {
    filter: grayscale(.8);
    cursor: not-allowed;
}
.vip-gifts .gift-item .wrap-thump {
    width: 110px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vip-gifts .gift-item .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vip-gifts .gift-item .gift-name,
.popup .info-gift .gift-name {
    font-size: 16px;
    color: #980202;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.vip-gifts .gift-item .description {
    width: 290px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    margin-bottom: 5px;
    font-weight: bold;
}
.vip-gifts .gift-item .date-expire {
    margin: 0;
    font-size: 14px;
}
.vip-gifts .gift-item .get-gift {
    width: 106px;
    height: 34px;
    background: url(../image/btn-get-gift.png);
    border: none;
    outline: none;
    bottom: 16px;
    right: 19px;
}
.vip-gifts .gift-item .get-gift:hover {
    background-position: bottom;
}
.vip-privilege {
    margin-top: 22px;
}
.vip-privilege .vip-privilege-wrapper {
    padding-left: 20px;
}
.vip-privilege h3.title {
    min-width: 258px;
    height: 40px;
    background: url(../image/bg-title-2.png) no-repeat;
    white-space: nowrap;
    margin: 0;
    line-height: 40px;
    font-size: 16px;
    user-select: none;
    color: #980202;
    font-weight: 600;
    text-shadow: -1px -1px 0 #e69b1a, 1px -1px 0 #e69b1a, -1px 1px 0 #e69b1a, 1px 1px 0 #e69b1a;
    margin-bottom: 20px;
    padding-left: 42px;
}
.vip-privilege table {
    color: #fff;
    border-collapse: collapse;
}
.vip-privilege table thead th,
.vip-privilege table tbody td {
    padding: 8px 12px;
    border: 1px solid #000;
}
.vip-privilege table tbody td {
    color: #000;
}
.vip-privilege table thead th:nth-child(1) {
    background: #c6803d;
    width: 338px;
    max-width: 338px;
}
.vip-privilege table thead th:nth-child(2) {
    background: #980202;
    width: 745px;
    max-width: 745px;
}
.popup {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 100px;
    z-index: 3;
}
.popup .content {
    width: 815px;
    height: 376px;
    background: url(../image/popup-gift.png);
}
.popup .content .info-gift {
    height: 90px;
    padding: 8px 14px;
    gap: 12px;
}
.popup .content .popup-body {
    height: 214px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 14px;
}
.popup .content .popup-footer {
    height: 67px;
    padding: 0 30px;
}
.popup.popup-gift .vip-level {
    height: 100%;
    width: auto;
}
.popup .content .info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.popup .info-gift .gift-name {
    font-size: 22px;
}
.popup .content .info-gift p {
    margin-bottom: 0;
}
.popup .content .info-gift .description {
    line-height: 14px;
}
.popup .content .popup-body .title {
    font-size: 24px;
    font-weight: 600;
}
.popup .content .popup-body .code {
    width: 315px;
    height: 61px;
    background: url(../image/bg-code.png) no-repeat 0 0 / 100% 200%;
    position: relative;
    margin-top: 8px;
}
.popup .content .popup-body .code p,
.popup .content .popup-body .code button {
    position: absolute;
}
.popup .content .popup-body .code p {
    color: #fff;
    text-align: left;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}
.popup .content .popup-body .code button {
    right: 0;
    background: transparent;
    width: 60px;
    height: 100%;
    border: none;
    outline: none;
}
.popup .content .popup-body .code:hover {
    background-position: bottom;
}
.popup .content .popup-footer .close,
.popup .content .popup-footer .get-gift {
    min-width: 120px;
    color: #fff;
    font-size: 18px;
    line-height: 30px;
    border: none;
    outline: none;
    border-radius: 3px;
    text-align: center;
    text-decoration: unset;
}
.popup .content .popup-footer .close {
    background: #949494;
    display: block;
    width: fit-content;
}
.popup .content .popup-footer .close:hover {
    background: #c5c5c5;
}
.popup .content .popup-footer .get-gift {
    background: #68b7f8;
}
.popup .content .popup-footer .get-gift:hover {
    background: #8ec8f7;
}
.toast-message {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}
.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.reward-history {
    padding-top: 10px;
}
.reward-history .wrap-gifts {
    padding: 0 41px;
    gap: 18px;
    margin-right: 20px;
    width: 100%;
}
@keyframes bagItemBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
@keyframes bagItemPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 158, 59, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(249, 158, 59, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 158, 59, 0);
    }
}
.reward-history.bag .bag-item {
    width: 257px;
    height: 273px;
    background: url(../image/bg-gift-bag-2.png) no-repeat;
    background-size: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 8px;
}
.reward-history.bag .bag-item:hover {
    background-position: bottom;
    transform: translateY(-6px) scale(1.05);
    animation: bagItemBounce 0.6s ease-in-out;
}
.reward-history.bag .bag-item.active {
    background-position: bottom;
    animation: bagItemPulse 0.8s ease-out;
    box-shadow: 0 8px 24px rgba(249, 158, 59, 0.3);
}
.reward-history.bag .gift-info {
    width: 392px;
    height: 562px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    position: relative;
}
.reward-history.bag .gift-info::before {
    content: "";
    position: absolute;
    left: 0;
    top: 55px;
    width: 100%;
    height: 1px;
    background: rgba(120, 120, 120, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.vip-title {
    width: 100%;
    height: 32px;
    text-indent: -9999px;
}
.vip-title.level-1 {
    width: 219px;
    background: url(../image/bag/name/2/1.png) no-repeat;
}
.vip-title.level-2 {
    width: 235px;
    background: url(../image/bag/name/2/2.png) no-repeat;
}
.vip-title.level-3 {
    width: 281px;
    background: url(../image/bag/name/2/3.png) no-repeat;
}
.vip-title.level-4 {
    width: 300px;
    background: url(../image/bag/name/2/4.png) no-repeat;
}
.vip-title.level-5 {
    width: 326px;
    background: url(../image/bag/name/2/5.png) no-repeat;
}
.reward-history.bag .bag-item .wrap-image {
    display: flex;
    width: 175px;
    height: 182px;
}
.reward-history.bag .bag-item .wrap-image.level-1 {
    background: url(../image/bag/1.png) no-repeat;
    background-size: 100%;
}
.reward-history.bag .bag-item .wrap-image.level-2 {
    background: url(../image/bag/2.png) no-repeat;
    background-size: 100%;
}
.reward-history.bag .bag-item .wrap-image.level-3 {
    background: url(../image/bag/3.png) no-repeat;
    background-size: 100%;
}
.reward-history.bag .bag-item .wrap-image.level-4 {
    background: url(../image/bag/4.png) no-repeat;
    background-size: 100%;
}
.reward-history.bag .bag-item .wrap-image.level-5 {
    background: url(../image/bag/5.png) no-repeat;
    background-size: 100%;
}
.reward-history.bag .bag-item .rank-level-name.level-1 {
    background: url(../image/bag/name/1.png) no-repeat;
    width: 100%;
    height: 28px;
    background-size: 100%;
}
.reward-history.bag .bag-item .rank-level-name.level-2 {
    background: url(../image/bag/name/2.png) no-repeat;
    width: 197px;
    height: 28px;
    background-size: 100%;
}
.reward-history.bag .bag-item .rank-level-name.level-3 {
    background: url(../image/bag/name/3.png) no-repeat;
    width: 185px;
    height: 46px;
    background-size: 100%;
}
.reward-history.bag .bag-item .rank-level-name.level-4 {
    background: url(../image/bag/name/4.png) no-repeat;
    width: 185px;
    height: 46px;
    background-size: 100%;
}
.reward-history.bag .bag-item .rank-level-name.level-5 {
    background: url(../image/bag/name/5.png) no-repeat;
    width: 185px;
    height: 46px;
    background-size: 100%;
}
.reward-history.bag .bag-item .description {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 20px;
    width: 200px;
    height: 39px;
    font-weight: 700;
    text-align: center;
    font-size: 15px;
}
.reward-history.bag .gift-info .gift-body {
    padding: 12px;
}
.reward-history.bag .gift-info .gift-body label {
    color: #d7a85e;
    font-weight: bold;
}
.reward-history.bag .gift-info .gift-body p {
    margin: 12px 0;
}
.paging .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}
.paging .pagination .page-item {
    display: block;
    width: 27px;
    height: 27px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    line-height: 17px;
}
.paging .pagination .page-item .page-link {
    background-color: #ff6600;
    width: 100%;
    height: 100%;
    color: #fff;
    padding-left: 8px;
}
.paging .pagination .page-item.active .page-link {
    display: block;
    background-color: #566d97;
}
.paging .pagination .page-link.next,
.paging .pagination .page-link.prev {
    position: relative;
}
.paging .pagination .page-link.next::before,
.paging .pagination .page-link.prev::before {
    content: "";
    position: absolute;
    height: 60%;
    aspect-ratio: 39 / 71;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../image/icon-arrow-left.png) no-repeat 0 0 / 100% 100%;
}
.paging .pagination .page-link.next::before {
    transform: translate(-50%, -50%) scaleX(-1);
}
.page-item:first-child .page-link {
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
}
.history-point-page {
    padding: 10px 15px;
    border-radius: 0 0 5px 5px;
    position: relative;
}
.history-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    position: relative;
    list-style: none;
    padding-left: 0;
}
.history-tabs .nav-item {
    margin-right: 0;
}
.history-tabs .nav-link {
    display: block;
    padding: 10px 16px;
    background: #c4c4c4;
    color: #52513c;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    border: none;
    position: relative;
    cursor: pointer;
    transition: background-color 0.25s ease;
}
.history-tabs .nav-link:hover {
    background: #d0d0d0;
}
.history-tabs .nav-link.active {
    background: #d9d8c1;
    color: #52513c;
}
/* Div-Based Table Layout */
.history-table {
    width: 100%;
    margin-bottom: 20px;
    overflow-x: auto;
}
.history-table .table-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    gap: 0;
    min-width: fit-content;
    border-bottom: 1px solid #000;
}
.history-table .table-body {
    display: flex;
    flex-direction: column;
}
.history-table .table-row {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 1px solid #ddd;
    gap: 0;
    min-width: fit-content;
    width: 100%;
}
.history-table .table-col {
    padding: 12px;
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
}
/* Column Width Management */
.history-table .col-detail {
    flex: 1 1 auto;
    min-width: 280px;
}
.history-table .col-exp-gain {
    flex: 0 0 140px;
    min-width: 140px;
    text-align: right;
}
.history-table .col-exp-begin {
    flex: 0 0 140px;
    min-width: 140px;
    text-align: right;
}
.history-table .col-value {
    flex: 0 0 140px;
    min-width: 140px;
    text-align: right;
}
.history-table .col-time {
    flex: 0 0 180px;
    min-width: 180px;
    text-align: right;
}

/* Description Text */
.history-table .description-text {
    font-size: 14px;
    color: #333;
}

/* Value Styling */
.history-table .value {
    font-weight: 700;
    font-size: 13px;
}

.history-table .value.exp-positive {
    color: #28a745;
}

.history-table .value.exp-negative {
    color: #dc3545;
}

/* Point Value Styling */
.history-table .point-value {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.history-table .point-value .label {
    font-weight: 600;
    color: #666;
    min-width: 50px;
}

.history-table .point-value .value {
    font-weight: 700;
}
.history-table-wrap .form-search {
    padding: 10px 0 0 10px;
}
.history-table-wrap .form-search .filter-select-wrap {
    position: relative;
}
.history-table-wrap .form-search select {
    width: 100%;
    color: #52513c;
    font-weight: 600;
    background: #fff;
    padding-right: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px;
    padding: 8px 28px 8px 12px;
}
.history-table-wrap .form-search .filter-select-wrap .icon-arrow-right {
    position: absolute;
    width: 7px;
    height: 15px;
    background: #fff url("../image/icon-arrow-right.png") no-repeat 0 0 / 100% 100%;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.25s ease-in-out;
    will-change: transform;
}
.history-table-wrap .form-search .filter-select-wrap.opened .icon-arrow-right {
    transform: translateY(-50%) rotate(90deg);
}
.history-table-wrap {
    background-color: #d9d8c1;
}
/* Responsive Table - Mobile View */
@media screen and (max-width: 768px) {
    .history-table .table-header {
        display: none;
    }
    .history-table .table-row {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 0;
    }
    .history-table .table-body {
        padding: 0 9px;
    }
    .history-point-page {
        padding: 10px 0px;
    }
    .history-table-wrap.history-point-table,
    .history-table-wrap.history-gift-table {
        padding-top: 10px;
    }
    .history-table .table-col {
        display: block;
        padding: 8px 10px;
        border-bottom: 1px solid #eee;
        flex: none;
        min-width: unset;
        text-align: left;
        display: flex;
        gap: 5px;
        align-items: center;
        align-items: center;
    }
    .history-table .table-col:last-child {
        border-bottom: none;
        font-size: 13px;
    }
    .history-table .table-col[data-label]::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #666;
        margin-bottom: -1px;
        font-size: 12px;
    }
}
/*==================== RESPONSIVE ====================*/
@media screen and (max-width: 1220px) {
    .wrapper-cover {
        padding: 20px 33px 200px 33px;
    }
    .wrapper-content {
        max-width: 1140px;
        min-height: 1045px;
        padding-top: 8px;
    }
    .main-header .logo {
        background-size: 100%;
        width: 125px;
        height: 50px;
    }
    .main-header .wrapper-center-nav {
        font-size: 16px;
        gap: 16px;
    }
    .wrap-gifts {
        gap: 3px;
    }
    .vip-gifts .gift-item {
        width: stretch;
        height: 123px;
        margin: 0 auto;
        padding: 0 9px;
    }
    .vip-gifts .gift-item .get-gift {
        width: 95px;
        height: 30px;
        background-size: 100%;
    }
    .vip-gifts .gift-item .wrap-thump {
        width: auto;
        height: 100%;
        /* display: block; */
        /* padding-top: 20px; */
        margin-right: 7px;
    }
    .vip-gifts .gift-item .wrap-thump img {
        width: 67px;
        max-width: unset;
    }
    .vip-gifts .gift-item .gift-name, .popup .info-gift .gift-name {
        font-size: 14px;
    }
    .vip-gifts .gift-item .description {
        font-size: 13px;
    }


    .bag .bag-item .wrap-image {
        width: 105px;
        height: 99px;
    }
    .sub-header .menu-item {
        font-size: inherit;
    }
    .reward-history.bag .wrap-gifts {
        padding: 0;
        gap: 6px;
        margin: 0 auto;
        max-width: 529px;
        justify-content: flex-start;
    }

    .reward-history.bag .bag-item .rank-level-name.level-1 {
        width: 100%;
        height: 28px;
        background-size: 100%;
    }
    .reward-history.bag .bag-item .rank-level-name.level-2 {
        width: 197px;
        height: 28px;
    }
    .reward-history.bag .bag-item .rank-level-name.level-3 {
        width: 152px;
        height: 40px;
    }
    .reward-history.bag .bag-item .rank-level-name.level-4 {
        width: 185px;
        height: 46px;
    }
    .reward-history.bag .bag-item .description {
        font-size: 14px;
        line-height: inherit;
        height: unset;
        text-align: center;
        min-height: 28px;
    }
    .reward-history.bag .gift-info .gift-body label {
        margin-bottom: 8px;
    }
    footer {
        height: 200px;
    }
    footer .footer-logo {
        width: 100px;
        height: 99px;
        margin-right: 8px;
    }
}
@media screen and (max-width: 768px) {
    header .user-info .btn-user>span,
    header .user-info ul.menu li.id .username {
        max-width: 160px;
    }

}
@media screen and (max-width: 576px) {
    .main-header .logo {
        background-size: 100%;
        width: 115px;
        height: 46px;
        margin-right: 11px;
    }
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 39px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        margin: 0;
        z-index: 1000;
    }

    .hamburger-menu span {
        display: block;
        width: 85%;
        height: 2px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
    }

    .main-header .wrapper-center-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #000;
        flex-direction: column !important;
        justify-content: flex-start;
        gap: 0 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding-top: 30px;
        margin-top: 0 !important;
        font-size: 16px;
        text-align: left;
    }

    .main-header .wrapper-center-nav.active {
        transform: translateX(0);
    }

    .main-header .wrapper-center-nav li {
        width: 100%;
        border-bottom: 1px solid #333;
    }

    .main-header .wrapper-center-nav li a {
        display: block;
        padding: 15px 30px !important;
        color: #fff !important;
        text-decoration: none;
    }

    .main-header .wrapper-center-nav li a:hover,
    .main-header .wrapper-center-nav li a.active {
        background-color: #2a2a2a;
        color: #f0f0f0 !important;
    }

    .main-header .wrapper-center-nav li a::before {
        display: none !important;
    }

    .main-header .btn-login {
        width: 76px;
        height: 28px;
        font-size: 13px;
    }
    .main-header .user-group {
        margin-left: auto;
    }
    .main-header .user-info .btn-user {
        width: 116px;
        height: 28px;
        font-size: 13px;
    }
    .main-header .user-info .btn-user::after {
        right: 6px;
        width: 15px;
        height: 8px;
    }
    .main-header .user-info ul.menu li.id {
        padding: 0 16px;
        margin: 0px 0 4px 0;
    }
    .main-header .user-info ul.menu li.id .username {
        font-size: 14px;
    }
    /* Mobile User Info Header */
    .main-header .user-info ul.menu .user-info-header {
        padding: 10px 12px;
        gap: 12px !important;
    }
    .main-header .user-info ul.menu .user-info-text .username {
        font-size: 14px;
    }
    .main-header .user-info ul.menu {
        right: -17px !important;
        width: 280px !important;
        border-radius: 5px;
    }
    .main-header .user-info .btn-user {
        width: 43px;
        height: 43px;
        font-size: 26px;
        border-radius: 50%;
        padding: 0;
    }
    .main-header .user-info .avatar-text {
        display: block;
        text-align: center;
        line-height: 46px;
    }
    .main-header .user-info .btn-user .display-name {
        display: none !important;
    }
    .main-header .user-info {
        padding-right: 22px;
    }
    .main-header .user-info .btn-user .icon-user-white {
        display: none !important;
    }
    .main-header .user-info .btn-user::after {
        right: -16px;
        content: "";
        position: absolute;
        top: 56%;
        transform: translateY(-50%) rotate(0deg);
        transform-origin: center calc(50% - 2px);
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 8px solid #808080;
        transition: transform 0.25s ease;
    }
    .main-header .user-info .btn-user.show::after {
        transform: translateY(-50%) rotate(180deg);
        border-top: 8px solid #fc7676;
    }
    .sub-header {
        padding: 0;
        font-size: 14px;
    }
    .sub-header .icon-card-user {
        width: 23px;
        height: 16px;
    }
    .sub-header .icon-bag {
        width: 14px;
        height: 18px;
    }
    .sub-header .icon-history {
        width: 16px;
        height: 15px;
    }
    .wrapper-cover {
        padding: 0 9px 69px 9px;
    }
    .vip-detail {
        flex-direction: column;
    }
    /* .vip-detail .vip-description p {
        font-size: 12px;
    }
    .vip-detail .vip-description .process {
        width: 222px;
    }
    .vip-detail .vip-description .vip-process-exp {
        font-size: 16px;
    }*/
    .vip-detail .mission-item {
        display: flex;
        align-items: center;
    }
    .vip-detail .wrapper-mission .mission-item .description {
        margin-right: 0;
        margin-bottom: 4px;
    }
    .vip-detail .wrapper-mission .mission-item .btn-notice {
        padding: 0 4px;
        width: 109px;
        height: 29px;
        text-align: center;
        display: flex;
        align-items: center;
        font-size: 14px;
    }
    .vip-detail .vip-description {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .reward-history.bag {
        padding-top: 20px;
    }
    .reward-history.bag .wrap-gifts {
        padding: 0;
        gap: 9px;
        margin-right: 0;
        justify-content: flex-start;
        margin: 0 auto;
        max-width: 290px;
    }
    .reward-history.bag .bag-item {
        width: 135px;
        height: 143px;
    }
    .reward-history.bag .bag-item .wrap-image {
        width: 100px;
        height: 100px;
    }
    .reward-history.bag .bag-item .rank-level-name.level-1 {
        width: 126px;
        height: 32px;
    }
    .reward-history.bag .bag-item .rank-level-name.level-2 {
        width: 126px;
        height: 32px;
    }
    .reward-history.bag .bag-item .rank-level-name.level-3 {
        width: 126px;
        height: 32px;
    }
    .reward-history.bag .bag-item .rank-level-name.level-4 {
        width: 126px;
        height: 32px;
    }
    .reward-history.bag .bag-item .rank-level-name.level-5 {
        width: 126px;
        height: 32px;
    }
    .reward-history.bag .bag-item .description {
        display: none;
    }
    .history-tabs .nav-link {
        padding: 7px 5px;
        font-size: 13px;
    }
    .history-table {
        margin: 20px 0;
    }

    footer .footer-logo {
        height: 60px;
    }
    footer .company-name {
        font-size: 18px;
    }
    footer .company-text-small {
        font-size: 14px;
    }
    /* .container,
    .wrapper-content {
        max-width: 554px;
    }
    .wrapper-content {
        min-height: 80vh;
        padding-bottom: 140px;
    }
    footer {
        height: 120px;
    }
    header .container {
        padding: 0;
        justify-content: space-between;
    }
    header .user-info ul.menu {
        width: 200px !important;
    }
    header .user-info ul.menu li.id .username {
        max-width: 100%;
    }
    header .wrapper-center-nav {
        font-size: 15px;
        flex-direction: column;
        line-height: 18px;
        gap: 0px;
        margin-top: 0 !important;
    }
    header .wrapper-center-nav a {
        width: 100%;
        justify-content: flex-end;
    }
    header .wrapper-center-nav li:first-child a::before {
        display: block;
    }
    header .wrapper-center-nav li a::before {
        left: unset;
        right: -10px;
        height: 14px;
    }
    header .user-info {
        max-width: 215px;
    }
    header .user-info .btn-user>span,
    header .user-info ul.menu li.id .username {
        max-width: 130px;
    }
    header .wrap-nav,
    header .user-group {
        width: fit-content !important;
        margin: 0 20px;
    }
    header .btn-login {
        margin-left: 100px;
    }
    .wrapper-content {
        padding: 15px 10px;
    }
    .vip-gifts .gift-item {
        width: 100%;
    }
    footer .container {
        gap: 10px;
        padding: 0;
    }
    .footer-logo {
        flex-shrink: 0;
    }
    footer .company-text-small {
        font-size: 16px;
    }
    .popup {
        align-items: flex-start;
        padding-top: 120px;
    }
    .popup .content {
        background: url(../image/vipM2/popup-gift-mobile.png);
        width: 544px;
        height: 364px;
        max-width: 100%;
    }
    .bag {
        max-width: 100%;
        margin: auto;
    }
    .bag .wrap-gifts,
    .bag .gift-info {
        width: 50%;
    }
    .bag .bag-item {
        width: 130px;
        height: 140px;
        padding: 10px;
    }
    .bag .bag-item h3 {
        font-size: 15px;
        margin: 0;
    }
    .bag .bag-item .description {
        font-size: 14px;
        line-height: 14px;
        height: unset;
        text-align: center;
    }
    .vip-detail .vip-point-info li {
        padding: 0 6px;
    }
    .vip-detail .vip-image span.vip-name {
        margin-top: 2px;
    }
    .bag .gift-info .gift-header,
    #gift-empty {
        height: 34px;
        line-height: 34px;
    }
    .bag .gift-info::before {
        top: 34px;
    }
    .bag .gift-info .gift-body p {
        margin: 8px 0;
    }
    .bag .gift-info .gift-body label {
        margin-bottom: 0;
    }
    .history-point-page {
        margin-top: 32px;
    }
    .history-table-wrap .form-search .filter-select-wrap option {
        font-size: 12px;
    } */
    .vip-privilege .vip-privilege-wrapper {
        padding-left: 0;
    }
}
@media screen and (max-width: 360px) {
    /*small device */
    .vip-detail .vip-point-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .vip-detail .vip-point-info li::after {
        display: none;
    }
}