.h-vh-100 {
    height: 100dvh;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: none;
}
#index-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.header-wrapper {
    flex: 1;
    overflow-y: auto;
}
.backpack-item {
    background: url(/images/giftcode/giftcode.jpg) center/cover no-repeat fixed;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
}
.backpack-container {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr;
    gap: 5px;
    padding: 5px;
    width: 100%;
    overflow: hidden;
    flex: 1;
}
.backpack-list {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#index-section::-webkit-scrollbar,
.backpack-list::-webkit-scrollbar,
.backpack-item::-webkit-scrollbar {
    display: none;
}
.backpack-list-item {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 5px;
    width: 100%;
}
.item-thumb {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}
.quantity-badge,
.quantity-treasure {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--orange);
    border-radius: 0 5px;
    width: auto;
    font-size: 10px;
    padding: 2px;
}
.quantity-treasure img {
    width: 14px !important;
    height: 14px !important;
}
.item-thumb img,
.backpack-info img,
.backpack-info-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(255, 255, 255, 0.8);
}
.backpack-pet img,
.backpack-radar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}
.backpack-info,
.backpack-info-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
    min-width: 100%;
    box-sizing: border-box;
}
.backpack-info img,
.backpack-info-mobile img,
.backpack-pet img,
.backpack-radar img {
    width: 60px;
    height: 60px;
}
.backpack-info span,
.backpack-info-mobile span {
    text-align: justify;
    font-size: 14px;
}
.backpack-info-user {
    color: #fff;
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
}
.backpack-info-user.active {
    background: var(--swal2-confirm-button-background-color);
    border-color: var(--swal2-confirm-button-background-color);
}
.backpack-info-user.exchange-btn {
    background: var(--orange);
    border-color: var(--orange);
}
.backpack-info-user.insufficient {
    background: gray;
    border-color: gray;
    cursor: not-allowed;
}
.backpack-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.menu-btn {
    cursor: pointer;
}
.menu-btn.active {
    color: var(--orange);
    font-weight: 700;
    border-left: 2px solid var(--orange);
    margin-left: 5px;
    padding: 5px;
}
.view {
    display: none;
}
.view.active {
    display: block;
}
.backpack-pet-radar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    width: 100%;
}
.backpack-pet,
.backpack-radar {
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(255, 255, 255, 0.8);
}
.backpack-pet span,
.backpack-radar span,
.arena-cards-history span{
    font-size: 12px;
    color: #fff;
}
.backpack-pet-info,
.backpack-radar-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
    position:relative;
}
.backpack-pet-info-index,
.backpack-radar-info-index {
    display: flex;
    gap: 10px;
    width: 100%;
}
.backpack-pet-info-hunger,
.backpack-radar-info-battery {
    position: relative;
}
.hunger-progress-container,
.battery-progress-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.progress {
    position: relative;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
}
.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transition: width .3s ease;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
}
.hunger-icon,
.battery-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 2;
}
.detail-info-btn {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.modal-body { padding: 10px !important; }
.detail-info-btn i { position: absolute; top: 0; right: 0; }

.pet-stats { display: flex; flex-direction: column; justify-content: space-around; align-items: center; width: 100%; }
.pet-stats-info { display: grid; grid-template-columns: 1fr; gap: 5px; width: 100%; border-top: 1px solid #ccc; margin: 10px 0; }
.pet-star { display: flex; font-size: 12px; gap: 2px; }
.pet-level { width: 60%; }
.pet-stats-info-progress-bar { display: grid; grid-template-columns: 6fr 5fr 2fr 1fr; align-items: center; gap: 5px; width: 100%; font-size: 12px; }
.pet-stats-info-progress-bar .progress { height: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.6); outline: 1px solid rgba(255, 255, 255, 0.8); }
.hamburger-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.hamburger-controls button {
    width: 30px;
    height: 30px;
}
.qty-input {
    width: 50%;
    height: 30px;
    text-align: center;
}
.shop-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.pet-index {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}
.view-match-history {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px;
}
.view-match-history img {
    width: 20px;
    height: 20px;
}
.pet-match-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:5px}
.match-circle{position:relative;text-align:center}
.circle-svg{width:100%;height:auto}
.match-circle small{position: absolute;bottom: 0px;left: 50%;transform: translateX(-50%);font-size: 10px;background: var(--swal2-deny-button-background-color);padding: 0px 8px;border-radius: 5px;}
@media (max-width: 768px) {
    .backpack-container { display: flex; flex-direction: column; }
    .backpack-menu { flex-direction: row; padding: 5px; border-bottom: 1px solid #ccc; }
    .menu-btn.active { border-left: 0; border-bottom: 2px solid var(--orange); margin-left: 0; padding: 0; }
    .backpack-info { display: none; }
    .pet-stats-info-progress-bar .progress, .progress { border: 1px solid #ccc; }
    div:where(.swal2-container) { z-index: 1062 !important; }
    .match-circle small {font-size: 14px;padding: 0px 5px;bottom: -5px;color: #fff;}
    .circle-svg {width: 60px;height: 60px;}
    .text-arena {fill:#000}
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .pet-stats-info-progress-bar { grid-template-columns: 8fr 4fr 2fr 1fr; gap: 1px; }
}