﻿.vip-panel {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    height: 100%;
    display: none;
}

/* 半透明背景（可点关闭） */
.vip-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

/* 内容区：宽100%，高60%，上下居中 */
.vip-content {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    height: 70%;
    border-radius: 12px;
    background: var(--btn_bg_s);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部区域 */
.vip-top {
    height: 20%;
    padding: 10px 14px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.vip-progress-wrap {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ 文本与进度条整体水平居中 */
}

.vip-progress-text {
    width: 100%;
    text-align: center; /* ✅ 文本居中 */
    color: var(--btn_color_q);
    font-size: 12px;
    line-height: 1.2;
    margin: -15px 0 0 0; /* ✅ 在进度条上方 */
}

.vip-progress-bar {
    width: 120px;
    height: 15px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    overflow: hidden;
}

.vip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffcc66, #ff7a45);
    border-radius: 999px;
    width: 0%;
}

/* 中部：奖励 + 按钮 */
.vip-mid {
    height: 65%;
    padding: 6px 14px 10px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.vip-up_title {
    color: rgb(255 229 0);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}
.vip-reward-title {
    color: var(--btn_color_q);
    font-size: 14px;
    width: 92%;
    padding: 4px 10px;
    border-radius: 4px;
    background-image: url(/resource/image/test1/shop_money_title_bg.png);
    background-size: cover;
}

.vip-reward-items {
    width: 92%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

    /* 让 bag_js.renderItems 渲染出来的预览更适配 */
    .vip-reward-items .bag-preview-container {
        background: transparent !important;
    }

.vip-recharge-btn {
    width: 140px;
    height: 36px;
    border: none;
    border-radius: 8px;
    color: #fff;
    background: #ff7a45;
    font-size: 14px;
    padding: 4px;
}

/* 底部：vip icon strip */
.vip-bottom {
    height: 15%;
    padding: 8px 10px 12px 10px;
    box-sizing: border-box;
    overflow: hidden; /* 防止黑边露出 */
    background: #0000004d;
}

.vip-level-strip {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    box-sizing: border-box;
    white-space: nowrap;
    touch-action: pan-x;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vip-level-btn {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 0px solid rgba(255,255,255,0.12);
    background: transparent;
    padding: 4px;
    box-sizing: border-box;
}

    .vip-level-btn img {
        width: 100%;
        display: block;
        object-fit: contain;
    }

    .vip-level-btn.active {
        border: 2px solid #ebff00;
        box-shadow: 0 0 0 2px rgba(255, 204, 102, 0.25) inset;
    }

/* ✅ 新增：通用隐藏类（如果项目已有可删这一条） */
.hidden {
    display: none !important;
}

/* ✅ 进度条头部：图标 + 差值 */
.vip-progress-head {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.vip-need-diff {
    color: rgba(255,255,255,0.95);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

/* ✅ 右上角等级徽标（进度条上方） */
.vip-level-badge {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.vip-level-badge-text {
    color: rgba(255,255,255,0.95);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.vip-level-badge-icon {
    width: 64px;
    display: block;
    object-fit: contain;
}

/* ✅ active_list 展示 */
.vip-active-list {
    width: 92%;
    height: 60%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* margin-bottom: 18px; */
    text-align: left;
    background: #00000033;
    border-radius: 6px;
    padding: 12px;
    /* ✅ 超出隐藏 + 可滑动（容器内滚动） */
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* ✅ 隐藏滚动条（兼容主流浏览器） */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/旧 Edge */
}

.vip-active-item {
    padding: 2px 0;
}

.vip-active-val {
    color: #39d353; /* 绿色 */
    font-weight: 600;
}

/* ✅ VIP升级弹框 */
.vip-up-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.vip-up-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.vip-up-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 420px);
    background: var(--btn_bg_q);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 40px 12px;
    box-sizing: border-box;
}

.vip-up-icon {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
}

.vip-up-items {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .vip-up-items .bag-preview-container {
        background: transparent !important;
    }