/* Modern Comments Pro - FINAL CORRECTED VERSION */

/* === ROOT VARIABLES === */
:root {
    --mcp-primary: #ff4f7d;
    --mcp-primary-hover: #e93cda;
    --mcp-bg: #111111;
    --mcp-card-bg: #1a1a1a;
    --mcp-input-bg: #222222;
    --mcp-border: #333333;
    --mcp-text: #eeeeee;
    --mcp-subtext: #aaaaaa;
    --mcp-radius: 6px;
    --mcp-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* === MAIN WRAPPER (Transparent Mode) === */
#mcp-comments-section.mcp-wrapper {
    max-width: 850px;
    margin: 40px auto;
    padding: 20px 0;
    box-sizing: border-box;

    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;

    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
    color: var(--mcp-text) !important;
    text-align: left;
}

/* === AGGRESSIVE CHILD RESET === */
#mcp-comments-section * {
    box-sizing: border-box;
    /* Explicitly set font */
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-weight: 400 !important;
    line-height: inherit;
    color: inherit;
}

/* === FIX ICONS (CRITICAL) === */
/* Exclude icons from the font-family reset so they can load */
#mcp-comments-section i,
#mcp-comments-section .fas,
#mcp-comments-section .fa-solid,
#mcp-comments-section .fab,
#mcp-comments-section .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal;
}

/* Force Bold where strictly necessary */
#mcp-comments-section strong,
#mcp-comments-section b,
#mcp-comments-section h1,
#mcp-comments-section h2,
#mcp-comments-section .mcp-title,
#mcp-comments-section .mcp-author-name {
    font-weight: 700 !important;
}

/* === HEADER === */
#mcp-comments-section .mcp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border: none;
    padding: 0;
}

#mcp-comments-section .mcp-title {
    font-size: 1.5rem;
    color: #fff !important;
    border-left: 4px solid var(--mcp-primary);
    padding-left: 15px;
    text-transform: none;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* === VISUAL FIX: NOTIFICATIONS & BELL === */
#mcp-comments-section .mcp-notif-btn {
    background: transparent !important;
    /* Fix white box around bell */
    border: none !important;
    color: #fff !important;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 5px;
    margin-right: 15px;
}

#mcp-comments-section .mcp-notif-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 300px;
    background: #1a1a1a !important;
    /* Dark dropdown bg */
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

#mcp-comments-section .mcp-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #222 !important;
    border-bottom: 1px solid #333;
}

#mcp-comments-section .mcp-notif-header strong {
    color: #fff !important;
}

#mcp-comments-section .mcp-notif-clear {
    background: transparent !important;
    /* Fix white background button */
    border: 1px solid #444 !important;
    color: #aaa !important;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

#mcp-comments-section .mcp-notif-clear:hover {
    color: #fff !important;
    border-color: #666 !important;
}

#mcp-comments-section .mcp-sort-controls {
    display: flex;
    gap: 8px;
}

#mcp-comments-section .mcp-sort-btn {
    background: transparent !important;
    border: 1px solid var(--mcp-border) !important;
    color: var(--mcp-subtext) !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

#mcp-comments-section .mcp-sort-btn:hover,
#mcp-comments-section .mcp-sort-btn.active {
    background: var(--mcp-input-bg) !important;
    color: #fff !important;
    border-color: var(--mcp-primary) !important;
}

/* === REACTIONS BAR === */
#mcp-comments-section .mcp-reactions-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mcp-border) !important;
}

#mcp-comments-section .mcp-reactions-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#mcp-comments-section .mcp-reaction-btn {
    background: var(--mcp-input-bg) !important;
    border: 1px solid var(--mcp-border) !important;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

#mcp-comments-section .mcp-reaction-btn .mcp-reaction-emoji {
    font-size: 1.8rem;
}

#mcp-comments-section .mcp-reaction-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--mcp-primary) !important;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
}

#mcp-comments-section .mcp-reaction-btn.active {
    background: rgba(138, 43, 226, 0.2) !important;
    border-color: var(--mcp-primary) !important;
}

/* === INPUT FORM === */
#mcp-comments-section .mcp-form-card {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: flex-start;
    overflow: visible;
}

