.hc-container {
    direction: rtl;
    max-width: 100%;
    margin: 20px 0;
    position: relative;
}

/* دکمه عمودی */
.hc-vertical-btn {
    background: linear-gradient(135deg, #ef4056, #c4283c);
    border: none;
    color: white;
    font-weight: bold;
    padding: 12px 12px;
    border-radius: 50px;
    cursor: pointer;

    text-orientation: mixed;
    font-size: 0.9rem;
    letter-spacing: 2px;
    width: 100px;
    height: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.hc-vertical-btn:hover {
    transform: scale(1.02);
    background: #c4283c;
}

.hc-header {
    display: flex;
    flex-direction: column;
}

.hc-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    padding-right: 20px;
    border-right: 4px solid #ef4056;
    display: inline-block;
}

.hc-scroll-hint {
    color: #7f8c8d;
    font-size: 0.75rem;
    margin: 8px 20px 16px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.hc-comment-card {
    flex: 0 0 340px;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: none;
    box-shadow: none;
    border-left: 1px solid #edf2f7;
}

.hc-comment-card:last-child {
    border-left: none;
}

.hc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hc-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ef4056, #c4283c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.hc-user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2c3e50;
}

.hc-comment-body p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2c3e50;
    margin: 0 0 12px;
}

.hc-like-section {
    margin-top: 8px;
}

.hc-like-btn {
    background: #f8fafc;
    border: none;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5b6e8c;
    transition: 0.2s;
}

.hc-like-btn:hover {
    background: #fee2e2;
    color: #ef4056;
}

.hc-heart-icon {
    font-size: 1rem;
}

.hc-like-count {
    font-weight: bold;
    color: #ef4056;
}

/* مودال */
.hc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.hc-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 25px;
    border-radius: 28px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fadeIn 0.3s;
}

.hc-modal-close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 10px;
}

.hc-modal-close:hover {
    color: #ef4056;
}

.hc-modal-content h4 {
    margin-top: 0;
    text-align: center;
    font-size: 1.3rem;
}

.hc-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hc-form-row input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 0.9rem;
}

textarea#hc-popup-comment {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

button#hc-popup-submit {
    background: #ef4056;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

button#hc-popup-submit:hover {
    background: #c4283c;
}

.hc-popup-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

@media (max-width: 600px) {
    .hc-comment-card {
        flex: 0 0 280px;
    }
    .hc-vertical-btn {
        width: 40px;
        font-size: 0.7rem;
        padding: 8px 4px;
    }
}


/* همان استایل‌های قبلی را نگه دارید، فقط این اضافات را بیفزایید */
.hc-load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}
.hc-load-more-btn {
    background: #ef4056;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.hc-load-more-btn:hover {
    background: #c4283c;
}
.hc-math-question {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 30px;
    flex-wrap: wrap;
}
.hc-math-question label {
    font-weight: bold;
    background: white;
    padding: 5px 12px;
    border-radius: 30px;
}
.hc-math-question input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid #ccc;
}
.hc-refresh-math {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}
