/* Chat Sidebar & Interface */
.chat-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.chat-header {
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
}

.chat-message {
    background: white;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    position: relative;
    animation: fadeIn 0.3s ease;
}

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

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    cursor: pointer;
}

.chat-username {
    font-weight: 700;
    color: var(--text);
}

.chat-badge {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.chat-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: auto;
}

.chat-text {
    word-break: break-word;
    color: #475569;
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid #f1f5f9;
    background: white;
}

/* Profile Modal / Card */
.profile-card {
    text-align: center;
    padding: 10px;
}

.profile-badge-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.profile-stat-item {
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.profile-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    color: #1e293b;
}

.profile-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.recent-earnings-list {
    text-align: left;
    margin-top: 15px;
}

.earning-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.earning-amount {
    font-weight: 600;
    color: #10b981;
}

/* Simple Badge Wrapper - No Effects */
.badge-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Level Tag in Chat */
.chat-lvl-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-left: 4px;
}
