/**
 * MeroSath Reader Engagement Stylesheet
 * Responsive, accessible Devanagari styling for /my-news/ and reader controls
 */

:root {
    --mre-primary: #0d5cb6;
    --mre-primary-light: #e8f2fc;
    --mre-primary-dark: #083c78;
    --mre-accent: #dd3333;
    --mre-accent-light: #fdf2f2;
    --mre-success: #10b981;
    --mre-success-light: #ecfdf5;
    --mre-text: #1e293b;
    --mre-text-muted: #64748b;
    --mre-bg-card: #ffffff;
    --mre-bg-page: #f8fafc;
    --mre-border: #e2e8f0;
    --mre-radius-sm: 6px;
    --mre-radius-md: 10px;
    --mre-radius-lg: 16px;
    --mre-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --mre-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Single Article & Category Action Bar
   ========================================================================== */
.mre-article-action-bar {
    margin: 18px 0 24px 0;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--mre-border);
    border-left: 4px solid var(--mre-primary);
    border-radius: var(--mre-radius-sm);
    box-sizing: border-box;
}

.mre-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mre-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--mre-border);
    background: #ffffff;
    color: var(--mre-text);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    outline: none;
}

.mre-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Bookmark Button States */
.mre-btn-bookmark {
    color: var(--mre-primary);
}

.mre-btn-bookmark.is-saved {
    background: var(--mre-primary-light);
    border-color: var(--mre-primary);
    color: var(--mre-primary-dark);
}

.mre-btn-bookmark.is-saved svg {
    fill: currentColor;
}

/* Follow Topic Button States */
.mre-btn-follow {
    color: #334155;
}

.mre-btn-follow.is-following {
    background: var(--mre-success-light);
    border-color: var(--mre-success);
    color: #065f46;
}

.mre-btn-follow .mre-follow-plus {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.mre-link-portal {
    margin-left: auto;
    font-family: 'Mukta', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mre-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.mre-link-portal:hover {
    color: var(--mre-accent);
    text-decoration: underline;
}

/* Top Bar Badge */
.mre-top-nav-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 600 !important;
}

.mre-nav-star {
    color: #f59e0b;
    font-size: 14px;
}

.mre-nav-saved-badge,
.mre-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border-radius: 12px;
    background: var(--mre-primary);
    color: #ffffff;
}

/* Category Follow Strip */
.mre-category-follow-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid var(--mre-border);
    border-radius: var(--mre-radius-sm);
}

/* ==========================================================================
   Portal Page (/my-news/) Layout
   ========================================================================== */
.mre-portal-wrapper {
    background: var(--mre-bg-page);
    padding: 24px 0 60px 0;
    min-height: 600px;
    font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif;
}

.mre-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Breadcrumbs */
.mre-breadcrumbs {
    font-size: 13px;
    color: var(--mre-text-muted);
    margin-bottom: 18px;
}

.mre-breadcrumbs a {
    color: var(--mre-primary);
    text-decoration: none;
}

.mre-breadcrumbs a:hover {
    text-decoration: underline;
}

.mre-breadcrumbs .mre-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

/* Portal Header */
.mre-portal-header {
    background: var(--mre-bg-card);
    border: 1px solid var(--mre-border);
    border-radius: var(--mre-radius-md);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--mre-shadow-sm);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mre-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--mre-primary-light);
    color: var(--mre-primary);
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mre-portal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--mre-text);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.mre-portal-subtitle {
    font-size: 15px;
    color: var(--mre-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Summary Counters */
.mre-summary-strip {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mre-summary-item {
    background: #f8fafc;
    border: 1px solid var(--mre-border);
    border-radius: var(--mre-radius-sm);
    padding: 10px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mre-summary-item:hover {
    border-color: var(--mre-primary);
    background: var(--mre-primary-light);
}

.mre-summary-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--mre-primary);
    line-height: 1.1;
}

.mre-summary-label {
    display: block;
    font-size: 12px;
    color: var(--mre-text-muted);
    margin-top: 2px;
    white-space: nowrap;
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.mre-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--mre-border);
    padding-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.mre-tabs-nav::-webkit-scrollbar {
    display: none;
}

.mre-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--mre-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: -2px;
    outline: none;
}

.mre-tab-btn:hover {
    color: var(--mre-primary);
}

.mre-tab-btn.active {
    color: var(--mre-primary);
    border-bottom-color: var(--mre-primary);
    font-weight: 700;
}

.mre-tab-btn.active .mre-badge {
    background: var(--mre-primary);
}

/* ==========================================================================
   Tab Content Panes
   ========================================================================== */
.mre-tab-pane {
    background: transparent;
}

.mre-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.mre-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--mre-text);
    margin: 0 0 4px 0;
}

