.comments-list, .comment-item, .comments-scroll {
  overflow: visible !important;  /* вместо hidden/auto */
}

.comment .card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.15s ease-in-out;
}

.comment .card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.comment-text {
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Highlight mentions */
.comment-text a[href*="@"] {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.comment-text a[href*="@"]:hover {
    text-decoration: underline;
}

/* Reaction buttons */
.reaction-btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    min-width: 2.5rem;
}

.reaction-btn:hover {
    transform: scale(1.05);
    transition: transform 0.1s ease;
}

.reaction-count {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

/* Стили для ошибок модерации */
.is-invalid {
    border-color: #8b0000;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #8b0000 !important;
    font-weight: 500;
}

.invalid-feedback ul {
    margin: 0;
    padding-left: 1rem;
}

.invalid-feedback li {
    color: #8b0000 !important;
    font-weight: 500;
}