#mcp-comments-section .mcp-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mcp-border);
}


#mcp-comments-section .mcp-user-menu-wrapper {
    position: relative;
    flex: 0 0 auto;
    z-index: 120;
}

#mcp-comments-section .mcp-user-menu-trigger {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    border-radius: 50%;
    line-height: 0;
}

#mcp-comments-section .mcp-user-menu-trigger:focus-visible {
    outline: 2px solid var(--mcp-primary);
    outline-offset: 3px;
}

#mcp-comments-section .mcp-user-menu-trigger:hover .mcp-avatar {
    border-color: var(--mcp-primary);
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.18);
}

#mcp-comments-section .mcp-user-menu-dropdown {
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    min-width: 190px;
    background: #1f1f24;
    border: 1px solid var(--mcp-border);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 9999;
}

#mcp-comments-section .mcp-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #f2f2f2 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

#mcp-comments-section .mcp-user-menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--mcp-primary) !important;
}

#mcp-comments-section .mcp-user-menu-item-logout {
    border-top: 1px solid rgba(255,255,255,0.06);
}

#mcp-comments-section .mcp-input-wrapper {
    flex-grow: 1;
    background: var(--mcp-input-bg) !important;
    /* Force Dark Grey */
    border: 1px solid var(--mcp-border) !important;
    border-radius: var(--mcp-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: border 0.3s;
}

#mcp-comments-section .mcp-input-wrapper:focus-within {
    border-color: var(--mcp-primary) !important;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2) !important;
}

#mcp-comments-section .mcp-toolbar {
    background: #2a2a2a !important;
    padding: 8px 12px;
    border-bottom: 1px solid #333 !important;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

#mcp-comments-section .mcp-format-btn {
    background: transparent !important;
    border: none !important;
    color: #ccc !important;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

#mcp-comments-section .mcp-format-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

#mcp-comments-section .mcp-format-btn.spoiler {
    color: #ff6b81 !important;
    width: auto;
    padding: 0 8px;
    gap: 5px;
}

/* File Input Styling - Invisible/Hidden */
#mcp-comments-section input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
}

#mcp-comments-section input[type="file"]::file-selector-button {
    display: none;
}

#mcp-comments-section textarea.mcp-textarea {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 15px;
    color: #fff !important;
    min-height: 100px;
    resize: vertical;
    font-size: 0.95rem;
    outline: none !important;
}

#mcp-comments-section .mcp-form-actions {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333 !important;
    gap: 15px;
}

/* Notifications Checkbox Styling */
#mcp-comments-section .mcp-notify-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
}

#mcp-comments-section input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #333;
    margin: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #555;
    border-radius: 3px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

#mcp-comments-section input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--mcp-primary);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

#mcp-comments-section input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Submit Button */
#mcp-comments-section .mcp-submit-btn {
    background-color: var(--mcp-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 30px;
    font-size: 0.9rem;
    font-weight: 600 !important;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4) !important;
}

#mcp-comments-section .mcp-submit-btn:hover {
    background-color: var(--mcp-primary-hover) !important;
    transform: translateY(-1px);
}

/* === COMMENT LIST === */
#mcp-comments-section .mcp-comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#mcp-comments-section .mcp-comment-card {
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    transition: background 0.2s;
}

#mcp-comments-section .mcp-comment-card:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(138, 43, 226, 0.3) !important;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

#mcp-comments-section .mcp-comment-body {
    flex-grow: 1;
}

#mcp-comments-section .mcp-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

#mcp-comments-section .mcp-author-name {
    color: #fff !important;
    font-size: 1.1rem;
}

#mcp-comments-section .mcp-rank-badge,
#mcp-comments-section .mcp-author-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#mcp-comments-section .mcp-author-badge.admin {
    background: var(--mcp-primary) !important;
}

#mcp-comments-section .mcp-time {
    color: #888 !important;
    font-size: 0.8rem;
}

#mcp-comments-section .mcp-comment-text {
    color: #ddd !important;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Actions */
#mcp-comments-section .mcp-actions {
    display: flex;
    gap: 15px;
}