.mre-section-desc {
    font-size: 14px;
    color: var(--mre-text-muted);
    margin: 0;
}

.mre-btn-text-link {
    background: none;
    border: none;
    font-family: 'Mukta', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mre-primary);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.mre-btn-text-link:hover {
    color: var(--mre-accent);
    text-decoration: underline;
}

.mre-btn-danger-outline {
    background: transparent;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-family: 'Mukta', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--mre-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mre-btn-danger-outline:hover {
    background: #fee2e2;
}

/* ==========================================================================
   Article Cards Grid
   ========================================================================== */
.mre-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.mre-card {
    background: var(--mre-bg-card);
    border: 1px solid var(--mre-border);
    border-radius: var(--mre-radius-md);
    overflow: hidden;
    box-shadow: var(--mre-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.mre-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mre-shadow-md);
}

.mre-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    overflow: hidden;
}

.mre-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mre-card:hover .mre-card-thumb {
    transform: scale(1.03);
}

.mre-card-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--mre-primary);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    z-index: 2;
}

.mre-card-bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.mre-card-bookmark-btn:hover {
    background: #ffffff;
    color: var(--mre-primary);
    transform: scale(1.08);
}

.mre-card-bookmark-btn.is-saved {
    background: var(--mre-primary);
    color: #ffffff;
}

.mre-card-bookmark-btn.is-saved svg {
    fill: currentColor;
}

.mre-card-body {
    padding: 16px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mre-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.mre-card-title a {
    color: var(--mre-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mre-card-title a:hover {
    color: var(--mre-primary);
}

.mre-card-excerpt {
    font-size: 14px;
    color: var(--mre-text-muted);
    line-height: 1.55;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.mre-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.mre-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mre-card-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.mre-card-remove-btn:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* ==========================================================================
   Empty States & Onboarding
   ========================================================================== */
.mre-empty-box {
    background: var(--mre-bg-card);
    border: 2px dashed #cbd5e1;
    border-radius: var(--mre-radius-md);
    padding: 40px 24px;
    text-align: center;
    max-width: 650px;
    margin: 20px auto;
}

.mre-empty-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.mre-empty-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--mre-text);
    margin: 0 0 8px 0;
}

.mre-empty-box p {
    font-size: 15px;
    color: var(--mre-text-muted);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.mre-btn-primary {
    display: inline-block;
    background: var(--mre-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: var(--mre-radius-sm);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mre-btn-primary:hover {
    background: var(--mre-primary-dark);
    color: #ffffff;
}

/* Quick Topic Onboarding Chips */
.mre-quick-topics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.mre-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid var(--mre-border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mre-topic-chip:hover {
    border-color: var(--mre-primary);
    background: var(--mre-primary-light);
    color: var(--mre-primary);
}

.mre-topic-chip.is-active {
    background: var(--mre-primary);
    color: #ffffff;
    border-color: var(--mre-primary);
}

/* Topic Manager Grid (Tab 4) */
.mre-topics-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.mre-topic-manager-card {
    background: var(--mre-bg-card);
    border: 1px solid var(--mre-border);
    border-radius: var(--mre-radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.mre-topic-manager-card:hover {
    border-color: #cbd5e1;
    background: #fafafa;
}

.mre-topic-info {
    display: flex;
    flex-direction: column;
}

.mre-topic-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--mre-text);
}

.mre-topic-count {
    font-size: 12px;
    color: var(--mre-text-muted);
}

/* Loading & Pagination */
.mre-loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: var(--mre-text-muted);
}

.mre-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--mre-primary);
    border-radius: 50%;
    animation: mre-spin 0.8s linear infinite;
    margin: 0 auto 12px auto;
}

@keyframes mre-spin {
    to { transform: rotate(360deg); }
}

.mre-pagination-wrap {
    text-align: center;
    margin-top: 32px;
}

.mre-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #ffffff;
    border: 1px solid var(--mre-primary);
    border-radius: var(--mre-radius-sm);
    color: var(--mre-primary);
    font-family: 'Mukta', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mre-load-more-btn:hover {
    background: var(--mre-primary);
    color: #ffffff;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 767px) {
    .mre-portal-header {
        padding: 20px;
    }
    .mre-portal-title {
        font-size: 22px;
    }
    .mre-summary-strip {
        width: 100%;
        justify-content: space-between;
    }
    .mre-summary-item {
        flex: 1;
        padding: 8px 10px;
    }
    .mre-summary-num {
        font-size: 20px;
    }
    .mre-feed-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .mre-action-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .mre-link-portal {
        margin-left: 0;
        margin-top: 6px;
    }
}


/* ==========================================================================
   MeroSath Reader Engagement — Reactions, Comments & Auth Modal (v1.1.0)
   ========================================================================== */

/* Reactions Bar */
.mre-article-bottom-wrap {
    margin: 35px 0 25px 0;
    font-family: inherit;
}
.mre-reactions-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.mre-reactions-prompt {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}
.mre-reaction-btns {
    display: flex;
    gap: 12px;
    align-items: center;
}
.mre-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mre-reaction-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
.mre-reaction-btn.active-like {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}
.mre-reaction-btn.active-dislike {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}
.mre-rx-count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}
.active-like .mre-rx-count {
    background: #d1fae5;
    color: #065f46;
}
.active-dislike .mre-rx-count {
    background: #fee2e2;
    color: #991b1b;
}

/* Comments Section */
.mre-comments-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}
.mre-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.mre-comments-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mre-comments-badge {
    background: #e2e8f0;
    color: #334155;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 10px;
}
.mre-logged-user-chip {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mre-link-logout {
    background: none;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
}

/* Comment Box */
.mre-comment-box-wrap {
    margin-bottom: 25px;
}
.mre-comment-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}
.mre-comment-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.mre-comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}
.mre-char-note {
    font-size: 12px;
    color: #64748b;
}
.mre-submit-comment-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.mre-submit-comment-btn:hover {
    background: #0369a1;
}

