
/* =================================== */
/* === STYLES FOR SHOP PAGE (TỐI ƯU) === */
/* =================================== */

/* === Khu vực Nổi Bật (Slider) === */
.featured-scroll-container {
    overflow-x: auto;
    scrollbar-width: none; /* Ẩn scrollbar trên Firefox */
}
.featured-scroll-container::-webkit-scrollbar {
    display: none; /* Ẩn scrollbar trên Chrome, Safari */
}
.scrollable-list {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem; /* Tạo khoảng trống nếu có scrollbar */
}
.featured-item {
    flex: 0 0 90%; /* Trên mobile, mỗi item chiếm 90% */
}

/* === Khu vực Tab cuộn ngang === */
.scrollable-tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Ẩn scrollbar */
}
.scrollable-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Ẩn scrollbar */
}
.shop-tabs {
    flex-wrap: nowrap; /* Ngăn các tab xuống dòng */
    border-bottom: 2px solid #333;
}
.shop-tabs .nav-item {
    flex-shrink: 0; /* Không cho các tab bị co lại */
}
.shop-tabs .nav-link {
    color: #aaa;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    white-space: nowrap; /* Giữ chữ trên một dòng */
}
.shop-tabs .nav-link:hover {
    color: #fff;
}
.shop-tabs .nav-link.active {
    color: #e0a836;
    border-color: #e0a836;
}


