.tool-review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 768px) {
    .tool-review-grid { grid-template-columns: repeat(2, 1fr); }
}
.review {
    background: none !important;
}
.tr-header-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}
.tr-viewall { color: #a78bfa !important; }

.tr-card {
    background: #1a0d24;
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* để grid item cao bằng nhau trong cùng hàng */
}

.tr-image-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.tr-image-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Placeholder khi chưa có ảnh */
.tr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(139,92,246,0.25), rgba(20,10,30,0.9));
    color: #8b5cf6;
}

.tr-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1; /* chiếm hết khoảng trống còn lại */
}

.tr-title-row { display: flex; align-items: center; gap: 8px; }
.tr-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(139,92,246,0.15); color: #a78bfa;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    overflow: hidden;
}
.tr-icon img { width: 100%; height: 100%; object-fit: cover; }
.tr-name { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }

.tr-category {
    display: inline-block; width: fit-content;
    background: rgba(139,92,246,0.15); color: #c4b5fd;
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}

.tr-excerpt {
    font-size: 13px;
    color: #a89fb0;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.5em * 2);
}

.tr-review-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: #a78bfa; font-size: 13px; font-weight: 600; text-decoration: none;
    margin-top: 4px;
}
.tr-review-link:hover { color: #a78bfa;}