.ncm-panel--messages .ncm-panel__head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 0.75rem;

    margin-bottom: 0.5rem;

}



.ncm-panel--messages .ncm-panel__head h3 {

    margin: 0;

}



.ncm-panel__intro {

    margin: 0 0 1rem;

    color: #6b7280;

    font-size: 0.95rem;

}



.ncm-badge {

    display: inline-block;

    padding: 0.2rem 0.55rem;

    border-radius: 999px;

    background: #2750fb;

    color: #fff;

    font-size: 0.75rem;

    font-weight: 700;

    white-space: nowrap;

}



.ncm-panel__actions {

    display: flex;

    align-items: center;

    gap: 1rem;

    flex-wrap: wrap;

}



.ncm-profile-message-btn {

    margin-left: 0.5rem;

}



/* App de mensajes */

.ncm-messages-app {

    max-width: 760px;

}



.ncm-messages-app__header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1.25rem;

    text-align: left;

}



.ncm-messages-app__header .ncm-foros-hub__intro {

    margin-left: 0;

}



.ncm-messages-tabs {

    display: flex;

    gap: 0.5rem;

    margin-bottom: 1.25rem;

    border-bottom: 1px solid #e5e7eb;

}



.ncm-messages-tabs a {

    display: inline-flex;

    align-items: center;

    gap: 0.4rem;

    padding: 0.75rem 1rem;

    color: #6b7280;

    text-decoration: none;

    font-weight: 600;

    border-bottom: 2px solid transparent;

    margin-bottom: -1px;

}



.ncm-messages-tabs a.is-active {

    color: #2750fb;

    border-bottom-color: #2750fb;

}



.ncm-messages-app__body {

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 1.25rem;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);

}



.ncm-notice {

    margin-bottom: 1rem;

    padding: 0.85rem 1rem;

    border-radius: 8px;

    font-size: 0.95rem;

}



.ncm-notice--success {

    background: #ecfdf3;

    color: #027a48;

    border: 1px solid #abefc6;

}



.ncm-notice--error {

    background: #fef3f2;

    color: #b42318;

    border: 1px solid #fecdca;

}



.ncm-message-cards {

    list-style: none;

    margin: 0;

    padding: 0;

}



.ncm-message-card + .ncm-message-card {

    border-top: 1px solid #f0f0f0;

}



.ncm-message-card__link {

    display: flex;

    align-items: flex-start;

    gap: 0.85rem;

    padding: 1rem 0.25rem;

    color: inherit;

    text-decoration: none;

}



.ncm-message-card__link:hover {

    background: #fafbff;

}



.ncm-message-card.is-unread .ncm-message-card__name,

.ncm-message-card.is-unread .ncm-message-card__subject {

    font-weight: 700;

}



.ncm-message-card__avatar {

    width: 44px;

    height: 44px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

}



.ncm-message-card__content {

    flex: 1;

    min-width: 0;

}



.ncm-message-card__top {

    display: flex;

    justify-content: space-between;

    gap: 0.75rem;

    margin-bottom: 0.15rem;

}



.ncm-message-card__name {

    color: #111;

}



.ncm-message-card__date {

    color: #9ca3af;

    font-size: 0.8rem;

    white-space: nowrap;

}



.ncm-message-card__subject,

.ncm-message-card__excerpt {

    display: block;

    color: #6b7280;

    font-size: 0.9rem;

}



.ncm-message-card__unread {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 1.5rem;

    height: 1.5rem;

    padding: 0 0.35rem;

    border-radius: 999px;

    background: #2750fb;

    color: #fff;

    font-size: 0.75rem;

    font-weight: 700;

}



.ncm-empty-state {

    text-align: center;

    padding: 2rem 1rem;

}



.ncm-empty-state h3 {

    margin: 0 0 0.5rem;

}



.ncm-empty-state p {

    margin: 0 0 1.25rem;

    color: #6b7280;

}