#mcp-comments-section .mcp-action-btn {
    background: transparent !important;
    border: none !important;
    color: #888 !important;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

#mcp-comments-section .mcp-action-btn:hover {
    color: #fff !important;
    background: none !important;
}

#mcp-comments-section .mcp-action-btn.liked {
    color: var(--mcp-liked) !important;
}

/* Nested */
#mcp-comments-section .mcp-children {
    margin-top: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #333;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Mobile */
@media (max-width: 600px) {
    #mcp-comments-section .mcp-form-card {
        flex-direction: column;
    }

    #mcp-comments-section .mcp-avatar {
        width: 40px;
        height: 40px;
    }

    #mcp-comments-section.mcp-wrapper {
        padding: 15px;
        margin-top: 20px;
    }
}

/* Pinned */
#mcp-comments-section .mcp-pinned-card {
    border: 1px solid #f1c40f !important;
    background: rgba(241, 196, 15, 0.05) !important;
}

/* Spoilers */
#mcp-comments-section .mcp-spoiler {
    background: #333 !important;
    color: transparent !important;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

#mcp-comments-section .mcp-spoiler.revealed {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ccc !important;
}

/* Toast */
.mcp-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

.mcp-toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 10px;
    border-left: 4px solid var(--mcp-primary);
}

/* === TOP COMENTARISTAS WIDGET === */
.mcp-ranking-board {
    background: var(--mcp-card-bg) !important;
    border: 1px solid var(--mcp-border);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mcp-ranking-board h2 {
    color: #fff !important;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--mcp-primary);
    text-align: center;
    font-weight: 700 !important;
}

.mcp-ranking-board ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mcp-ranking-board li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.mcp-ranking-board li:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--mcp-primary);
    transform: translateX(5px);
}

.mcp-ranking-board .mcp-rank-pos {
    font-size: 1.2rem;
    font-weight: 700 !important;
    min-width: 50px;
    text-align: center;
    color: var(--mcp-subtext) !important;
}

.mcp-ranking-board .mcp-rank-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.mcp-ranking-board .mcp-rank-user img {
    border-radius: 50%;
    border: 2px solid var(--mcp-border);
}

.mcp-ranking-board .mcp-rank-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mcp-ranking-board .mcp-rank-details strong {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600 !important;
}

.mcp-ranking-board .mcp-rank-count {
    color: var(--mcp-subtext) !important;
    font-size: 0.9rem;
    white-space: nowrap;
}


/* === NOTIFICATIONS DROPDOWN LIST === */
.mcp-notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.mcp-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.mcp-notif-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.mcp-notif-item.unread {
    background: rgba(138, 43, 226, 0.1) !important;
}

.mcp-notif-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mcp-notif-content {
    flex-grow: 1;
}

.mcp-notif-content p {
    margin: 0 0 4px 0;
    color: #eee !important;
    font-size: 0.9rem;
}

.mcp-notif-time {
    color: #888 !important;
    font-size: 0.75rem;
}

.mcp-notif-dot {
    width: 8px;
    height: 8px;
    background: var(--mcp-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}

.mcp-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757 !important;
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 700 !important;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcp-notifications-wrapper {
    position: relative;
}

/* Hide honeypot field (anti-spam trap) */
#mcp-comments-section .mcp-honey {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* Hide file input completely */
#mcp-comments-section .mcp-file-input {
    position: absolute !important;
    left: -9999px !important;
    width: 0.1px !important;
    height: 0.1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
}

/* Loading spinner */
.mcp-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--mcp-primary);
    font-size: 2rem;
}


/* === IMAGE SPOILER === */
.mcp-comment-image-wrapper {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
}

.mcp-image-spoiler {
    position: relative;
    cursor: pointer;
}

.mcp-image-spoiler img {
    width: 100%;
    display: block;
    transition: filter 0.3s;
}

.mcp-image-spoiler:not(.revealed) img {
    filter: blur(20px);
    pointer-events: none;
}

.mcp-spoiler-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    transition: opacity 0.3s;
    pointer-events: none;
}

.mcp-spoiler-overlay i {
    font-size: 2rem;
    color: #ff6b81;
}

