
.comments-wrapper {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px dashed #e2e8f0;
}

.comments-list {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

.comment-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease;
    position: relative;
}

.comment-box:hover {
    transform: translateY(-2px);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0d6efd;
}

.comment-author {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}

.comment-date {
    font-size: 0.75rem;
    color: #64748b;
}

.comment-text {
    color: #334155;
    line-height: 1.5;
    margin-top: 5px;
    font-size: 0.95rem;
}

.comment-input-area {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
}

.custom-textarea {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 15px;
    min-height: 80px;
    resize: vertical;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.custom-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background: #ffffff;
}

.btn-submit-comment {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-submit-comment:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.auth-prompt {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.copy-link-btn {
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
    overflow: visible;
}
.copy-link-btn:hover {
    background: rgba(148, 163, 184, 0.15);
}
.copy-link-btn i {
    font-size: 1.2rem;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.copy-link-btn.copied i {
    color: #22c55e;
    transform: scale(1.3);
}
.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}
.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0f172a;
}
.copy-link-btn.copied .copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.premium-article-footer {
    width: 100%;
}

.reaction-trigger-zone {
    position: relative;
    display: inline-block;
}

.main-react-btn {
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-react-btn:hover {
    background-color: #f8fafc;
    border-color: #64748b;
    transform: translateY(-1px);
}

.main-react-btn:hover .custom-react-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.custom-react-icon {
    font-size: 1.2rem;
    transition: all 0.2s ease;
    color: #64748b;
}

.main-react-btn.active-react {
    background-color: #ffffff;
    border-color: #cbd5e1;
}

.emojis-popup-panel {
    position: absolute;
    bottom: 58px;
    left: 0;
    background: #ffffff;
    border-radius: 32px;
    padding: 10px 20px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.92);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 105;
}

.emojis-popup-panel.show-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.emoji-option-btn {
    background: none; border: none; outline: none;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; padding: 4px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emoji-option-btn:hover {
    transform: scale(1.4) translateY(-4px);
}

.emoji-option-btn.selected {
    background-color: #f1f5f9;
    border-radius: 16px;
}

.emoji-img {
    font-size: 2rem;
    line-height: 1;
}

.emoji-counter {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 700;
    margin-top: 4px;
}

.animate-pop {
    animation: popCheck 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popCheck {
    0% { transform: scale(0.6); }
    100% { transform: scale(1); }
}