:root {
    --primary-color: #ffcc00; /* Whatnot 黄色 */
    --accent-color: #ff3b30; /* 强调红 */
    --text-white: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.15);
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --spacing-base: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #111;
    background-image: radial-gradient(circle at center, #222 0%, #000 100%);
    color: var(--text-white);
    height: 100vh;
    height: 100dvh; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* === 移动端专业化适配 === */
    overscroll-behavior-y: none; /* 禁止 iOS 橡皮筋回弹 */
    user-select: none; /* 禁止长按选中文本 (像原生 App) */
    -webkit-user-select: none;
    -webkit-font-smoothing: antialiased; /* 字体抗锯齿 */
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation; /* 禁止双击放大、保留滚动与点击 */
}

/* 恢复输入框的可选性和编辑性 */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
}

/* 隐藏滚动条 (对于 Web App 更加美观) */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* 0. 模拟手机状态栏 (仅在 PC 端显示) */
.notch {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 5001;
    pointer-events: none;
}

.status-bar {
    display: none; /* 默认隐藏 (移动端用系统自带) */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px; /* 稍微高一点，避让刘海 */
    padding: 0 32px; /* 左右间距避让圆角 */
    z-index: 5000;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.status-bar .time {
    margin-left: 0; /* 修正间距 */
}

.status-bar .icons {
    display: flex;
    gap: 6px;
    font-size: 14px;
    margin-right: 0;
}

/* 核心布局容器 */
.live-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px; /* 移动端最大宽度限制 */
    box-shadow: 0 0 50px rgba(0,0,0,0.5); 
    background-color: #000;
    overflow: hidden;
    touch-action: manipulation; /* 禁止双击/双指缩放 */
}

/* === PC 端/大屏设备模拟手机外观 (iPhone 13 Pro 尺寸) === */
@media (min-width: 500px) {
    .live-container {
        width: 390px;        /* iPhone 13 Pro 逻辑宽度 */
        height: 844px;       /* iPhone 13 Pro 逻辑高度 */
        max-height: 90vh;    /* 确保在小屏幕笔记本上也能显示完整 */
        border-radius: 48px; /* 更接近 iPhone 的圆角 */
        border: 12px solid #1a1a1a; /* 模拟边框 */
        /* 不在容器加 padding，因为子元素是绝对定位 */
    }
    
    /* 针对圆角增加内边距，防止内容被切角 */
    .ui-layer {
        border-radius: 36px; 
        padding-top: 32px;   /* 增加顶部边距避让大圆角 (刘海区域) */
        padding-bottom: 32px; /* 增加底部边距避让 Home Indicator */
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 修正底部栏位置 */
    .bottom-bar {
        border-radius: 0 0 36px 36px;
        padding-bottom: 32px;
    }

    /* 2. 模拟刘海 (Notch) */
    .notch {
        display: block;
    }

    /* 3. 模拟状态栏 (Status Bar) */
    .status-bar {
        display: flex;
    }

    /* 4. 模拟 Home Indicator (底部小白条) */
    .live-container::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 5px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 2.5px;
        z-index: 9999;
        pointer-events: none;
    }
}

/* 1. 视频层 */
.video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2. 渐变遮罩 */
.gradient-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 240px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* 3. UI 层 */
.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-base);
    padding-top: max(var(--spacing-base), env(safe-area-inset-top));
    padding-bottom: max(var(--spacing-base), env(safe-area-inset-bottom));
    transition: opacity 0.3s ease-in-out; /* 滑动清屏过渡动画 */
}

/* A. 顶部 Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 4px;
}

.host-info {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    padding: 4px 12px 4px 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.host-info .avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    margin-right: 8px;
    display: block;
}

.host-text {
    display: flex;
    flex-direction: column;
    margin-right: 12px;
}

.host-text .username {
    font-size: 14px;
    font-weight: 600;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.host-text .live-tag {
    font-size: 10px;
    background-color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 2px;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.auction-card.pop-in {
    animation: popInCard 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popInCard {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.btn-follow {
    background-color: var(--text-white);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-follow:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.viewer-count {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.btn-icon-transparent {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 22px;
    padding: 8px;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0.9;
}

.btn-icon-transparent:active {
    opacity: 0.6;
}

/* B. 右侧 Sidebar */
.right-sidebar {
    position: absolute;
    right: 12px;
    top: 45%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    z-index: 20;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-circle:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.6);
}