/* Replying Notice */
.mre-replying-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #0369a1;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mre-cancel-reply {
    background: none;
    border: none;
    color: #0284c7;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

/* Login Prompt Card */
.mre-login-prompt-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.mre-prompt-icon {
    font-size: 26px;
}
.mre-prompt-text {
    flex: 1;
    min-width: 220px;
}
.mre-prompt-text strong {
    font-size: 15px;
    color: #0f172a;
}
.mre-prompt-text p {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0 0;
}
.mre-open-auth-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.mre-open-auth-btn:hover {
    background: #334155;
}

/* Comments List & Threading */
.mre-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mre-comment-card {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}
.mre-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.mre-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}
.mre-comment-initial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mre-comment-meta {
    flex: 1;
}
.mre-comment-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.mre-comment-time {
    font-size: 11px;
    color: #94a3b8;
}
.mre-mod-pending {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}
.mre-comment-body {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
    margin: 6px 0 10px 0;
}
.mre-comment-actions-strip {
    display: flex;
    gap: 12px;
    font-size: 12px;
}
.mre-comm-action-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
    transition: color 0.15s;
}
.mre-comm-action-btn:hover {
    color: #0284c7;
}
.mre-comm-action-btn.btn-delete:hover {
    color: #dc2626;
}

/* Threaded replies indentation */
.mre-replies-wrap {
    margin-left: 28px;
    padding-left: 14px;
    border-left: 2px solid #e2e8f0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media(max-width: 600px) {
    .mre-replies-wrap { margin-left: 14px; padding-left: 8px; }
}

/* Unified Auth Modal */
.mre-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}
.mre-modal-content {
    background: #ffffff;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.mre-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.mre-modal-header {
    text-align: center;
    margin-bottom: 22px;
}
.mre-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.mre-modal-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.mre-oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}
.mre-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.mre-oauth-google {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}
.mre-oauth-google:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    text-decoration: none;
}
.mre-oauth-facebook {
    background: #1877f2;
    border: 1px solid #1877f2;
    color: #ffffff;
}
.mre-oauth-facebook:hover {
    background: #166fe5;
    text-decoration: none;
}
.mre-divider {
    text-align: center;
    position: relative;
    margin: 20px 0 16px 0;
}
.mre-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}
.mre-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 10px;
    font-size: 12px;
    color: #94a3b8;
}
.mre-field-group {
    margin-bottom: 12px;
}
.mre-field-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.mre-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}
.mre-input:focus {
    outline: none;
    border-color: #2563eb;
}
.mre-login-submit-btn {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 11px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
}
.mre-login-submit-btn:hover {
    background: #334155;
}
.mre-login-msg {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
}
.mre-login-msg.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.mre-login-msg.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.mre-modal-footer {
    margin-top: 18px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}
.mre-modal-footer a {
    color: #64748b;
    text-decoration: underline;
}