.mcp-spoiler-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.mcp-image-spoiler.revealed .mcp-spoiler-overlay {
    opacity: 0;
    pointer-events: none;
}

.mcp-image-spoiler.revealed img {
    filter: none;
    pointer-events: auto;
}

/* Comment Counter (Disqus style) */
.mcp-comment-count {
    display: inline-block;
    background: rgba(138, 43, 226, 0.2);
    color: var(--mcp-primary) !important;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}


/* === UPVOTE/DOWNVOTE BUTTONS (Disqus style) === */
.mcp-vote-buttons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 4px 8px;
    margin-right: 10px;
}

.mcp-vote-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-radius: 4px;
}

.mcp-vote-btn:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.1);
}

.mcp-vote-btn.mcp-upvote.active {
    color: #fff !important;
    background: #4CAF50 !important;
}

.mcp-vote-btn.mcp-downvote.active {
    color: #fff !important;
    background: #ff6b81 !important;
}

.mcp-vote-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.mcp-vote-count.positive {
    color: #4CAF50;
}

.mcp-vote-count.negative {
    color: #ff6b81;
}



/* Vote button counters */
.mcp-vote-btn span {
    margin-left: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mcp-vote-btn.mcp-upvote.active span {
    color: #fff !important;
}

.mcp-vote-btn.mcp-downvote.active span {
    color: #fff !important;
}


/* === EDIT COMMENT FORM === */
.mcp-edit-form {
    margin: 10px 0;
}

.mcp-edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: #222 !important;
    border: 1px solid var(--mcp-border);
    border-radius: 6px;
    color: #fff !important;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.mcp-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mcp-btn-save,
.mcp-btn-cancel {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mcp-btn-save {
    background: var(--mcp-primary);
    color: #fff;
}

.mcp-btn-save:hover {
    background: #9b4ed3;
    transform: translateY(-2px);
}

.mcp-btn-cancel {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}

.mcp-btn-cancel:hover {
    background: rgba(255,255,255,0.05);
    border-color: #666;
}




.mcp-profile-page {
    max-width: 680px;
    margin: 40px auto;
}

.mcp-profile-card {
    background: var(--mcp-card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--mcp-shadow);
}

.mcp-profile-card h2 {
    margin: 0 0 18px;
    color: #fff;
}

.mcp-profile-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    color: #fff;
}

.mcp-profile-current-avatar {
    margin-bottom: 18px;
}

.mcp-profile-current-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mcp-primary);
}

.mcp-profile-form {
    display: grid;
    gap: 16px;
}

.mcp-profile-form label {
    display: grid;
    gap: 8px;
}

.mcp-profile-form > label > span,
.mcp-profile-checkbox span {
    color: #fff;
    font-weight: 700;
}

