/* Chat Styles */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}

.chat-item:hover {
    background: rgba(255,255,255,0.05);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.chat-preview {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Shop Styles */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: var(--bg-panel);
    padding: 16px 24px;
    border-radius: 16px;
}

.credit-balance {
    font-size: 26px;
    font-weight: 700;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.shop-item {
    background: var(--bg-panel);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.item-preview {
    height: 140px;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
    position: relative;
}

.item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    padding: 16px;
}

.item-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    height: 32px; /* Limit height */
    overflow: hidden;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-cost {
    font-weight: 700;
    color: #ffd700;
    font-size: 14px;
}
