/* ---------------------------------- */
/* НЕДАВНИЕ КОНТАКТЫ (ГОРИЗОНТАЛЬНАЯ ЛЕНТА) */
/* ---------------------------------- */

.recent-contacts {
    position: relative;
    top: 30px;
    margin: 0 12px 20px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.recent-contacts-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.recent-contacts-scroll::-webkit-scrollbar {
    height: 4px;
}

.recent-contacts-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.recent-contacts-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.recent-contact-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 56px;
}

.recent-contact-item:hover .recent-contact-avatar {
    box-shadow: 0 0 0 2px var(--primary);
    transition: box-shadow 0.2s ease;
}

.recent-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.recent-contact-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}