.mcp-profile-form input[type="text"] {
    width: 100%;
    min-height: 54px;
    background: rgba(10, 12, 28, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px 18px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mcp-profile-form input[type="text"]:focus {
    outline: none;
    border-color: rgba(255, 77, 136, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 77, 136, 0.10);
}

.mcp-profile-form input[type="file"] {
    width: 100%;
    min-height: 54px;
    background: rgba(6, 8, 22, 0.96);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 12px 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.3;
}

.mcp-profile-form input[type="file"]::file-selector-button {
    appearance: none;
    border: 1px solid rgba(255, 93, 152, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, #ff5c98 0%, #ff477e 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 18px;
    margin-right: 14px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 71, 126, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.mcp-profile-form input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 12px 24px rgba(255, 71, 126, 0.22);
}

.mcp-profile-form small {
    color: var(--mcp-subtext);
    margin-top: 2px;
}

.mcp-profile-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
    user-select: none;
}

.mcp-profile-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px !important;
    height: 20px;
    margin: 0;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(10, 12, 28, 0.9);
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mcp-profile-checkbox input[type="checkbox"]::before {
    content: "";
    width: 11px;
    height: 11px;
    transform: scale(0);
    transition: transform 120ms ease-in-out;
    box-shadow: inset 1em 1em #ff5b95;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.mcp-profile-checkbox input[type="checkbox"]:checked {
    border-color: rgba(255, 91, 149, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 91, 149, 0.12);
}

.mcp-profile-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.mcp-profile-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.mcp-profile-actions .mcp-submit-btn {
    min-width: 190px;
    padding: 13px 26px;
    border-radius: 14px !important;
    font-size: 1rem;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: linear-gradient(180deg, #ff5c98 0%, #ff477e 100%) !important;
    box-shadow: 0 14px 28px rgba(255, 71, 126, 0.20) !important;
}

.mcp-profile-actions .mcp-submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 30px rgba(255, 71, 126, 0.24) !important;
}

@media (max-width: 640px) {
    .mcp-profile-card {
        padding: 20px;
        border-radius: 16px;
    }

    .mcp-profile-form input[type="file"] {
        padding: 10px 12px;
    }

    .mcp-profile-form input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 12px 0;
        text-align: center;
    }

    .mcp-profile-actions {
        display: block;
    }

    .mcp-profile-actions .mcp-submit-btn {
        width: 100%;
        min-width: 0;
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .mcp-comment-item {
        flex-direction: column; /* Stack avatar and content on very small screens? No, keep side by side but smaller */
        padding: 10px 0;
    }

    .mcp-avatar {
        width: 40px !important;
        height: 40px !important;
        margin-right: 12px;
    }

    #mcp-comments-section .mcp-user-menu-dropdown {
        top: calc(100% + 10px);
        left: 0;
    }

    .mcp-comment-header {
        flex-wrap: wrap;
        gap: 5px;
    }

    .mcp-author-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .mcp-actions {
        flex-wrap: wrap;
        gap: 8px; /* Reduce gap */
    }

    .mcp-action-btn, .mcp-vote-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    /* Fix nested comments padding */
    .mcp-replies {
        margin-left: 20px; /* Reduce indentation */
        border-left: 2px solid #333;
        padding-left: 10px;
    }

    /* Header adjustments */
    .mcp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .mcp-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .mcp-sort-controls {
        flex: 1;
        justify-content: flex-end;
    }

    /* Input form */
    .mcp-form-card {
        padding: 15px;
    }

    .mcp-toolbar {
        overflow-x: auto;
        padding-bottom: 5px; /* Scrollbar space */
    }
}

.reaction-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}



/* ===== REACTION ANIMATIONS ===== */

.mcp-reaction-btn {
    position: relative;
    transition: transform 0.2s ease;
}

.reaction-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reaction-img {
    width: 40px;
    transition: transform 0.25s ease;
}

/* HOVER EFFECT */
.mcp-reaction-btn:hover .reaction-img {
    transform: scale(1.25);
}

/* LABEL (hidden by default) */
.reaction-label {
    position: absolute;
    bottom: 55px;
    background: rgba(255, 79, 125, 0.9); /* #ff4f7d con transparencia */
    color: #fff;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(255, 79, 125, 0.4);
}

/* SHOW LABEL ON HOVER */
.mcp-reaction-btn:hover .reaction-label {
    opacity: 1;
    transform: translateY(0);
}

/* CLICK ANIMATION */
.mcp-reaction-btn:active .reaction-img {
    transform: scale(1.4);
}

.mcp-reaction-btn:active .reaction-label {
    transform: scale(1.1);
}

/* === FRONTEND PROFILE FORM POLISH === */
.mcp-profile-form input[type="text"],
.mcp-profile-form input[type="file"] {
    min-height: 56px;
    border-radius: 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}

.mcp-profile-form input[type="text"]:focus,
.mcp-profile-form input[type="file"]:focus {
    outline: none;
    border-color: rgba(255, 79, 125, 0.85);
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.12), 0 16px 34px rgba(255, 64, 129, 0.10);
}

.mcp-profile-form input[type="file"] {
    padding: 10px 12px;
    cursor: pointer;
    color: #ececf7;
    background: linear-gradient(180deg, rgba(12, 12, 22, 0.92), rgba(10, 10, 18, 0.98));
    border: 1px solid rgba(255,255,255,0.10);
}

.mcp-profile-form input[type="file"]::file-selector-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: linear-gradient(180deg, #ff5f92 0%, #ff3f81 100%);
    color: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 800;
    font-size: .96rem;
    margin-right: 14px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    box-shadow: 0 14px 34px rgba(255, 64, 129, 0.34);
}

