.chat-list-view {
    padding: 24px 12px 80px;
}

.hidden {
    display: none;
}

.chat-list-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.chat-list-pill {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0,
    rgba(255, 47, 146, 0.4) 0%,
    rgba(15, 13, 20, 0.95) 40%,
    #050506 100%);
    color: #f6e6ff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
            0 10px 26px rgba(0, 0, 0, 0.85),
            0 0 18px rgba(255, 47, 146, 0.55);
}

.chat-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 4px 0 4px;
}

.chat-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    gap: 14px;
    border: none;
    background: radial-gradient(circle at 0 0,
    rgba(255, 47, 146, 0.16) 0%,
    #0a090d 40%,
    #060509 100%);
    text-align: left;
    cursor: pointer;
    outline: none;
    border-radius: 22px;
    margin-bottom: 10px;
    box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.9),
            0 0 0 1px rgba(255, 255, 255, 0.02);
    transition:
            transform 0.12s ease-out,
            box-shadow 0.16s ease-out,
            background 0.16s ease-out;
}

.chat-item::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
            135deg,
            rgba(255, 47, 146, 0.45),
            rgba(146, 98, 255, 0.25),
            rgba(10, 8, 16, 0.0)
    );
    opacity: 0;
    transition: opacity 0.18s;
}

.chat-item:hover {
    transform: translateY(-1px);
    box-shadow:
            0 18px 40px rgba(0, 0, 0, 1),
            0 0 32px rgba(255, 47, 146, 0.55);
}

.chat-item:hover::after {
    opacity: 1;
}

.chat-item:active {
    transform: translateY(1px) scale(0.995);
}

.chat-item.active {
    box-shadow:
            0 18px 40px rgba(0, 0, 0, 1),
            0 0 28px rgba(255, 47, 146, 0.85);
}

.chat-avatar,
.chat-avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow:
            0 0 0 2px rgba(255, 255, 255, 0.04),
            0 12px 26px rgba(0, 0, 0, 0.85);
    background: #262225;
}

.chat-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
            radial-gradient(circle at 20% 0%, #ffb0ff 0%, #ff2f92 40%, #3a133a 100%);
    font-weight: 700;
    color: #fff;
}

.chat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-title {
    font-size: 1.02rem;
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.03em;
}

.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.chat-time {
    font-size: 11px;
    opacity: 0.7;
}

.chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff2f92;
    display: none;
}

.chat-item.chat-has-notification .chat-lastmsg {
    font-weight: 600;
}

.chat-time {
    color: #a6a0b5;
    font-size: 0.82rem;
    font-weight: 500;
}

.chat-lastmsg {
    font-size: 0.86rem;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    color: #c7c1dd;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-lastmsg::before {
    content: attr(data-icon);
}

.chat-item.unread .chat-title {
    color: #ffffff;
    font-weight: 700;
}

.chat-item.unread .chat-lastmsg {
    color: #f5d6ff;
}

.chat-item.unread .chat-time::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(255, 47, 146, 0.9);
}