.sidebar-item .label {
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* C & D. 左下角区域容器 (包含聊天和商品卡片) */
.left-bottom-container {
    position: absolute;
    bottom: 70px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    left: 12px;
    width: 85%; /* 稍微加宽一点适应双列布局 */
    max-height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    z-index: 15;
    pointer-events: none;
}

/* C. 拍卖卡片 (Pinned Auction - Screenshot Replica) */
.auction-card {
    /* 布局与外观 */
    position: relative;
    flex-shrink: 0;
    
    /* 深色半透明背景 (仿截图) - 加深背景 */
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 12px;
    
    display: flex;
    flex-direction: column;
    gap: 12px;
    
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    color: white; /* 全局白色文字 */
    pointer-events: auto;
    
    width: 100%;
    max-width: 360px; /* 稍微加宽以容纳双按钮 */
    border: 1px solid rgba(255,255,255,0.08);
}

/* 上半部分：图文信息 */
.card-upper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* 左侧图片 */
.product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #333;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative; /* For loader */
}

/* 1. 图片渐显特效 */
.product-thumb img, .modal-image img, .shop-item-thumb, .order-thumb {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.product-thumb img.loaded, .modal-image img.loaded, .shop-item-thumb.loaded, .order-thumb.loaded {
    opacity: 1;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 中间详情 */
.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.product-subtitle {
    font-size: 12px;
    color: #ccc;
    font-weight: 500;
}

.product-shipping {
    font-size: 11px;
    color: #999;
}

/* 右侧状态 (价格+倒计时) */
.product-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.current-price {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.timer-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #ff3b30; /* 红色倒计时 */
    font-variant-numeric: tabular-nums;
}

#skullIcon {
    font-size: 10px;
}

/* 6. Sudden Death 绝杀特效 (优化版：移除整体抖动，改为呼吸+数字跳动) */
.timer-row.sudden-death {
    color: #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    /* 倒计时数字跳动 */
    animation: timerBounce 0.5s infinite alternate; 
}

.auction-card.sudden-death-active {
    /* 边框红色呼吸警示 */
    animation: borderFlash 1s infinite alternate;
    /* 移除之前的 box-shadow 常驻，改为随边框呼吸 */
}

/* 最后3秒的一次性震动 (JS控制添加 .shake-once 类) */
.auction-card.shake-once {
    animation: cardShakeOneShot 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes timerBounce {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

@keyframes borderFlash {
    0% { border-color: rgba(255, 204, 0, 0.3); box-shadow: 0 0 5px rgba(255, 0, 0, 0); }
    100% { border-color: #ff3b30; box-shadow: 0 0 20px rgba(255, 59, 48, 0.6); }
}

@keyframes cardShakeOneShot {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* 下半部分：按钮组 */
.card-lower {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-custom {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    height: 40px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.btn-bid-wide {
    flex: 1;
    background: #ffcc00; /* 经典的黄色 */
    color: #000;
    border: none;
    border-radius: 20px;
    height: 40px;
    padding: 0 16px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    justify-content: space-between; /* 文字靠左，箭头靠右 */
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.2);
}

.btn-bid-wide:active {
    filter: brightness(0.9);
    transform: scale(0.98);
}

/* D. 聊天区 */
.chat-area {
    position: relative;
    width: 100%;
    max-height: 250px;
    min-height: 0;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    mask-image: linear-gradient(to top, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 85%, transparent 100%);
}

.chat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    padding-bottom: 10px;
}

.chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
}

.chat-msg.system {
    align-self: flex-start;
    background: transparent;
    padding-left: 0;
    margin-bottom: 4px;
}

.chat-msg.system .text {
    font-style: italic;
    font-size: 12px;
    color: #ffd700;
    font-weight: 600;
    background: rgba(10, 10, 10, 0.3); /* 统一色值和透明度 */
    padding: 2px 8px;
    border-radius: 4px;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    object-fit: cover;
    flex-shrink: 0;
}

/* 3. 用户徽章 (Badges) */
.user-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    margin-right: 4px;
    vertical-align: middle;
    color: white;
}

.user-badge.seller { background: linear-gradient(45deg, #ffd700, #ff9f43); color: black; }
.user-badge.mod { background: #2ecc71; }
.user-badge.buyer { background: #3498db; }
.user-badge.gifter { background: #e84393; }

.chat-content {
    background: transparent; /* 去掉背景 */
    backdrop-filter: none;
    padding: 2px 0; /* 减小内边距 */
    border-radius: 0;
    color: white;
    font-size: 14px; /* 稍微加大一点 */
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 2px black; /* 增强阴影 */
    /* 保持 display: block 以允许文字自然换行 */
}

.chat-msg .user {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    margin-right: 4px;
    font-size: 12px;
    cursor: pointer;
}

.chat-msg .user:active {
    color: white;
}

.chat-msg .text {
    word-wrap: break-word;
}

/* 4. 置顶消息 */
.pinned-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    font-size: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 5;
    pointer-events: auto;
}

.pinned-icon {
    color: #ffcc00;
    font-size: 14px;
}

.pinned-content {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* E. 底部输入栏 */
.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom)); 
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
}

.input-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 4px 0 16px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s;
}

.input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255,255,255,0.4);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
    height: 100%;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-gift {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-container {
    position: relative;
    width: 44px;
    height: 44px;
}

.btn-like {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.btn-like:active {
    transform: scale(0.85);
    background: rgba(255, 59, 48, 0.6);
}

/* 2. 浮动爱心动画升级 */
.floating-heart {
    position: absolute;
    bottom: 50px;
    left: 50%;
    font-size: 28px;
    pointer-events: none;
    animation: floatUp 2s ease-out forwards;
    --tx: 0px; 
    --rot: 0deg; /* 新增旋转变量 */
    z-index: 100;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes floatUp {
    0% {
        transform: translate(-50%, 0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -30px) scale(1.2) rotate(var(--rot));
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx)), -250px) scale(1) rotate(var(--rot));
    }
}

/* Toast 通知容器 */
#toast-container {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 当 body 有 .giveaway-active 类时，Toast 下移避让 */
.giveaway-active #toast-container {
    transform: translate(-50%, 60px);
}

/* Toast 消息条 */
.toast {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: toastFadeIn 0.3s ease-out, toastFadeOut 0.3s ease-in 2.7s forwards;
    border: 1px solid rgba(255,255,255,0.1);
}

.toast.success {
    border-left: 4px solid #4cd964;
}

.toast.warning {
    border-left: 4px solid #ffcc00;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* 关注按钮 - 已关注状态 */
.btn-follow.following {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

/* 点击反馈通用样式 */
.btn-clicked {
    transform: scale(0.9);
}

/* === 商品详情弹窗 (Bottom Sheet) === */
.product-modal-overlay {
    position: absolute; /* Changed from fixed to absolute to stay within container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.product-modal {
    background: #1c1c1e;
    width: 100%;
    max-width: 480px;
    height: auto; /* 自适应高度 */
    max-height: 85vh; /* 最大高度限制 */
    min-height: 30vh; /* 最小高度 */
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* 拖拽条视觉提示 */
.product-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

.product-modal-overlay.active .product-modal {
    transform: translateY(0);
}

.modal-header {
    padding: 12px 20px 16px; /* 顶部稍微减小，因为有拖拽条 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0; /* 防止头部被压缩 */
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.btn-close-modal {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overscroll-behavior: contain; /* 防止滚动穿透 */
}

.modal-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #333;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 12px;
}

.modal-price-row .label {
    color: #aaa;
    font-size: 14px;
}

.modal-price-row .value {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
}

.modal-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-meta .tag {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #ddd;
}

.modal-desc {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
    margin-top: 8px;
}

.modal-footer {
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: #1c1c1e;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.btn-main-action {
    width: 100%;
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: filter 0.2s;
}

.btn-main-action:active {
    filter: brightness(0.9);
    transform: scale(0.98);
}

/* === 自定义出价弹窗 === */
.custom-bid-overlay {
    position: absolute; /* Changed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000; /* 比详情页更高 */
    display: none;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-bid-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-bid-panel {
    width: 100%;
    background: #1c1c1e;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-bid-overlay.active .custom-bid-panel {
    transform: translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header span {
    font-weight: 700;
    font-size: 16px;
}

.btn-close-panel {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bid-input-container {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.currency-symbol {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 8px;
}

.bid-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 800;
    width: 100%;
    outline: none;
}

.bid-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    text-align: center;
}

.btn-confirm-bid {
    width: 100%;
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.btn-confirm-bid:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

/* === 更多菜单 (Action Sheet) === */
.more-menu-overlay {
    position: absolute; /* Changed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2100; /* 最高层级 */
    display: none;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.2s;
}

.more-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.more-menu-panel {
    width: 100%;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.more-menu-overlay.active .more-menu-panel {
    transform: translateY(0);
}

.menu-list {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-item {
    background: transparent;
    border: none;
    color: white;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: rgba(255,255,255,0.1);
}

.menu-item i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.menu-item.warning {
    color: #ff3b30;
}

.menu-cancel {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: none;
    color: white;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.menu-cancel:active {
    background: rgba(255,255,255,0.1);
}

/* === 商店列表弹窗 === */
.shop-overlay {
    position: absolute; /* Changed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500; /* 比详情页高，但比 More 菜单低 */
    display: none;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.2s;
}

.shop-overlay.active {
    display: flex;
    opacity: 1;
}

.shop-panel {
    width: 100%;
    height: 80vh; /* 占据 80% 高度 */
    background: #1c1c1e;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.shop-overlay.active .shop-panel {
    transform: translateY(0);
}

/* 顶部拖拽条 */
.drag-handle-bar {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 12px auto 8px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.shop-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.btn-close-shop {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 标签页 */
.shop-tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-item {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-item.active {
    color: white;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white; 
}

/* 列表内容 */
.shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-list.hidden {
    display: none;
}

/* 单个商品项 */
.shop-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.shop-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #333;
    object-fit: cover;
    flex-shrink: 0;
}

.shop-item-info {
    flex: 1;
    min-width: 0;
}

.shop-item-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-item-meta {
    font-size: 12px;
    color: #888;
}

.shop-item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.shop-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    min-width: 70px;
}

.shop-btn.buy {
    background: white;
    color: black;
    border: none;
}

.shop-item-price {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

/* === NEW: Giveaway Simulation Styles === */

/* Giveaway 卡片主题 (通过 JS 动态添加 .giveaway-mode) */
.auction-card.giveaway-mode {
    border: 2px solid #00d2d3; /* 蓝色边框 */
    background: rgba(0, 20, 40, 0.9);
}

.auction-card.giveaway-mode .btn-bid-wide {
    background: #00d2d3; /* 蓝色按钮 */
    color: white;
}

.auction-card.giveaway-mode .btn-bid-wide.entered {
    background: #2ecc71; /* 绿色已参与 */
    pointer-events: none;
}

.drawing-state {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #00d2d3;
}

.drawing-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #00d2d3;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === 顶部 Giveaway Banner (改良版) === */
.giveaway-banner {
    position: absolute;
    top: 70px; /* Header 下方 */
    left: 12px;
    right: 12px;
    background: rgba(0, 20, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 210, 211, 0.5);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    
    /* 默认隐藏状态：完全透明 + 稍微上移 + 不可点击 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 210, 211, 0.2);
}

.giveaway-banner.active {
    /* 激活状态：不透明 + 回归原位 + 可点击 */
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.giveaway-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d2d3, #0abde3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 210, 211, 0.4);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.giveaway-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.giveaway-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 210, 211, 0.5);
}

.giveaway-status {
    font-size: 11px;
    color: #00d2d3;
    font-weight: 600;
}

.giveaway-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 70px;
}

.timer-box {
    font-family: monospace;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.btn-join {
    background: #00d2d3;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-join.joined {
    background: #2ecc71;
    pointer-events: none;
}

/* === 名字滚动特效 (Slot Machine) === */
.rolling-name {
    font-family: monospace;
    font-weight: 800;
    color: #ffcc00;
    animation: textGlitch 0.1s infinite;
}

@keyframes textGlitch {
    0% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}

/* === 赢家全屏展示优化 === */
.winner-overlay {
    position: absolute; /* Changed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 3000;
    display: none; /* 默认隐藏 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.winner-overlay.active {
    display: flex;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.winner-content {
    text-align: center;
    color: white;
}

.winner-content h1 {
    font-size: 32px;
    font-weight: 900;
    color: #ffcc00;
    text-shadow: 0 4px 10px rgba(255, 204, 0, 0.5);
    margin-bottom: 24px;
}

.winner-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffcc00;
    margin-bottom: 16px;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
}

.winner-content p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 32px;
}

.btn-claim {
    background: #ffcc00;
    color: black;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
    transition: transform 0.1s;
}

.btn-claim:active {
    transform: scale(0.95);
}

.winner-overlay .winner-avatar.pulse {
    animation: avatarPulse 0.5s infinite alternate;
}

@keyframes avatarPulse {
    from { transform: scale(1); box-shadow: 0 0 20px #ffcc00; }
    to { transform: scale(1.1); box-shadow: 0 0 50px #ffcc00; }
}

/* === Bid 成功特效 === */

/* 1. 卡片高亮脉冲 (当你是最高出价者时) */
.auction-card.high-bidder {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0% { border-color: rgba(255, 215, 0, 0.5); }
    50% { border-color: rgba(255, 215, 0, 1); }
    100% { border-color: rgba(255, 215, 0, 0.5); }
}

/* 2. 浮动数字动画 */
.floating-bid {
    position: absolute;
    color: #ffd700;
    font-weight: 900;
    font-size: 20px;
    pointer-events: none;
    z-index: 100;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: floatBidUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes floatBidUp {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 1; transform: translateY(-20px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-60px) scale(1); }
}

/* 3. 最高出价者徽章 (YOU) */
.bidder-badge {
    background: #ffd700;
    color: black;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    display: none; /* 默认隐藏 */
    vertical-align: middle;
    transform: translateY(-2px);
}

.auction-card.high-bidder .bidder-badge {
    display: inline-block;
}

/* === 打赏弹窗样式 === */
.tip-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.btn-preset {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-preset:active,
.btn-preset.active {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
    transform: scale(0.95);
}

.btn-send-tip {
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    color: white;
}

/* === 订单/战绩列表样式 === */
.orders-list {
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    min-height: 100px;
}

.order-item {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 12px;
    align-items: center;
}

.order-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #333;
    object-fit: cover;
}

.order-info {
    flex: 1;
}

.order-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.order-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-type.auction { background: rgba(255, 204, 0, 0.2); color: #ffcc00; }
.order-type.giveaway { background: rgba(0, 210, 211, 0.2); color: #00d2d3; }
.order-type.buy { background: rgba(255, 255, 255, 0.2); color: #fff; }

.order-price {
    font-size: 14px;
    font-weight: 800;
    color: white;
}

.empty-state {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 14px;
}

.orders-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
}

/* === 等待下一件商品 (Awaiting) === */
.awaiting-message {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    max-width: 360px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.awaiting-message i {
    font-size: 24px;
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 分页加载样式 (新增) === */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    color: #888;
    font-size: 13px;
    gap: 8px;
}

.loading-indicator i {
    animation: spin 1s linear infinite;
    font-size: 18px;
    color: var(--primary-color);
}

.end-of-list {
    text-align: center;
    padding: 20px 0;
    color: #555;
    font-size: 12px;
    width: 100%;
    font-style: italic;
}

/* 确保列表容器是滚动的 */
.shop-content, .orders-list {
    /* 已经在之前定义了 overflow-y: auto */
    /* 关键是要有确定的高度或最大高度 */
    overscroll-behavior: contain; /* 防止滚动穿透 */
}

/* === 分享面板样式 === */
.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    padding: 10px 0 20px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: transform 0.2s;
    background: #333; /* Default */
}

.share-item:active .share-icon {
    transform: scale(0.9);
}

/* 品牌色 */
.share-icon.fb { background: #1877f2; }
.share-icon.tw { background: #000000; border: 1px solid #333; }
.share-icon.wa { background: #25d366; }
.share-icon.tg { background: #0088cc; }
.share-icon.rd { background: #ff4500; }
.share-icon.em { background: #888; }
.share-icon.cp { background: #333; border: 1px solid #555; }
.share-icon.mo { background: #333; border: 1px solid #555; }

/* 5. VIP 进场特效 (金色横幅) */
.vip-entrance {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: 800;
    font-style: italic;
    font-size: 14px;
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.vip-entrance.active {
    transform: translateX(0);
    opacity: 1;
}

.vip-entrance i {
    margin-right: 8px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* === 确认购买弹窗 (Buy Confirmation) === */
.buy-confirm-panel {
    background: #1c1c1e;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.buy-item-summary {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.buy-item-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #333;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.buy-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.buy-item-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.buy-item-price {
    font-size: 20px;
    font-weight: 800;
    color: white;
    font-variant-numeric: tabular-nums;
}

.buy-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding: 0 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ccc;
}

.price-row.total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.btn-confirm-buy {
    width: 100%;
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    margin-bottom: 16px;
}

.secure-note {
    text-align: center;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-note i {
    color: #2ecc71;
}