.ncm-message-form-wrap h3,

.ncm-thread__head h3 {

    margin: 0 0 0.35rem;

}



.ncm-form-help {

    margin: 0 0 1.25rem;

    color: #6b7280;

}



.ncm-field {

    display: block;

    margin-bottom: 1rem;

}



.ncm-field > span {

    display: block;

    margin-bottom: 0.35rem;

    font-weight: 600;

    color: #111;

}



.ncm-field input,

.ncm-field textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 0.75rem 0.85rem;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    font: inherit;

}



.ncm-field input:focus,

.ncm-field textarea:focus {

    outline: none;

    border-color: #2750fb;

    box-shadow: 0 0 0 3px rgba(39, 80, 251, 0.12);

}



.ncm-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Botones: anular estilos del tema (Elementor) en formularios */
.ncm-foros-wrap .ncm-btn,
.ncm-messages-app .ncm-btn,
.ncm-foros-wrap button.ncm-btn,
.ncm-messages-app button.ncm-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ncm-foros-wrap .ncm-btn-primary,
.ncm-messages-app .ncm-btn-primary,
.ncm-foros-wrap button.ncm-btn-primary,
.ncm-messages-app button.ncm-btn-primary {
    background: #2750fb !important;
    background-color: #2750fb !important;
    color: #fff !important;
    border: 2px solid #2750fb !important;
    box-shadow: none !important;
}

.ncm-foros-wrap .ncm-btn-primary:hover,
.ncm-messages-app .ncm-btn-primary:hover,
.ncm-foros-wrap button.ncm-btn-primary:hover,
.ncm-messages-app button.ncm-btn-primary:hover,
.ncm-foros-wrap .ncm-btn-primary:focus,
.ncm-messages-app .ncm-btn-primary:focus,
.ncm-foros-wrap button.ncm-btn-primary:focus,
.ncm-messages-app button.ncm-btn-primary:focus {
    background: #1e42d4 !important;
    background-color: #1e42d4 !important;
    border-color: #1e42d4 !important;
    color: #fff !important;
    outline: none;
}

.ncm-thread__back {

    display: inline-block;

    margin-bottom: 0.75rem;

    color: #2750fb;

    text-decoration: none;

    font-weight: 600;

}



.ncm-thread__participants {

    margin: 0 0 1rem;

    color: #6b7280;

    font-size: 0.9rem;

}



.ncm-thread__messages {

    display: flex;

    flex-direction: column;

    gap: 0.85rem;

    margin-bottom: 1.25rem;

    max-height: 480px;

    overflow-y: auto;

    padding-right: 0.25rem;

}



.ncm-bubble {

    max-width: 88%;

    padding: 0.85rem 1rem;

    border-radius: 12px;

    background: #f3f4f6;

}



.ncm-bubble.is-mine {

    align-self: flex-end;

    background: #eef2ff;

}



.ncm-bubble__head {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    margin-bottom: 0.35rem;

    font-size: 0.85rem;

}



.ncm-bubble__avatar {

    width: 24px;

    height: 24px;

    border-radius: 50%;

    object-fit: cover;

}



.ncm-bubble__head time {

    margin-left: auto;

    color: #9ca3af;

}



.ncm-bubble__body {

    color: #111;

    font-size: 0.95rem;

}



.ncm-bubble__body p:last-child {

    margin-bottom: 0;

}



.ncm-thread__reply {

    border-top: 1px solid #f0f0f0;

    padding-top: 1rem;

}



/* Panel compacto en /foros/ */

.ncm-list--messages li {

    flex-direction: column;

    align-items: flex-start;

    gap: 0.15rem;

}



.ncm-list--messages li.is-unread a {

    font-weight: 700;

}



.ncm-message-subject {

    display: block;

    font-weight: 600;

}



.ncm-message-sender,

.ncm-message-excerpt {

    display: block;

    color: #6b7280;

    font-size: 0.85rem;

    font-weight: 400;

}


