/* Shop Page */
.chest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.chest {
    text-align: center;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 2px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chest::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.chest-icon {
    display: none;
}

.chest h4 {
    font-size: clamp(10px, 2.8vw, 13px);
    margin: 0 0 6px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    line-height: 1.2;
}

.chest-subtitle {
    font-size: clamp(10px, 3vw, 12px);
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.chest .price {
    color: #ffd700;
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.chest .btn {
    padding: 8px 12px;
    font-size: clamp(11px, 3vw, 13px);
    position: relative;
    z-index: 2;
    width: auto;
    flex: 1;
    min-width: 0;
}

.chest-btn-group {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 160px;
    position: relative;
    z-index: 2;
    align-items: center;
}

.chest .btn-x5 {
    flex: 0 0 auto !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #f7971e, #ffd200) !important;
    color: #1a1a2e !important;
    border: none !important;
    min-width: 0 !important;
    border-radius: 12px !important;
    line-height: 31px !important;
    height: 31px !important;
    margin-top: auto;
    margin-bottom: auto;
}

.rates-info {
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

.rate-item {
    display: inline-block;
    margin: 4px 8px;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rate-splus {
    background: var(--rank-splus);
}

.rate-s {
    background: var(--rank-s);
}

.rate-a {
    background: var(--rank-a);
}

.rate-b {
    background: var(--rank-b);
}

.rate-c {
    background: var(--rank-c);
}