/* === Thẻ Vật Phẩm Chung === */
.shop-item-card {
    background-color: #121221;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.shop-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #e0a836;
}
.shop-item-card .card-img-top {
    aspect-ratio: 1/1; /* Giữ ảnh luôn vuông */
    object-fit: cover;
}
.shop-item-card .card-body {
    padding: 0.75rem;
    flex-grow: 1; /* Đẩy footer xuống dưới */
}
.shop-item-card .card-title {
    color: #f0f0f0;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
}
.shop-item-card .card-footer {
    background-color: #1a1a2a;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Thẻ Nổi Bật (Featured) */
.shop-item-card.featured .card-body {
    padding: 1rem;
}
.shop-item-card.featured .card-title {
    font-size: 1.25rem;
    color: #e0a836;
}
.shop-item-card.featured .card-text {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.5rem;
}

/* Giá và Nút Mua */
.item-price span {
    font-weight: bold;
}
.item-price .price-gem { color: #4edfff; }
.item-price .price-gold { color: #e0a836; }
.btn-buy, .btn-buy-sm {
    background-color: #e0a836;
    color: #111;
    font-weight: bold;
    border: none;
    border-radius: 5px;
}
.btn-buy-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}


/* === MEDIA QUERIES === */
@media (min-width: 768px) {
    .featured-item {
        flex-basis: 48%; /* Trên tablet, hiển thị 2 item */
    }
}
@media (min-width: 992px) {
    .featured-item {
        flex-basis: 49%; /* Trên desktop lớn, vẫn giữ 2 item để thẻ to và đẹp */
    }
}

/* Thẻ vật phẩm chung - Thiết kế Mobile-First */
.shop-item-card {
    background-color: #1a1a2a; /* Nền tối hơn một chút */
    border: 1px solid #333; /* Viền tinh tế hơn */
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.shop-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #e0a836;
}

.shop-item-card .card-img-top {
    aspect-ratio: 1/1; /* Giữ ảnh luôn vuông, rất quan trọng cho bố cục lưới */
    object-fit: cover;
}

.shop-item-card .card-body {
    padding: 0.75rem; /* Padding nhỏ hơn cho mobile */
    text-align: center;
    flex-grow: 1; /* Đảm bảo các card có chiều cao bằng nhau trong 1 hàng */
    display: flex;
    align-items: center; /* Căn giữa tên vật phẩm theo chiều dọc */
    justify-content: center;
}

.shop-item-card .card-title {
    color: #f0f0f0;
    font-weight: 500;
    font-size: 0.9rem; /* Cỡ chữ nhỏ hơn cho mobile */
    margin: 0;
    /* Giới hạn tên vật phẩm chỉ trong 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-item-card .card-footer {
    background-color: #121221;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
}

/* Giá vật phẩm */
.item-price span {
    display: inline-flex; /* Dùng flex để căn icon và text đẹp hơn */
    align-items: center;
    gap: 0.3rem; /* Khoảng cách giữa icon và số */
    font-weight: bold;
    font-size: 1rem; /* Cỡ chữ giá cho mobile */
}
.item-price .price-gem { color: #4edfff; }
.item-price .price-gold { color: #e0a836; }

/* Nút mua nhỏ */
.btn-buy-sm {
    background-color: #e0a836;
    color: #111;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem; /* Tăng padding để dễ bấm hơn trên mobile */
}
.btn-buy-sm:hover {
    background-color: #ffdc99;
    color: #000;
}


/* === MEDIA QUERY CHO DESKTOP === */
/* Áp dụng cho màn hình từ 992px trở lên (lg) */
@media (min-width: 992px) {
    .shop-item-card .card-body {
        padding: 1rem; /* Tăng padding cho desktop */
    }
    .shop-item-card .card-title {
        font-size: 1rem; /* Tăng cỡ chữ title cho desktop */
    }
    .shop-item-card .card-footer {
        padding: 0.75rem 1rem;
    }
    .item-price span {
        font-size: 1.1rem; /* Tăng cỡ chữ giá cho desktop */
    }
}
.pagination .page-link {
    background-color: #2a2a3a;
    border-color: #444;
    color: #aaa;
    box-shadow: none; /* Bỏ box-shadow mặc định */
}

.pagination .page-link:hover {
    background-color: #3a3a4a;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #e0a836;
    border-color: #e0a836;
    color: #111;
    font-weight: bold;
}

.pagination .page-item.disabled .page-link {
    background-color: #1a1a2a;
    border-color: #333;
    color: #555;
}
/* ============================================= */
/* === STYLES FOR TREASURE CHEST (TỐI ƯU) === */
/* ============================================= */

.treasure-chest-card {
    background: linear-gradient(145deg, #1e1e32, #121221);
    border: 1px solid #3a3a4a;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Giúp các thẻ trong 1 hàng có chiều cao bằng nhau */
    display: flex;
    flex-direction: column;
}

.treasure-chest-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chest-image {
    max-width: 120px; /* Cho ảnh nhỏ hơn một chút trên mobile */
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
    align-self: center; /* Căn giữa ảnh */
}

.treasure-chest-card:hover .chest-image {
    transform: rotate(5deg) scale(1.1);
}

.chest-content {
    flex-grow: 1; /* Đẩy các nút xuống dưới cùng */
    display: flex;
    flex-direction: column;
}

.chest-title {
    color: #e0a836; font-weight: bold;
}

.chest-description {
    color: #aaa;
    font-size: 0.85rem;
    min-height: 50px;
    flex-grow: 1; /* Cho phép mô tả co giãn */
}

.chest-price { font-size: 1.1rem; }
.btn-buy-chest {
    background: linear-gradient(45deg, #e0a836, #ffc966);
    color: #111; border: none; font-weight: bold;
    text-transform: uppercase; padding: 0.75rem; border-radius: 5px;
    transition: all 0.3s ease;
}
.btn-buy-chest:hover {
    color: #000; box-shadow: 0 0 15px rgba(224, 168, 54, 0.6);
}

/* Hiệu ứng hào quang */
.chest-glow {
    position: absolute; top: 50%; left: 50%; width: 200px; height: 200px;
    transform: translate(-50%, -50%); z-index: 1; transition: all 0.5s ease;
}
.chest-glow {
    background: radial-gradient(circle, rgba(78, 223, 255, 0.3) 0%, rgba(78, 223, 255, 0) 70%);
}
.chest-glow.gold {
    background: radial-gradient(circle, rgba(224, 168, 54, 0.3) 0%, rgba(224, 168, 54, 0) 70%);
}
.treasure-chest-card:hover .chest-glow {
    transform: translate(-50%, -50%) scale(1.5); opacity: 0.5;
}

/* Tái sử dụng CSS pagination từ trước */
.pagination .page-link {
    background-color: #2a2a3a; border-color: #444; color: #aaa; box-shadow: none;
}
.pagination .page-link:hover { background-color: #3a3a4a; color: #fff; }
.pagination .page-item.active .page-link { background-color: #e0a836; border-color: #e0a836; color: #111; font-weight: bold; }
.pagination .page-item.disabled .page-link { background-color: #1a1a2a; border-color: #333; color: #555; }

/* ======================================= */
/* === STYLES FOR FLASH SALE SLIDER    === */
/* ======================================= */

.flash-sale-container {
    background-color: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.flash-sale-header h3 { color: #ff6464; margin: 0; font-weight: bold; }
.countdown-timer { color: #fff; background-color: rgba(0, 0, 0, 0.3); padding: 0.5rem 1rem; border-radius: 5px; font-weight: bold; flex-shrink: 0; }

/* Wrapper cho thanh trượt và nút */
.flash-sale-scroll-wrapper {
    position: relative;
}

/* Thanh trượt ngang */
.scrollable-item-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Giúp trượt mượt hơn trên mobile */
    -webkit-overflow-scrolling: touch; /* Hỗ trợ trượt mượt trên iOS */
    scrollbar-width: none; /* Ẩn scrollbar trên Firefox */
    padding-bottom: 1rem; /* Tạo khoảng trống để không bị che */
}
/* Ẩn scrollbar trên Chrome, Safari */
.scrollable-item-list::-webkit-scrollbar {
    display: none;
}

/* Mỗi vật phẩm trong thanh trượt */
.scrollable-item {
    flex: 0 0 50%; /* Trên mobile, mỗi item chiếm 50% -> hiển thị 2 cái */
    scroll-snap-align: start;
    padding: 0 0.5rem;
}

/* Cấu trúc thẻ vật phẩm */
.flash-sale-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.flash-sale-item .card-body {
    flex-grow: 1; /* Đẩy footer xuống dưới */
}
.flash-sale-item .card-footer {
    background-color: #2a2a3a;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item-price .price-gold {
    font-size: 1.2rem;
    font-weight: bold;
}
.btn-buy-now {
    background-color: #e0a836;
    color: #111;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Nút điều hướng cho Desktop */
.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 26, 42, 0.8);
    color: #fff;
    border: 1px solid #444;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 3;
}
.scroll-nav-btn.prev { left: -20px; }
.scroll-nav-btn.next { right: -20px; }

/* === MEDIA QUERY CHO DESKTOP === */
/* Áp dụng cho màn hình từ 992px trở lên (lg) */
@media (min-width: 992px) {
    .scrollable-item {
        flex-basis: 25%; /* Trên desktop, mỗi item chiếm 25% -> hiển thị 4 cái */
    }
}

/* =================================== */
/* === STYLES FOR BUNDLE CARDS    === */
/* =================================== */
.bundle-card {
    background-color: #1a1a2a;
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease;
}
.bundle-card:hover {
    box-shadow: 0 0 20px rgba(224, 168, 54, 0.2);
}

.bundle-header {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
}

.bundle-tag {
    background-color: rgba(255, 50, 50, 0.8);
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}
.bundle-tag.hot {
    background-color: rgba(224, 168, 54, 0.9);
    color: #111;
}

.bundle-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bundle-title {
    color: #fff;
    font-weight: bold;
}
.bundle-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.bundle-items-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.bundle-items-list li {
    color: #ddd;
    margin-bottom: 0.5rem;
}
.bundle-items-list li i {
    color: #e0a836;
    margin-right: 10px;
}

.bundle-purchase-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 5px;
}

.bundle-price small {
    display: block;
    color: #ff6464;
    font-weight: bold;
}
.bundle-price .price-gem {
    font-size: 1.75rem;
}

.btn-buy-bundle {
    background: linear-gradient(45deg, #e0a836, #ffc966);
    color: #111;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.btn-buy-bundle:hover {
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(224, 168, 54, 0.6);
}
/* ======================================= */
/* === STYLES FOR RECOMMENDATION SLIDER === */
/* ======================================= */

/* Wrapper chính để định vị các nút */
.recommendation-slider-wrapper {
    position: relative;
}

.recommendation-container {
    background: url('https://i.imgur.com/sC5vL9L.jpg') no-repeat center center;
    background-size: cover;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden; /* Quan trọng để các nút không bị che bởi lớp phủ */
}
/* Lớp phủ mờ */
.recommendation-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(10, 10, 26, 0.85);
    border-radius: 10px;
    backdrop-filter: blur(3px);
}

.recommendation-header, .recommendation-items {
    position: relative;
    z-index: 2;
}

.recommendation-header h4 {
    color: #e0a836;
    font-weight: bold;
    display: inline-block;
    border-bottom: 2px solid #e0a836;
    padding-bottom: 5px;
}
.recommendation-header p { color: #ccc; }
.recommendation-header p strong { color: #fff; }

.recommendation-items {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
}
.recommendation-items::-webkit-scrollbar {
    display: none;
}

.rec-item {
    display: block;
    text-decoration: none;
    flex: 0 0 180px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}
.rec-item:hover {
    transform: translateY(-10px);
}
.rec-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #444;
    transition: border-color 0.3s ease;
}
.rec-item:hover img {
    border-color: #e0a836;
}
.rec-item-name {
    color: #fff;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Tái sử dụng style nút điều hướng từ Flash Sale */
.scroll-navigation .scroll-nav-btn {
    position: absolute;
    top: 60%; /* Đẩy nút xuống dưới một chút cho cân đối */
    transform: translateY(-50%);
    background-color: rgba(26, 26, 42, 0.8);
    color: #fff;
    border: 1px solid #444;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    z-index: 3;
}
.scroll-navigation .scroll-nav-btn.prev { left: 10px; }
.scroll-navigation .scroll-nav-btn.next { right: 10px; }

/* =========================================== */
/* === STYLES FOR BATTLE PASS (TỐI ƯU) === */
/* =========================================== */

.battle-pass-container {
    background: linear-gradient(135deg, #1c152e, #2f274a);
    padding: 1.5rem; /* Padding cho mobile */
    border-radius: 10px;
    border: 1px solid #4a3f6f;
}

/* Header: Mặc định xếp dọc cho mobile */
.battle-pass-header {
    display: flex;
    flex-direction: column; /* Xếp dọc */
    align-items: flex-start; /* Căn lề trái */
    gap: 1rem;
    text-align: left; /* Căn text lề trái */
    margin-bottom: 2rem;
}
.battle-pass-header h2 {
    color: #fff; font-weight: bold; margin: 0; text-shadow: 0 0 10px #d6b1ff;
    font-size: 1.5rem; /* Cỡ chữ cho mobile */
}
.battle-pass-header p {
    color: #d6b1ff; margin: 0; font-size: 0.9rem;
}
.btn-upgrade-pass {
    background: linear-gradient(45deg, #a862ff, #7c37e6);
    color: #fff; border: none; font-weight: bold; padding: 0.75rem 1.5rem;
    border-radius: 5px; font-size: 1rem; transition: all 0.3s ease;
    width: 100%; /* Chiếm toàn bộ chiều rộng trên mobile */
}
.btn-upgrade-pass:hover {
    color: #fff; transform: scale(1.05); box-shadow: 0 0 20px rgba(168, 98, 255, 0.7);
}

/* Phần thưởng: Mặc định xếp dọc cho mobile */
.battle-pass-rewards {
    display: flex;
    flex-direction: column; /* Xếp dọc */
    align-items: center;
    gap: 1rem;
}

.reward-milestone-card {
    background-color: rgba(0,0,0,0.2);
    border: 2px solid #4a3f6f;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    width: 100%; /* Chiếm toàn bộ chiều rộng */
    max-width: 250px; /* Nhưng không quá to */
    transition: all 0.3s ease;
}
.reward-milestone-card:hover {
    transform: translateY(-5px);
    border-color: #a862ff;
}
.reward-milestone-card.premium {
    border-color: #e0a836;
    box-shadow: 0 0 25px rgba(224, 168, 54, 0.4);
}
.reward-milestone-card.premium:hover { border-color: #ffdc99; }

.reward-level {
    background-color: #4a3f6f;
    color: #fff; display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 0.8rem; font-weight: bold; margin-bottom: 1rem;
}
.reward-milestone-card.premium .reward-level { background-color: #e0a836; color: #111; }
.reward-milestone-card img {
    width: 100px; height: 100px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem;
}
.reward-name { color: #fff; font-weight: 500; }

/* Thanh tiến trình: Mặc định xếp dọc cho mobile */
.reward-progress-bar {
    display: flex;
    flex-direction: column; /* Xếp dọc */
    justify-content: center;
    gap: 10px;
    margin: 0.5rem 0;
}
.progress-dot {
    width: 8px; height: 8px; background-color: #4a3f6f; border-radius: 50%;
}


/* === MEDIA QUERY CHO DESKTOP === */
/* Áp dụng cho màn hình từ 992px trở lên (lg) */
@media (min-width: 992px) {
    .battle-pass-container {
        padding: 2rem;
    }
    .battle-pass-header {
        flex-direction: row; /* Chuyển lại hàng ngang */
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .battle-pass-header h2 { font-size: 2rem; }
    .btn-upgrade-pass { width: auto; } /* Trả lại chiều rộng tự động */

    .battle-pass-rewards {
        flex-direction: row; /* Chuyển lại hàng ngang */
        justify-content: space-around;
    }
    .reward-milestone-card {
        width: 200px;
    }
    .reward-progress-bar {
        flex-direction: row; /* Chuyển lại hàng ngang */
        flex-grow: 1; /* Chiếm không gian còn lại */
        gap: 15px;
        margin: 0 1rem;
    }
}

/* =========================================== */
/* === STYLES FOR TOP-UP EVENT (TỐI ƯU) === */
/* =========================================== */
.top-up-event-container {
    background-color: #1a1a2a;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #333;
}
.top-up-user-progress {
    margin-bottom: 2rem;
}
.top-up-user-progress span {
    color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; display: block;
}
.top-up-user-progress .progress {
    background-color: rgba(0,0,0,0.5);
}
.top-up-user-progress .progress-bar {
    background: linear-gradient(90deg, #4edfff, #37a2e6);
}

.milestone-list {
    position: relative;
    padding-left: 20px;
    margin-left: 10px;
    /* Đường kẻ dọc nối các mốc */
    border-left: 2px dashed #444;
}
.milestone-step {
    position: relative;
    margin-bottom: 1.5rem;
}
.milestone-step:last-child {
    margin-bottom: 0;
}
.milestone-marker {
    width: 24px;
    height: 24px;
    background-color: #444;
    border-radius: 50%;
    position: absolute;
    left: -33px; /* Căn chỉnh lại marker */
    top: 0;
    border: 4px solid #1a1a2a;
}

/* Bố cục chính cho mobile */
.milestone-content {
    background-color: #121221;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #444; /* Mặc định */
}
.milestone-details {
    margin-bottom: 1rem;
}
.milestone-title {
    color: #fff; font-size: 1.1rem;
}
.milestone-reward {
    color: #aaa; font-size: 0.9rem;
}
.milestone-action .btn {
    width: 100%; /* Nút chiếm toàn bộ chiều rộng trên mobile */
    font-weight: bold;
}

/* Trạng thái có thể nhận */
.milestone-step.claimable .milestone-content { border-left-color: #e0a836; }
.milestone-step.claimable .milestone-marker {
    background-color: #e0a836; box-shadow: 0 0 10px #e0a836;
}
.btn-claim {
    background-color: #e0a836; color: #111; border: none;
}
.btn-claim:hover { color: #000; background-color: #ffdc99; }

/* Trạng thái đã nhận */
.milestone-step.claimed .milestone-content {
    opacity: 0.6; border-left-color: #6c757d;
}
.milestone-step.claimed .milestone-marker { background-color: #6c757d; }
.btn-claimed { background-color: #444; color: #aaa; border: none; }

.btn-top-up {
    background-color: transparent; border: 1px solid #4edfff; color: #4edfff;
}
.btn-top-up:hover { background-color: #4edfff; color: #111; }

/* === MEDIA QUERY CHO DESKTOP === */
@media (min-width: 768px) {
    .milestone-marker {
        top: 50%;
        transform: translateY(-50%);
    }
    .milestone-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }
    .milestone-details {
        margin-bottom: 0;
    }
    .milestone-action .btn {
        width: auto; /* Trả lại chiều rộng tự động cho desktop */
    }
}

/* =========================================== */
/* === STYLES FOR LUCKY SPIN (TỐI ƯU) === */
/* =========================================== */
.lucky-spin-container {
    background-color: #1a1a2a;
    padding: 1.5rem; /* Padding cho mobile */
    border-radius: 10px;
    border: 1px solid #333;
}

/* Panel thông tin */
.grand-prize-showcase {
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}
.grand-prize-showcase img { max-width: 100%; height: auto; border-radius: 5px; }
.grand-prize-name {
    color: #e0a836; font-weight: bold; font-size: 1.1rem; margin-top: 1rem;
}
.user-spin-data { margin-top: 1.5rem; }
.user-spin-data .data-item {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; color: #fff;
}
.luck-progress { background-color: #e0a836; }

/* Panel vòng quay */
.spin-wheel-panel {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.wheel-container {
    position: relative;
    width: 90vw; /* Chiếm 90% chiều rộng màn hình mobile */
    max-width: 350px; /* Nhưng không quá 350px */
    aspect-ratio: 1 / 1; /* Luôn là hình tròn */
    margin: 0 auto;
}
.wheel-pointer {
    position: absolute; width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid #ff4d4d; top: -5px; left: 50%; transform: translateX(-50%); z-index: 10;
}

.wheel {
    width: 100%; height: 100%; border-radius: 50%;
    background: conic-gradient(#3a3a4a 0deg 45deg, #2a2a3a 45deg 90deg, #3a3a4a 90deg 135deg, #2a2a3a 135deg 180deg, #3a3a4a 180deg 225deg, #2a2a3a 225deg 270deg, #3a3a4a 270deg 315deg, #2a2a3a 315deg 360deg);
    position: relative; overflow: hidden; border: 5px solid #e0a836; box-shadow: 0 0 20px rgba(224, 168, 54, 0.5);
    transition: transform 5s cubic-bezier(0.25, 1, 0.5, 1);
}
.wheel-prize {
    position: absolute; width: 50%; height: 50%; transform-origin: 100% 100%;
    transform: rotate(calc(45deg * var(--i))); display: flex; align-items: center; justify-content: center;
    padding-right: 20%; /* Đẩy text vào trong */
}
.wheel-prize span {
    display: block; transform: rotate(22.5deg); color: #fff; font-weight: bold;
    font-size: 0.7rem; /* Cỡ chữ nhỏ hơn cho mobile */
}

.spin-buttons {
    margin-top: 2rem; display: flex; gap: 1rem; width: 100%;
}
.btn-spin, .btn-spin-10 {
    flex: 1; /* Chia đều chiều rộng */
    background: #e0a836; color: #111; border: none; font-weight: bold;
    padding: 0.75rem 0.5rem; text-align: center;
}
.btn-spin small, .btn-spin-10 small { font-weight: normal; font-size: 0.75rem; }

/* === MEDIA QUERY CHO DESKTOP === */
@media (min-width: 992px) {
    .spin-info-panel {
        margin-top: 0; /* Bỏ margin-top trên desktop */
    }
    .wheel-prize span {
        font-size: 1rem; /* Trả lại cỡ chữ gốc */
    }
    .lucky-spin-container {
        padding: 2rem;
    }
}

/* =================================== */
/* === STYLES FOR TOKEN SHOP      === */
/* =================================== */
.user-token-inventory {
    display: flex;
    gap: 1.5rem;
    background-color: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
}

.token-balance {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
}
.token-balance img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}
.token-balance strong {
    color: #e0a836;
}

.redemption-card {
    border-color: #4a3f6f;
}
.redemption-card:hover {
    border-color: #a862ff;
}

.btn-redeem {
    background-color: #4a3f6f;
    color: #fff;
    border: none;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
}
.btn-redeem:hover {
    background-color: #6c5cb1;
    color: #fff;
}

.token-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}
/* ======================================= */
/* === STYLES FOR AUCTION (TỐI ƯU) === */
/* ======================================= */

.auction-container {
    background: linear-gradient(135deg, #2c210d, #1a1405);
    border: 1px solid #e0a836;
    border-radius: 10px;
    padding: 1.5rem; /* Padding cho mobile */
    box-shadow: 0 0 30px rgba(224, 168, 54, 0.3);
}

.item-spotlight {
    background-color: #000;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.item-spotlight img {
    width: 100%;
    border-radius: 5px;
}
.item-info h4 {
    color: #e0a836;
    font-weight: bold;
    font-size: 1.25rem; /* Cỡ chữ cho mobile */
}
.item-info p {
    color: #ccc;
    font-size: 0.95rem;
}

.auction-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 2rem; /* Khoảng cách giữa các phần */
    height: 100%;
}

.auction-timer {
    text-align: center;
    background-color: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
}
.timer-title {
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.countdown-display {
    color: #ff6464;
    font-size: 1.5rem; /* Cỡ chữ cho mobile */
    font-weight: bold;
}

.current-bid {
    text-align: center;
}
.bid-label {
    color: #aaa;
    font-size: 1rem;
}
.bid-amount {
    font-size: 2.5rem; /* Cỡ chữ cho mobile */
    font-weight: bold;
}
.bidder-name {
    color: #fff;
    font-style: italic;
}

.bid-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.bid-input {
    background-color: #121221;
    border-color: #444;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}
.btn-place-bid {
    background: linear-gradient(45deg, #ff4d4d, #ff8c8c);
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.75rem;
    border-radius: 5px;
}
.btn-place-bid:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.6);
}


/* === MEDIA QUERY CHO DESKTOP === */
/* Áp dụng cho màn hình từ 992px trở lên (lg) */
@media (min-width: 992px) {
    .auction-container {
        padding: 2rem; /* Trả lại padding lớn hơn */
    }
    .item-info h4 {
        font-size: 1.5rem; /* Tăng cỡ chữ */
    }
    .countdown-display {
        font-size: 2rem; /* Tăng cỡ chữ */
    }
    .bid-amount {
        font-size: 3rem; /* Tăng cỡ chữ */
    }
}

/* =================================== */
/* === STYLES FOR GACHA BANNERS   === */
/* =================================== */
.gacha-banner {
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-size: cover;
    position: relative;
    overflow: hidden;
}
/* Tạo lớp phủ để chữ dễ đọc */
.gacha-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(2px);
}
/* Đặt id riêng cho mỗi banner để có ảnh nền khác nhau */
#gacha-s { background-image: url('https://i.imgur.com/sC5vL9L.jpg'); }
#gacha-ss { background-image: url('https://i.imgur.com/xOa5ZpT.jpg'); }

.gacha-header, .gacha-item-pool, .gacha-action {
    position: relative; z-index: 2;
}

.gacha-header {
    text-align: center;
    text-shadow: 2px 2px 5px #000;
}
.gacha-header h3 {
    color: #fff;
    font-weight: bold;
}
.gacha-header p {
    color: #e0a836;
    font-weight: 500;
}

.gacha-item-pool {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}
.pool-item {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
}
.pool-item:hover {
    transform: scale(1.1);
    border-color: #e0a836;
}

.gacha-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
    padding: 0.75rem;
    border-radius: 8px;
}
.gacha-action span {
    color: #fff;
    font-size: 1.1rem;
}
.gacha-action span strong {
    color: #e0a836;
}
.gacha-action span i {
    color: #e0a836;
}

.btn-gacha-draw {
    background-color: #e0a836;
    color: #111;
    border: none;
    font-weight: bold;
}
/* =================================== */
/* === STYLES FOR GACHA BANNERS   === */
/* =================================== */
.gacha-banner {
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-size: cover;
    position: relative;
    overflow: hidden;
}
/* Tạo lớp phủ để chữ dễ đọc */
.gacha-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(2px);
}
/* Đặt id riêng cho mỗi banner để có ảnh nền khác nhau */
#gacha-s { background-image: url('https://i.imgur.com/sC5vL9L.jpg'); }
#gacha-ss { background-image: url('https://i.imgur.com/xOa5ZpT.jpg'); }

.gacha-header, .gacha-item-pool, .gacha-action {
    position: relative; z-index: 2;
}

.gacha-header {
    text-align: center;
    text-shadow: 2px 2px 5px #000;
}
.gacha-header h3 {
    color: #fff;
    font-weight: bold;
}
.gacha-header p {
    color: #e0a836;
    font-weight: 500;
}

.gacha-item-pool {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}
.pool-item {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
}
.pool-item:hover {
    transform: scale(1.1);
    border-color: #e0a836;
}

.gacha-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
    padding: 0.75rem;
    border-radius: 8px;
}
.gacha-action span {
    color: #fff;
    font-size: 1.1rem;
}
.gacha-action span strong {
    color: #e0a836;
}
.gacha-action span i {
    color: #e0a836;
}

.btn-gacha-draw {
    background-color: #e0a836;
    color: #111;
    border: none;
    font-weight: bold;
}
/* =================================== */
/* === STYLES FOR GIFTING CENTER  === */
/* =================================== */
.giftable-item {
    cursor: pointer;
}
.btn-gift {
    background-color: #ff69b4; /* Màu hồng đặc trưng cho tặng quà */
    color: #fff;
    border: none;
    font-weight: 500;
}

/* Tùy chỉnh Modal */
.gift-modal-content {
    background-color: #1a1a2a;
    border: 1px solid #ff69b4;
}
.gift-modal-content .modal-header, .gift-modal-content .modal-footer {
    border-color: #333;
}
.gift-modal-content .form-control {
    background-color: #121221;
    border-color: #444;
    color: #fff;
}

.gift-item-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gift-item-preview img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
.gift-item-preview h6 {
    margin: 0;
    color: #fff;
}

.btn-send-gift {
    background: linear-gradient(45deg, #ff69b4, #ff8cdd);
    color: #fff;
    border: none;
    font-weight: bold;
}
/* =========================================== */
/* === STYLES FOR MYSTERY SHOP (TỐI ƯU) === */
/* =========================================== */
.mystery-shop-container {
    background: linear-gradient(160deg, #2d153e, #1a0a2e);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #7c37e6;
}
/* Header: Mặc định xếp dọc cho mobile */
.mystery-shop-header {
    display: flex;
    flex-direction: column; /* Xếp dọc */
    gap: 1rem;
    text-align: center;
    color: #ccc;
    margin-bottom: 1.5rem;
}
.mystery-shop-header strong {
    color: #a862ff;
}
.btn-refresh-shop {
    background-color: transparent;
    border: 1px solid #a862ff;
    color: #a862ff;
    font-weight: 500;
    flex-shrink: 0; /* Không bị co lại */
}
.btn-refresh-shop:hover {
    background-color: #a862ff;
    color: #fff;
}

/* Lưới vật phẩm: 2 cột trên mobile */
.mystery-item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.mystery-item-card {
    background-color: transparent;
    aspect-ratio: 3 / 4.5; /* Giữ tỷ lệ thẻ bài */
    perspective: 1000px;
}
.mystery-item-inner {
    position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d;
}
.mystery-item-card:hover .mystery-item-inner {
    transform: rotateY(180deg);
}

.mystery-item-front, .mystery-item-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-align: center;
}
.mystery-item-front {
    background-color: #1a0a2e; border: 1px solid #4a3f6f;
}
.mystery-item-front img {
    width: 100%;
    height: 70%; /* Dành 70% chiều cao cho ảnh */
    object-fit: cover;
}
.item-name {
    color: #fff; font-weight: 500; font-size: 0.85rem; padding: 0.5rem; flex-grow: 1;
}
.item-original-price { color: #888; font-size: 0.8rem; padding-bottom: 0.5rem; }

.mystery-item-back {
    background: linear-gradient(160deg, #7c37e6, #a862ff); color: white; transform: rotateY(180deg); justify-content: center; align-items: center; gap: 0.5rem; padding: 1rem;
}
.discount-tag {
    font-size: 1.8rem; font-weight: bold; text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.final-price {
    font-size: 1.5rem; font-weight: bold;
}
.btn-buy-mystery {
    background-color: #fff; color: #7c37e6; border: none; font-weight: bold; font-size: 0.8rem; padding: 0.35rem 1rem; margin-top: 0.5rem;
}


/* === MEDIA QUERY CHO DESKTOP === */
@media (min-width: 768px) {
    .mystery-shop-header {
        flex-direction: row; /* Chuyển lại hàng ngang */
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .mystery-item-grid {
        /* Tự động điều chỉnh số cột, mỗi cột tối thiểu 160px */
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .discount-tag { font-size: 2.5rem; }
    .final-price { font-size: 2rem; }
    .btn-buy-mystery { font-size: 1rem; }
}

/* =================================== */
/* === STYLES FOR VIP LOUNGE      === */
/* =================================== */
#vip-tab.nav-link.active, #vip-tab.nav-link:hover {
    color: #ffd700 !important;
    border-color: #ffd700 !important;
}

.vip-lounge-container {
    background: linear-gradient(145deg, #1d1d2b, #111117);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #444;
}

.vip-user-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 8px;
}

.vip-level-display {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffd700, #f0c742);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px #ffd700;
}
.vip-level-icon {
    color: #332600;
    font-weight: bold;
    font-size: 1.5rem;
}

.vip-progress-details {
    flex-grow: 1;
}
.vip-progress-details h4 {
    color: #fff;
    font-weight: 500;
}
.vip-progress-details p {
    color: #aaa;
    margin-bottom: 0.5rem;
}
.vip-progress-details p strong {
    color: #ffd700;
}

.vip-progress {
    background-color: #333;
    height: 1.25rem;
    font-size: 0.8rem;
}
.vip-progress .progress-bar {
    background: linear-gradient(90deg, #f0c742, #ffd700);
    color: #332600;
}

.vip-section-title {
    color: #ffd700;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.vip-perks-list {
    list-style: none;
    padding: 0;
}
.vip-perks-list li {
    color: #ccc;
    margin-bottom: 0.75rem;
}
.vip-perks-list i {
    color: #ffd700;
    margin-right: 10px;
}

.vip-exclusive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255,215,0,0.05);
    border: 1px solid #444;
    padding: 1rem;
    border-radius: 8px;
}
.vip-exclusive-item img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 1rem;
}
.vip-exclusive-item .item-details {
    flex-grow: 1;
}
.item-details h6 {
    color: #fff; margin: 0;
}

.btn-buy-vip {
    background-color: #ffd700;
    color: #332600;
    border: none;
    font-weight: bold;
}
/* =================================== */
/* === STYLES FOR CRAFTING        === */
/* =================================== */
#crafting-tab.nav-link.active, #crafting-tab.nav-link:hover {
    color: #87ceeb !important; /* Sky blue */
    border-color: #87ceeb !important;
}
.user-materials-inventory {
    display: flex;
    gap: 1.5rem;
    background-color: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #444;
}

.material-balance {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
}
.material-balance img {
    width: 30px; height: 30px; margin-right: 10px;
}
.material-balance strong {
    color: #87ceeb;
}

.crafting-recipe-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #1f2029;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid #87ceeb;
}

.recipe-materials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.material-required {
    text-align: center;
    color: #fff;
}
.material-required img {
    width: 50px; height: 50px; display: block; margin-bottom: 0.25rem;
}
.recipe-plus {
    font-size: 1.5rem;
    color: #555;
    margin: 0 0.5rem;
}

.recipe-arrow {
    font-size: 2.5rem;
    color: #87ceeb;
}

.recipe-result {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.result-item img {
    width: 70px; height: 70px; border-radius: 5px;
}
.result-name {
    color: #fff; font-weight: 500;
}

.btn-craft-item {
    background-color: #87ceeb;
    color: #111;
    border: none;
    font-weight: bold;
}
/* Trạng thái không đủ nguyên liệu */
.btn-craft-item:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}
/* =================================== */
/* === STYLES FOR TRANSACTION HISTORY == */
/* =================================== */
.transaction-history-container {
    padding: 1rem 0;
}
.history-filters .form-select {
    max-width: 250px;
    background-color: #1a1a2a;
    border-color: #444;
    color: #fff;
}

.history-table-wrapper {
    margin-top: 1.5rem;
    overflow-x: auto; /* Cho phép cuộn trên màn hình nhỏ */
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    color: #ccc;
}
.history-table th, .history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #2a2a3a;
}
.history-table th {
    color: #fff;
    font-weight: 500;
}
.history-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.1);
}

.item-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.item-cell img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.history-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}
.history-tag.tag-purchase {
    background-color: #dc3545; /* Đỏ */
}
.history-tag.tag-gift {
    background-color: #ff69b4; /* Hồng */
}
.history-tag.tag-reward {
    background-color: #e0a836; /* Vàng */
}
/* ======================================= */
/* === STYLES FOR LEADERBOARD (NÂNG CẤP) === */
/* ======================================= */
.leaderboard-container {
    background-color: #1a1a2a;
    padding: 1.5rem;
    border-radius: 10px;
}
.leaderboard-list {
    list-style: none;
    padding: 0;
    counter-reset: player-rank 3; /* Bắt đầu đếm từ 4 */
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background-color: #2a2a3a;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Thêm transition cho hiệu ứng mượt */
}
.leaderboard-player:hover {
    transform: scale(1.03); /* Phóng to nhẹ khi di chuột */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.leaderboard-player:last-child {
    margin-bottom: 0;
}

.player-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}
/* Đếm số thứ tự cho các rank từ 4 trở đi */
.leaderboard-player:not(.rank-1):not(.rank-2):not(.rank-3) .player-rank::before {
    counter-increment: player-rank;
    content: counter(player-rank);
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.player-name {
    flex-grow: 1;
    color: #fff;
    font-weight: 500;
}
.player-spending {
    font-size: 1.2rem;
    font-weight: bold;
}
.player-spending .price-gem {
    color: #4edfff; /* Màu cho Quân Huy để nổi bật */
}


/* === HIỆU ỨNG ĐẶC BIỆT CHO TOP 3 === */
.leaderboard-player.rank-1, .leaderboard-player.rank-2, .leaderboard-player.rank-3 {
    background-size: 200% 200%; /* Kích thước lớn hơn để tạo hiệu ứng chuyển động */
    animation: shine 5s linear infinite; /* Áp dụng animation */
}

/* Top 1 */
.leaderboard-player.rank-1 {
    background-image: linear-gradient(125deg, #5c4a15, #2a2a3a, #5c4a15);
    border: 1px solid #e0a836;
}
.rank-1 .player-rank i { color: #ffd700; }

/* Top 2 */
.leaderboard-player.rank-2 {
    background-image: linear-gradient(125deg, #444c5c, #2a2a3a, #444c5c);
    border: 1px solid #c0c0c0;
    animation-delay: -1s; /* Chạy animation lệch pha với Top 1 */
}
.rank-2 .player-rank i { color: #c0c0c0; }

/* Top 3 */
.leaderboard-player.rank-3 {
    background-image: linear-gradient(125deg, #5c3c24, #2a2a3a, #5c3c24);
    border: 1px solid #cd7f32;
    animation-delay: -2s; /* Chạy animation lệch pha với các Top trên */
}
.rank-3 .player-rank i { color: #cd7f32; }


/* Keyframes cho hiệu ứng tỏa sáng */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* =================================== */
/* === STYLES FOR SKIN TRIAL      === */
/* =================================== */
#trial-tab.nav-link.active, #trial-tab.nav-link:hover {
    color: #20c997 !important; /* Teal color */
    border-color: #20c997 !important;
}

.user-trial-card-inventory {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(32, 201, 151, 0.1);
    border: 1px solid rgba(32, 201, 151, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
}
.user-trial-card-inventory i {
    font-size: 1.5rem;
    color: #20c997;
}
.user-trial-card-inventory strong {
    color: #20c997;
}

.trial-card {
    position: relative;
    border-color: #1a4e40;
}
.trial-duration-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(32, 201, 151, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(3px);
}
.btn-use-trial-card {
    background-color: #20c997;
    color: #fff;
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-use-trial-card:hover {
    background-color: #1aa079;
    color: #fff;
}
/* ======================================== */
/* === STYLES FOR CARD FLIP EVENT (TỐI ƯU) === */
/* ======================================== */

.card-flip-event-container {
    background-color: #1a1a2a;
    padding: 1.5rem; /* Padding cho mobile */
    border-radius: 10px;
    border-top: 4px solid #a862ff;
}

.flip-prize-pool {
    background-color: #121221;
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
}
.flip-prize-pool h5 {
    color: #fff; font-weight: bold; border-bottom: 1px solid #444; padding-bottom: 0.5rem;
}
.prize-list {
    list-style: none; padding: 0; margin-top: 1rem; color: #ccc;
}
.prize-list li {
    margin-bottom: 0.75rem; font-size: 0.95rem;
}
.prize-list li.grand-prize { color: #e0a836; font-weight: bold; }
.flip-action {
    margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.btn-flip-card {
    background: linear-gradient(45deg, #a862ff, #6f42c1);
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 0.75rem;
}
.btn-reset-board {
    background-color: transparent; border: 1px solid #555; color: #aaa;
}

.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.flip-card {
    background-color: transparent; aspect-ratio: 3 / 4.2; perspective: 1000px; cursor: pointer;
}
.flip-card-inner {
    position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d;
}
.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 8px; display: flex; justify-content: center; align-items: center;
}
.flip-card-front {
    background: linear-gradient(145deg, #4a3f6f, #6c5cb1);
    border: 2px solid #a862ff;
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}
.flip-card-front:hover {
    border-color: #fff;
    color: #fff;
}
.flip-card-front::before {
    content: '?'; font-weight: bold;
}
.grand-prize-card .flip-card-front {
    background: linear-gradient(145deg, #e0a836, #b8860b);
    box-shadow: 0 0 20px rgba(224, 168, 54, 0.6);
    border-color: #ffd700;
}
.flip-card-back {
    background-color: #121221; transform: rotateY(180deg); padding: 0.5rem;
}
.flip-card-back img {
    max-width: 90%; max-height: 90%; object-fit: contain;
}

/* === MEDIA QUERY CHO MOBILE === */
@media (max-width: 991.98px) {
    .flip-prize-pool {
        margin-top: 2rem; /* Tạo khoảng cách giữa lưới và khu vực giải thưởng trên mobile */
    }
}

/* =================================== */
/* === STYLES FOR PRESTIGE SHOP   === */
/* =================================== */
#prestige-tab.nav-link.active, #prestige-tab.nav-link:hover {
    color: #0dcaf0 !important; /* Cyan color */
    border-color: #0dcaf0 !important;
}

.user-prestige-currency-inventory {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
}
.user-prestige-currency-inventory i {
    font-size: 1.5rem;
    color: #0dcaf0;
}
.user-prestige-currency-inventory strong {
    color: #0dcaf0;
}

.prestige-item-card {
    background-color: #1c2333;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

.prestige-item-preview {
    background-color: #121221;
    padding: 1rem;
    position: relative;
}
.prestige-item-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
.prestige-item-body {
    padding: 1rem;
}
.prestige-item-name {
    color: #fff;
    font-weight: 500;
}
.prestige-requirement {
    color: #aaa;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.75rem;
}

.btn-buy-prestige {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    font-weight: bold;
    width: 100%;
}
.btn-buy-prestige:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}
/* Overlay cho vật phẩm bị khóa */
.prestige-item-card.locked .prestige-item-preview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 1;
}
.lock-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    z-index: 2;
}
/* ======================================= */
/* === STYLES FOR SEASONAL VAULT (TỐI ƯU) === */
/* ======================================= */

.seasonal-vault-container {
    background: linear-gradient(135deg, #052b3a, #0d4a61);
    border: 1px solid #20c997;
    border-radius: 10px;
    padding: 1.5rem; /* Padding cho mobile */
    display: flex;
    flex-direction: column; /* Mặc định xếp dọc cho mobile */
    gap: 2rem;
}

.vault-grand-prize {
    text-align: center;
    width: 100%;
}
.vault-grand-prize img {
    width: 100%;
    max-width: 300px; /* Giới hạn chiều rộng ảnh trên mobile */
    border-radius: 10px;
    border: 3px solid #20c997;
}
.vault-grand-prize h4 {
    color: #fff;
    margin-top: 1rem;
    font-size: 1.25rem;
}

.vault-action-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Giảm gap một chút */
    background-color: rgba(0,0,0,0.2);
    padding: 1rem; /* Giảm padding */
    border-radius: 8px;
}
.user-key-balance {
    text-align: center; font-size: 1.2rem; color: #fff;
}
.user-key-balance i, .user-key-balance strong { color: #20c997; }
.vault-progress-info span { color: #fff; display: block; margin-bottom: 0.5rem; }
.vault-progress-info .progress { background-color: #0d4a61; }
.vault-progress { background-color: #20c997; }
.btn-unlock-tile {
    background-color: #20c997; color: #fff; font-weight: bold; border: none; padding: 0.75rem;
}

.vault-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem; /* Giảm gap cho gọn hơn */
}
.vault-tile {
    background-color: transparent;
    aspect-ratio: 1/1;
    perspective: 1000px;
    cursor: pointer;
}
.vault-tile-inner {
    position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d;
}
.vault-tile.is-unlocked .vault-tile-inner {
    transform: rotateY(180deg);
}
.vault-tile-front, .vault-tile-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 8px;
}
.vault-tile-front {
    background: linear-gradient(145deg, #20c997, #1aa079);
    border: 2px solid #63e6be;
    display: flex; justify-content: center; align-items: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.7);
}
.vault-tile-front::before { content: "🗝"; }
.vault-tile-back {
    background-color: rgba(0,0,0,0.3);
    transform: rotateY(180deg);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    font-weight: bold; color: #fff; padding: 5px; text-align: center; font-size: 0.8rem;
}
.vault-tile-back i { font-size: 1.5rem; margin-bottom: 4px; }


/* === MEDIA QUERY CHO DESKTOP === */
/* Áp dụng cho màn hình từ 992px trở lên (lg) */
@media (min-width: 992px) {
    .seasonal-vault-container {
        flex-direction: row; /* Chuyển lại thành hàng ngang */
        align-items: center; /* Căn giữa các cột */
        padding: 2rem;
    }
    .vault-grand-prize {
        flex-basis: 30%;
        order: 1; /* Cột Giải Thưởng ở vị trí 1 */
    }
    .vault-grid {
        flex-grow: 1;
        order: 2; /* Cột Lưới ở vị trí 2 */
    }
    .vault-action-panel {
        flex-basis: 30%;
        order: 3; /* Cột Hành Động ở vị trí 3 */
        padding: 1.5rem;
    }
}

/* =================================== */
/* === STYLES FOR BUNDLE BUILDER  === */
/* =================================== */
#bundle-builder-tab.nav-link.active, #bundle-builder-tab.nav-link:hover {
    color: #fd7e14 !important; /* Orange */
    border-color: #fd7e14 !important;
}
.bundle-builder-container {
    display: flex;
    gap: 2rem;
}
.item-selection-area {
    flex-grow: 1;
    display: flex;
    gap: 2rem;
}
.selection-column {
    flex: 1;
}
.selection-column h5 {
    color: #fff;
    margin-bottom: 1rem;
}
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.selectable-item-card {
    aspect-ratio: 1/1;
    border-radius: 8px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.selectable-item-card img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 5px;
}
.selectable-item-card:hover {
    border-color: #fd7e14;
}
.selectable-item-card.selected {
    border-color: #fd7e14;
    transform: scale(1.05);
    box-shadow: 0 0 15px #fd7e14;
}
.selectable-item-card.selected::after {
    content: '✔';
    position: absolute;
    top: 5px; right: 5px;
    background-color: #fd7e14;
    color: #fff;
    width: 25px; height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.bundle-summary-area {
    flex-basis: 300px;
    background-color: #1a1a2a;
    padding: 1.5rem;
    border-radius: 10px;
}
#bundle-summary-list { min-height: 200px; }
.summary-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.summary-item img { width: 40px; height: 40px; border-radius: 5px; }
.summary-item span { color: #fff; }

.bundle-pricing .price-line { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: #ccc;}
.bundle-pricing .price-line.total { font-size: 1.2rem; font-weight: bold; color: #fff; }

.btn-buy-custom-bundle {
    width: 100%;
    margin-top: 1rem;
    background-color: #fd7e14;
    color: #fff;
    font-weight: bold;
    border: none;
}
.btn-buy-custom-bundle:disabled {
    background-color: #555;
    cursor: not-allowed;
}
/* =================================== */
/* === STYLES FOR COMMUNITY CHOICE === */
/* =================================== */
.community-choice-container {
    background-color: #1f2029;
    padding: 2rem;
    border-radius: 10px;
}
.choice-header {
    text-align: center;
    margin-bottom: 2rem;
}
.choice-header h4 {
    color: #fff;
    font-weight: bold;
}
.choice-header p {
    color: #aaa;
}
.choice-header p strong {
    color: #ff6464;
}

.choice-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.choice-card {
    background-color: #2a2a3a;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #444;
    transition: all 0.3s ease;
}
.choice-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
}
.choice-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}
.choice-card h6 {
    color: #fff;
    margin: 1rem 0;
    font-size: 1.1rem;
}
.choice-progress {
    height: 1.5rem;
    background-color: #1a1a2a;
    font-weight: bold;
}
.choice-progress .progress-bar {
    background: linear-gradient(90deg, #fd7e14, #ffb478);
    color: #fff;
}
.btn-vote {
    width: 100%;
    margin-top: 1rem;
    background-color: #fff;
    color: #111;
    font-weight: bold;
}
.btn-vote.voted {
    background-color: #fd7e14;
    color: #fff;
    cursor: not-allowed;
}