/* ======================================================
   IA — Chats (grade de agentes)
   ====================================================== */

.ia-chats-title { font-size: 30px; letter-spacing: -.6px; margin-bottom: 6px; }
.ia-chats-lead { font-size: 15px; color: #64748B; margin: 0 0 28px; }

.ia-chats-loading { display: flex; justify-content: center; padding: 60px 0; }
.ia-chats-spinner {
    width: 38px; height: 38px;
    border: 3px solid #e2e8f0; border-top-color: #2563EB;
    border-radius: 50%; animation: ia-chats-spin .6s linear infinite;
}
@keyframes ia-chats-spin { to { transform: rotate(360deg); } }

.ia-chats-empty {
    text-align: center; padding: 60px 20px; color: #94A3B8;
}
.ia-chats-empty i { font-size: 34px; margin-bottom: 14px; display: block; color: #cbd5e1; }
.ia-chats-empty p { margin: 0; font-size: 14px; }

.ia-chats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 20px;
}

.ia-chats-card {
    text-align: left; cursor: pointer; padding: 0; border: none;
    border-radius: 22px; background: #fff; overflow: hidden;
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .35);
    transition: transform .22s, box-shadow .22s;
    display: flex; flex-direction: column;
    animation: rt-pop .28s ease both;
}
.ia-chats-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -22px rgba(15, 23, 42, .45); }

/* Retrato (topo com avatar em destaque) */
.ia-chats-portrait {
    position: relative; display: block;
    aspect-ratio: 1 / 1.04;
    overflow: hidden;
}
.ia-chats-badge {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ia-font-display); font-weight: 800; font-size: 11px;
    color: #fff; letter-spacing: .5px;
}
.ia-chats-vtag {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-family: var(--ia-font-display); font-weight: 800; font-size: 26px;
    letter-spacing: 2px; color: rgba(255, 255, 255, .32);
    text-transform: uppercase; user-select: none;
}
.ia-chats-av-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ia-chats-av {
    width: 132px; height: 132px; border-radius: 50%;
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, .55),
                inset 0 0 0 4px rgba(255, 255, 255, .9),
                0 0 0 5px rgba(255, 255, 255, .35);
}
.ia-chats-portrait-shade {
    position: absolute; inset: auto 0 0 0; height: 64px;
    background: linear-gradient(to top, rgba(15, 23, 42, .28), transparent);
}

/* Faixa de informação */
.ia-chats-band { display: block; padding: 14px 16px 16px; }
.ia-chats-band-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ia-chats-name {
    font-family: var(--ia-font-display); font-size: 18px; font-weight: 800;
    letter-spacing: -.3px; color: #0F172A;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ia-chats-arrow {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.ia-chats-cat {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; margin: 5px 0 8px;
    text-transform: uppercase; letter-spacing: .4px;
}
.ia-chats-cat-dot { width: 6px; height: 6px; border-radius: 99px; }
.ia-chats-desc {
    display: block; font-size: 12.5px; color: #64748B; line-height: 1.5;
    margin: 0; min-height: 38px;
}

@media (max-width: 575.98px) {
    .ia-chats-title { font-size: 24px; }
    .ia-chats-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .ia-chats-av { width: 96px; height: 96px; }
}