.mcp-profile-form input[type="file"]:hover::file-selector-button,
.mcp-profile-form input[type="file"]:focus::file-selector-button {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(255, 64, 129, 0.42);
    filter: brightness(1.04);
}

.mcp-profile-form input[type="file"]::-webkit-file-upload-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: linear-gradient(180deg, #ff5f92 0%, #ff3f81 100%);
    color: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 800;
    font-size: .96rem;
    margin-right: 14px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(255, 64, 129, 0.34);
}

.mcp-profile-checkbox {
    padding: 10px 0 4px;
    gap: 10px;
    align-items: center;
}

.mcp-profile-checkbox span {
    font-weight: 700;
    color: #f3f3fb;
}

.mcp-profile-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(180deg, rgba(15,15,28,0.96), rgba(8,8,16,0.98));
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    margin: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.mcp-profile-checkbox input[type="checkbox"]::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 4px;
    transform: scale(0);
    transition: transform .12s ease-in-out;
    box-shadow: inset 1em 1em #ff4f7d;
}

.mcp-profile-checkbox input[type="checkbox"]:checked {
    border-color: rgba(255, 79, 125, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 79, 125, 0.12);
}

.mcp-profile-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.mcp-profile-actions .mcp-submit-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 16px;
    padding: 15px 28px;
    min-width: 210px;
    background: linear-gradient(180deg, #ff5f92 0%, #ff3f81 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(255, 64, 129, 0.36);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.mcp-profile-actions .mcp-submit-btn:hover,
.mcp-profile-actions .mcp-submit-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(255, 64, 129, 0.44);
    filter: brightness(1.05);
}

.mcp-profile-actions .mcp-submit-btn:focus-visible {
    outline: 2px solid rgba(255,255,255,0.85);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .mcp-profile-form input[type="file"]::file-selector-button,
    .mcp-profile-form input[type="file"]::-webkit-file-upload-button {
        padding: 13px 16px;
        margin-right: 10px;
        border-radius: 12px;
    }

    .mcp-profile-actions .mcp-submit-btn {
        width: 100%;
        min-width: 0;
    }
}


/* === v319 profile button tuning === */
.mcp-profile-page .mcp-profile-form input[type="file"] {
    background: rgba(8, 10, 24, 0.96) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
    color: rgba(255,255,255,0.85) !important;
    min-height: 50px !important;
    box-shadow: none !important;
}

.mcp-profile-page .mcp-profile-form input[type="file"]::file-selector-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: rgba(12, 14, 30, 0.98) !important;
    color: #ffffff !important;
    border: 1px solid #ff5b95 !important;
    border-radius: 11px !important;
    padding: 10px 16px !important;
    margin-right: 12px !important;
    font-size: 0.93rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 0 0 1px rgba(255, 91, 149, 0.18), 0 0 10px rgba(255, 91, 149, 0.18) !important;
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease, background .18s ease !important;
}

.mcp-profile-page .mcp-profile-form input[type="file"]::file-selector-button:hover {
    background: rgba(16, 18, 38, 1) !important;
    border-color: #ff6aa0 !important;
    box-shadow: 0 0 0 1px rgba(255, 91, 149, 0.22), 0 0 14px rgba(255, 91, 149, 0.24) !important;
    transform: translateY(-1px) !important;
    filter: none !important;
}

.mcp-profile-page .mcp-profile-actions .mcp-submit-btn {
    min-width: 0 !important;
    padding: 11px 22px !important;
    font-size: 0.96rem !important;
    border-radius: 13px !important;
    box-shadow: 0 12px 22px rgba(255, 71, 126, 0.18) !important;
}

.mcp-profile-page .mcp-profile-actions .mcp-submit-btn:hover {
    box-shadow: 0 14px 24px rgba(255, 71, 126, 0.22) !important;
}

@media (max-width: 640px) {
    .mcp-profile-page .mcp-profile-form input[type="file"]::file-selector-button {
        width: auto !important;
        display: inline-block !important;
        margin: 0 10px 0 0 !important;
    }
}
