/* ==========================================================================
   MFV Faith Groups — v3.0 Modern Forum Design
   Sidebar layout · Card animations · Ken Burns hero · Skeleton loading
   ========================================================================== */

/* ── Shared design tokens ── */
.mfv-groups-hero,
.mfv-groups-wrap {
    --grp-primary:      var(--mfv-primary, #0e7490);
    --grp-primary-dk:   #0c6580;
    --grp-primary-lt:   #e0f2fe;
    --grp-primary-2:    #cffafe;
    --grp-accent:       #f97316;
    --grp-danger:       var(--mfv-error-light, #ef4444);
    --grp-success:      #10b981;
    --grp-border:       var(--mfv-slate-200, #e2e8f0);
    --grp-bg:           var(--mfv-slate-100, #f1f5f9);
    --grp-surface:      #ffffff;
    --grp-text:         #0f172a;
    --grp-text-md:      #334155;
    --grp-muted:        var(--mfv-slate-500, #64748b);
    --grp-subtle:       var(--mfv-slate-400, #94a3b8);
    --grp-r-sm:         8px;
    --grp-r-md:         12px;
    --grp-r-lg:         20px;
    --grp-shadow-sm:    0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
    --grp-shadow-md:    0 4px 16px rgba(14,116,144,.08), 0 2px 6px rgba(0,0,0,.04);
    --grp-shadow-lg:    0 8px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
    --grp-shadow-xl:    0 20px 60px rgba(0,0,0,.18);
}

.mfv-groups-wrap {
    font-family: inherit;
    color: var(--grp-text);
    background: var(--grp-bg);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Page body container ── */
.mfv-groups-body {
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 0 64px;
}

/* ═══════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════ */

.mfv-groups-hero {
    position: relative;
    max-width: 100%;
    min-height: 420px;
    margin: 24px auto 0;
    overflow: hidden;
    background: var(--mfv-slate-800, #1e293b);
    border-radius: var(--grp-r-lg);
}

/* Ken Burns animation */
@keyframes mfvKenBurns {
    0%   { transform: scale(1)    translate(0,     0);    }
    100% { transform: scale(1.07) translate(-1.5%, -1%);  }
}

.mfv-hero-slides {
    position: absolute;
    inset: 0;
}

.mfv-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.mfv-hero-slide.active {
    opacity: 1;
    animation: mfvKenBurns 9s ease-in-out forwards;
}

/* Info layer: sits above overlay, no animation, fully interactive */
.mfv-hero-slide-infos {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
}
.mfv-hero-slide__info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 320px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}
.mfv-hero-slide__info.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mfv-hero-slide__emoji {
    font-size: 28px;
    line-height: 1;
}
.mfv-hero-slide__name {
    font-family: var(--mfv-font-heading, 'Poppins', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.mfv-hero-slide__members {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.mfv-hero-slide__btn {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    width: fit-content;
}
.mfv-hero-slide__btn:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
    text-decoration: none;
}
@media (max-width: 640px) {
    .mfv-hero-slide__info { bottom: 16px; left: 16px; }
    .mfv-hero-slide__name { font-size: 16px; }
}

/* Video */
.mfv-hero-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mfv-hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mfv-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    pointer-events: none;
}

/* Gradient overlay (always present at bottom for text readability) */
.mfv-groups-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.45) 100%);
    z-index: 5;
    pointer-events: none;
}

.mfv-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    z-index: 10;
    pointer-events: none;
}
.mfv-hero-overlay a,
.mfv-hero-overlay button,
.mfv-hero-overlay input {
    pointer-events: auto;
}

.mfv-hero-title {
    font-size: clamp(28px, 5vw, 58px);
    font-weight: 800;
    color: #fff !important;
    line-height: 1.12;
    margin: 0 0 16px;
    text-shadow: 0 2px 24px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.5);
    letter-spacing: -.015em;
}

.mfv-hero-subtitle {
    font-size: clamp(15px, 2vw, 21px);
    color: rgba(255,255,255,.95) !important;
    max-width: 580px;
    line-height: 1.65;
    margin: 0;
    text-shadow: 0 1px 12px rgba(0,0,0,.5);
}

/* Hero nav arrows */
.mfv-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.28);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    backdrop-filter: blur(6px);
    transition: background .18s, transform .2s;
}

.mfv-hero-nav:hover {
    background: rgba(255,255,255,.26);
    transform: translateY(-50%) scale(1.1);
}

.mfv-hero-prev { left: 24px; }
.mfv-hero-next { right: 24px; }

/* Hero dots */
.mfv-hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.mfv-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .22s, transform .22s, width .22s;
}

.mfv-hero-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
    transform: none;
}

/* ═══════════════════════════════════════════════════════
   TOP SEARCH BAR
   ═══════════════════════════════════════════════════════ */

.mfv-groups-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.mfv-search-field {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 480px;
}

.mfv-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grp-muted);
    pointer-events: none;
    display: flex;
    flex-shrink: 0;
    z-index: 1;
}

#mfv-groups-search {
    width: 100%;
    padding: 12px 16px 12px 44px !important;
    border: 1.5px solid var(--grp-border) !important;
    border-radius: var(--grp-r-md) !important;
    font-size: 14px;
    background: var(--grp-surface) !important;
    color: var(--grp-text);
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s !important;
    box-shadow: var(--grp-shadow-sm);
    font-family: inherit;
}

#mfv-groups-search:focus {
    border-color: var(--grp-primary);
    box-shadow: 0 0 0 3px rgba(14,116,144,.12);
}

#mfv-groups-search::placeholder { color: var(--grp-subtle); }

/* ═══════════════════════════════════════════════════════
   VIEW TOGGLE (grid / list)
   ═══════════════════════════════════════════════════════ */

#mfv-view-toggle.mfv-view-toggle {
    display: flex !important;
    gap: 2px;
    background: var(--grp-surface);
    border: 1.5px solid var(--grp-border);
    border-radius: var(--grp-r-sm);
    padding: 3px;
    flex-shrink: 0;
    margin-left: 0;
}
/* Only show exactly 2 toggle buttons (grid + list) */
#mfv-view-toggle > :nth-child(n+3) { display: none !important; }

.mfv-view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--grp-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s, color .15s;
    padding: 0;
}

.mfv-view-toggle__btn:hover {
    color: var(--grp-primary);
    background: var(--grp-primary-lt);
}

.mfv-view-toggle__btn--active {
    background: var(--grp-primary);
    color: #fff;
}

.mfv-view-toggle__btn--active:hover {
    background: var(--grp-primary-dk);
    color: #fff;
}

/* ── List view layout ── */
.mfv-groups-grid--list {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}

.mfv-groups-grid--list .mfv-group-card {
    flex-direction: row;
    border-radius: var(--grp-r-md);
}

.mfv-groups-grid--list .mfv-group-card__cover {
    width: 200px;
    min-width: 200px;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    border-radius: var(--grp-r-md) 0 0 var(--grp-r-md);
    align-self: stretch;
}

.mfv-groups-grid--list .mfv-group-card__body {
    padding: 14px 20px;
    flex: 1;
    min-width: 0;
}

.mfv-groups-grid--list .mfv-group-card__desc {
    -webkit-line-clamp: 1;
}

.mfv-groups-grid--list .mfv-group-card:hover .mfv-group-card__cover {
    transform: none;
}

.mfv-groups-grid--list .mfv-group-card:hover {
    transform: none;
}

/* ═══════════════════════════════════════════════════════
   TWO-COLUMN LAYOUT: SIDEBAR + MAIN
   ═══════════════════════════════════════════════════════ */

.mfv-groups-layout {
    display: grid;
    grid-template-columns: 252px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── Sidebar ── */
.mfv-groups-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mfv-sidebar-panel {
    background: var(--grp-surface);
    border-radius: var(--grp-r-lg);
    border: 1px solid var(--grp-border);
    box-shadow: var(--grp-shadow-sm);
    overflow: hidden;
}
/* Tags panel hidden on desktop — shown only in mobile flyout */
.mfv-sidebar-panel--tags {
    display: none;
}
.mfv-sidebar-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 16px 12px;
}

.mfv-sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--grp-subtle);
    padding: 16px 16px 6px;
}

.mfv-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--grp-text-md);
    border-radius: 0;
    transition: background .15s, color .15s;
    text-decoration: none;
}

.mfv-sidebar-item:hover {
    background: var(--grp-bg);
    color: var(--grp-primary);
}

.mfv-sidebar-item.active {
    background: var(--grp-primary-lt);
    color: var(--grp-primary);
    font-weight: 600;
}

.mfv-sidebar-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.mfv-sidebar-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mfv-sidebar-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--grp-subtle);
    background: var(--grp-bg);
    padding: 1px 7px;
    border-radius: 99px;
    flex-shrink: 0;
    min-width: 22px;
    text-align: center;
}

.mfv-sidebar-item.active .mfv-sidebar-count {
    background: var(--grp-primary-2);
    color: var(--grp-primary-dk);
}

/* Create group CTA in sidebar */
.mfv-sidebar-cta {
    padding: 16px;
    background: linear-gradient(135deg, var(--mfv-primary, #0e7490) 0%, #0891b2 100%);
    border-radius: var(--grp-r-lg);
    text-align: center;
    box-shadow: 0 4px 16px rgba(14,116,144,.25);
}

.mfv-sidebar-cta p {
    color: rgba(255,255,255,.9);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.mfv-sidebar-cta .mfv-groups-btn {
    width: 100%;
    justify-content: center;
    background: #fff;
    color: var(--grp-primary);
    border-color: #fff;
    box-shadow: none;
}

.mfv-sidebar-cta .mfv-groups-btn:hover {
    background: #f0f9ff;
    transform: none;
}

/* ── Main grid area ── */
.mfv-groups-main { min-width: 0; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.mfv-groups-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    border: 1.5px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .15s;
    line-height: 1.2 !important;
    white-space: nowrap;
    box-sizing: border-box;
    font-family: inherit;
    vertical-align: middle;
    text-align: center;
    min-height: 0 !important;
    height: auto !important;
}
.mfv-groups-wrap button.mfv-groups-btn,
.mfv-groups-wrap a.mfv-groups-btn,
.mfv-group-single button.mfv-groups-btn,
.mfv-group-single a.mfv-groups-btn {
    padding: 8px 18px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    height: auto !important;
}

.mfv-groups-btn--primary {
    background: var(--grp-primary);
    color: #fff;
    border-color: var(--grp-primary);
    box-shadow: 0 2px 8px rgba(14,116,144,.3);
}

.mfv-groups-btn--primary:hover,
.mfv-groups-wrap .mfv-groups-btn--primary:hover,
a.mfv-groups-btn--primary:hover {
    background: var(--grp-primary-dk) !important;
    border-color: var(--grp-primary-dk) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(14,116,144,.4);
    transform: translateY(-1px);
}

.mfv-groups-btn--outline {
    background: transparent;
    color: var(--grp-primary) !important;
    border-color: var(--grp-primary);
}

.mfv-groups-btn--outline:hover,
.mfv-groups-wrap .mfv-groups-btn--outline:hover,
a.mfv-groups-btn--outline:hover {
    background: var(--grp-primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.mfv-groups-btn--secondary {
    background: var(--grp-surface);
    color: var(--grp-text-md);
    border-color: var(--grp-border);
    box-shadow: var(--grp-shadow-sm);
}

.mfv-groups-btn--secondary:hover {
    background: var(--grp-bg);
    border-color: #cbd5e1;
}

.mfv-groups-btn--danger {
    background: var(--grp-danger);
    color: #fff;
    border-color: var(--grp-danger);
}

.mfv-groups-btn--danger:hover,
a.mfv-groups-btn--danger:hover {
    background: var(--mfv-error, #dc2626) !important;
    border-color: var(--mfv-error, #dc2626) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.mfv-groups-btn--sm {
    padding: 8px 16px !important;
    font-size: 13px;
    border-radius: 6px !important;
}

/* ═══════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════ */

.mfv-groups-filterbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mfv-filterbar-privacy {
    display: flex;
    gap: 4px;
    background: var(--grp-surface);
    border: 1px solid var(--grp-border);
    border-radius: var(--grp-r-sm);
    padding: 3px;
}

.mfv-filter-pill {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--grp-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
}

.mfv-filter-pill:hover { color: var(--grp-primary); background: var(--grp-primary-lt); }
.mfv-filter-pill.active { background: var(--grp-primary); color: #fff; }

.mfv-filterbar-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.mfv-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--grp-border);
    border-radius: 99px;
    background: var(--grp-surface);
    color: var(--grp-text-md);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.mfv-tag-chip:hover { border-color: var(--grp-primary); color: var(--grp-primary); }
.mfv-tag-chip.active { background: var(--grp-primary-lt); border-color: var(--grp-primary); color: var(--grp-primary); }

.mfv-filterbar-sort select {
    padding: 7px 14px;
    border: 1.5px solid var(--grp-border);
    border-radius: var(--grp-r-sm);
    font-size: 13px;
    font-weight: 500;
    background: var(--grp-surface);
    color: var(--grp-text-md);
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.mfv-filterbar-sort select:focus { border-color: var(--grp-primary); }

/* ═══════════════════════════════════════════════════════
   TAGS INPUT (chip editor)
   ═══════════════════════════════════════════════════════ */

.mfv-tags-input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border: 1.5px solid var(--grp-border);
    border-radius: var(--grp-r-sm);
    background: var(--grp-bg);
    margin-top: 6px;
    cursor: text;
    transition: border-color .15s;
    min-height: 42px;
    align-items: center;
}

.mfv-tags-input-wrap:focus-within {
    border-color: var(--grp-primary);
    box-shadow: 0 0 0 3px rgba(14,116,144,.1);
    background: var(--grp-surface);
}

.mfv-tags-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.mfv-tag-chip-editable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--grp-primary-lt);
    color: var(--grp-primary);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.mfv-tag-chip-editable .mfv-tag-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: .6;
    transition: opacity .15s;
}

.mfv-tag-chip-editable .mfv-tag-remove:hover { opacity: 1; }

.mfv-tags-input-wrap input[type="text"] {
    border: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    flex: 1;
    min-width: 80px;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px;
    outline: none !important;
}

/* ═══════════════════════════════════════════════════════
   CRISIS MODAL
   ═══════════════════════════════════════════════════════ */

.mfv-crisis-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mfvCrisisFadeIn .2s ease;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
    /* Inherit design tokens (modal is appended to body, outside .mfv-groups-wrap) */
    --grp-primary:    var(--mfv-primary, #0e7490);
    --grp-primary-dk: #0c6580;
}

@keyframes mfvCrisisFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mfv-crisis-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
}

.mfv-crisis-modal__box {
    position: relative;
    background: #fff;
    border-radius: var(--grp-r-lg, 20px);
    padding: 36px 32px;
    max-width: 460px;
    width: 100%;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    z-index: 1;
    text-align: center;
}

.mfv-crisis-modal__icon { font-size: 48px; margin-bottom: 16px; }

.mfv-crisis-modal__title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.mfv-crisis-modal__message {
    font-size: 15px;
    color: #334155;
    line-height: 1.65;
    margin: 0 0 20px;
}

.mfv-crisis-resource {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

.mfv-crisis-resource a { color: #166534; text-decoration: underline; }

.mfv-crisis-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════ */

@keyframes mfvShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mfv-skeleton-card {
    background: var(--grp-surface);
    border-radius: var(--grp-r-lg);
    border: 1px solid var(--grp-border);
    overflow: hidden;
}

.mfv-skeleton-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, #e8f4f8 25%, #d0e8f0 50%, #e8f4f8 75%);
    background-size: 200% 100%;
    animation: mfvShimmer 1.6s ease-in-out infinite;
}

.mfv-skeleton-body {
    padding: 18px 20px 20px;
}

.mfv-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f4f8 25%, var(--mfv-slate-200, #e2e8f0) 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: mfvShimmer 1.6s ease-in-out infinite;
    margin-bottom: 10px;
}

.mfv-skeleton-line--title  { width: 65%; height: 16px; margin-bottom: 12px; }
.mfv-skeleton-line--badge  { width: 40%; height: 10px; margin-bottom: 14px; }
.mfv-skeleton-line--text   { width: 90%; }
.mfv-skeleton-line--text2  { width: 70%; }

/* ═══════════════════════════════════════════════════════
   GROUP CARDS
   ═══════════════════════════════════════════════════════ */

@keyframes mfvFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mfv-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.mfv-group-card {
    background: var(--grp-surface);
    border-radius: var(--grp-r-lg);
    box-shadow: var(--grp-shadow-sm);
    overflow: hidden;
    border: 1px solid var(--grp-border);
    display: flex;
    flex-direction: column;
    animation: mfvFadeUp .38s ease both;
    transition: box-shadow .22s, transform .22s;
}

.mfv-group-card:hover {
    box-shadow: var(--grp-shadow-lg);
    transform: translateY(-4px);
}

.mfv-group-card__cover-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
    border-radius: var(--grp-r-md) var(--grp-r-md) 0 0;
    cursor: pointer;
    position: relative;
}
.mfv-badge--cover {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.mfv-group-card__cover {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--grp-primary-lt);
    position: relative;
    min-height: 130px;
    transition: transform .4s ease;
}

.mfv-group-card:hover .mfv-group-card__cover {
    transform: scale(1.03);
}

.mfv-group-card__cover--empty {
    background: linear-gradient(135deg, var(--mfv-primary, #0e7490) 0%, #0891b2 55%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
}

.mfv-group-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Badges */
.mfv-group-card__badges {
    display: flex;
    gap: 5px;
    margin-bottom: 9px;
    flex-wrap: wrap;
}

.mfv-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: .02em;
    line-height: 1.4;
}

.mfv-badge--category { background: #f0f9ff; color: #0369a1; }
.mfv-badge--public   { background: #f0fdf4; color: #166534; }
.mfv-badge--private  { background: #f5f3ff; color: #6d28d9; }
.mfv-badge--secret   { background: #fff7ed; color: #9a3412; }

/* Legacy class stubs (used inline by old JS renders) */
.mfv-group-card__privacy     { display: none; }
.mfv-group-card__category    { display: none; }

.mfv-group-card__name,
h3.mfv-group-card__name {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 5px !important;
    line-height: 1.35 !important;
    color: var(--grp-text);
}

.mfv-group-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.mfv-group-card__name a:hover { color: var(--grp-primary); }

.mfv-group-card__desc {
    font-size: 13px;
    color: var(--grp-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mfv-group-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--grp-border);
}

.mfv-group-card__count {
    font-size: 12px;
    color: var(--grp-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mfv-group-card__actions { display: flex; gap: 6px; }

.mfv-group-card__stats {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
}
.mfv-group-card__stat-sep {
    font-size: 11px;
    color: var(--grp-border);
}

.mfv-group-card__role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--grp-primary);
}

/* ═══════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════ */

.mfv-groups-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.mfv-groups-pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid var(--grp-border);
    border-radius: 8px;
    background: var(--grp-surface);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--grp-text-md);
    transition: all .15s;
    font-family: inherit;
}

.mfv-groups-pagination button:hover {
    background: var(--grp-primary-lt) !important;
    border-color: var(--grp-primary) !important;
    color: var(--grp-primary) !important;
}
.mfv-groups-pagination button.active {
    background: var(--grp-primary) !important;
    border-color: var(--grp-primary) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════
   NOTICES / LOADING
   ═══════════════════════════════════════════════════════ */

.mfv-groups-loading {
    text-align: center;
    padding: 56px 24px;
    color: var(--grp-muted);
    font-size: 14px;
    grid-column: 1 / -1;
}

.mfv-groups-loading::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--grp-border);
    border-top-color: var(--grp-primary);
    border-radius: 50%;
    animation: mfvGrpSpin .75s linear infinite;
    margin: 0 auto 14px;
}

@keyframes mfvGrpSpin { to { transform: rotate(360deg); } }

.mfv-groups-notice {
    padding: 12px 18px;
    border-radius: var(--grp-r-sm);
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-width: 1px;
    border-style: solid;
    grid-column: 1 / -1;
}

.mfv-groups-notice--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.mfv-groups-notice--success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* ═══════════════════════════════════════════════════════
   SINGLE GROUP
   ═══════════════════════════════════════════════════════ */

/* ── Hero (full-image with overlaid info) ── */
.mfv-group-hero {
    position: relative;
    max-width: 1190px;
    margin: 0 auto;
    border-radius: var(--grp-r-lg);
    overflow: hidden;
    box-shadow: var(--grp-shadow-lg);
    background-size: cover;
    background-position: center;
    background-color: #1a5c6e;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* Constrain single group page to match content width */
.mfv-group-single {
    overflow: hidden;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.mfv-group-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.55) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ── Breadcrumb (top-left overlay) ── */
.mfv-group-breadcrumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
}
.mfv-group-breadcrumb a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.mfv-group-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.mfv-group-breadcrumb__sep { color: rgba(255,255,255,.5); font-size: 11px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.mfv-group-breadcrumb__current { color: rgba(255,255,255,.75); text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ── Hero actions (top-right) ── */
.mfv-group-hero__actions {
    position: absolute;
    top: 10px;
    right: 16px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.mfv-groups-btn--hero,
button.mfv-groups-btn--hero,
a.mfv-groups-btn--hero {
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    font-size: 13px;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
}
.mfv-groups-btn--hero:hover,
a.mfv-groups-btn--hero:hover {
    background: rgba(255,255,255,.3) !important;
    border-color: rgba(255,255,255,.5) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Circle icon buttons — matches prayer wall prefs-btn style */
.mfv-groups-btn--circle,
button.mfv-groups-btn--circle {
    width: 40px !important;
    height: 40px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1 !important;
    transition: background 0.15s, border-color 0.15s !important;
}
.mfv-groups-btn--circle:hover,
button.mfv-groups-btn--circle:hover {
    background: rgba(255,255,255,0.32) !important;
    border-color: rgba(255,255,255,0.65) !important;
    transform: none !important;
}
.mfv-groups-btn--circle svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

/* Settings gear: spring spin on hover */
.mfv-manage-group-btn.mfv-groups-btn--circle svg {
    transition: transform 0.45s cubic-bezier(.34,1.56,.64,1);
}
.mfv-manage-group-btn.mfv-groups-btn--circle:hover svg {
    transform: rotate(75deg);
}

/* Leave group: slide-right arrow on hover */
.mfv-leave-group-btn.mfv-groups-btn--circle svg {
    transition: transform 0.2s ease;
}
.mfv-leave-group-btn.mfv-groups-btn--circle:hover svg {
    transform: translateX(3px);
}

/* ── Hero content (bottom overlay) ── */
.mfv-group-hero__content {
    position: relative;
    z-index: 5;
    padding: 0 28px 22px;
}

.mfv-group-hero__content .mfv-group-name,
.mfv-group-hero .mfv-group-name {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff !important;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.mfv-group-hero__content .mfv-group-meta-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.mfv-badge--hero {
    background: rgba(255,255,255,.18);
    color: #fff;
    backdrop-filter: blur(4px);
}

.mfv-group-hero__content .mfv-group-member-count {
    color: rgba(255,255,255,.85);
    font-size: 13px;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.mfv-group-hero__content .mfv-group-description {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0 0;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Legacy fallback stubs (header-card removed) */
.mfv-group-header-card { display: none; }
.mfv-group-header-info { flex: 1; min-width: 0; }

.mfv-group-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--grp-text);
    line-height: 1.2;
    letter-spacing: -.01em;
}

.mfv-group-meta-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* Legacy element stubs */
.mfv-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.mfv-group-category, .mfv-group-member-count { font-size: 13px; color: var(--grp-muted); }

.mfv-group-privacy {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mfv-group-privacy--public  { background: #f0fdf4; color: #166534; }
.mfv-group-privacy--private { background: #f5f3ff; color: #6d28d9; }

.mfv-group-description {
    font-size: 15px;
    color: var(--grp-muted);
    line-height: 1.7;
    margin: 0;
}

.mfv-group-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-shrink: 0;
}

.mfv-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 24px 28px;
    background: var(--grp-surface);
    border-radius: var(--grp-r-lg);
    box-shadow: var(--grp-shadow-md);
    border: 1px solid var(--grp-border);
}

/* ── Single group body area ── */
.mfv-group-single > .mfv-groups-body {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

/* ── Tabs ── */
.mfv-group-tabs {
    display: flex;
    border-bottom: 2px solid var(--grp-border);
    margin-bottom: 24px;
    margin-top: 24px;
    background: var(--grp-surface);
    overflow: hidden;
    border-radius: var(--grp-r-md) var(--grp-r-md) 0 0;
    padding: 0 8px;
    overflow-x: auto;
    box-shadow: var(--grp-shadow-sm);
    border: 1px solid var(--grp-border);
    border-bottom: 2px solid var(--grp-border);
}

.mfv-group-tab {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--grp-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
    font-family: inherit;
    border-radius: var(--grp-r-sm) var(--grp-r-sm) 0 0;
}

.mfv-group-tab:hover {
    color: var(--grp-primary);
    background: var(--grp-primary-lt);
}

.mfv-group-tab--active {
    color: var(--grp-primary);
    border-bottom-color: var(--grp-primary);
    background: transparent;
}

/* ── Tab panel transition ── */
.mfv-group-tab-panel {
    animation: mfvFadeUp .3s ease both;
}

/* ── Post form ── */
.mfv-group-post-form {
    background: var(--grp-surface);
    border-radius: var(--grp-r-lg);
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: var(--grp-shadow-sm);
    border: 1px solid var(--grp-border);
    transition: box-shadow .2s;
}

.mfv-group-post-form:focus-within {
    box-shadow: var(--grp-shadow-md);
    border-color: rgba(14,116,144,.2);
}

.mfv-group-post-form textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    border: 1.5px solid var(--grp-border);
    border-radius: var(--grp-r-sm);
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    color: var(--grp-text);
    background: var(--grp-bg);
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.65;
}

.mfv-group-post-form textarea:focus {
    border-color: var(--grp-primary);
    box-shadow: 0 0 0 3px rgba(14,116,144,.1);
    background: var(--grp-surface);
}

.mfv-group-post-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.mfv-char-count { font-size: 12px; color: var(--grp-subtle); transition: color .15s; }
.mfv-char-count--warn { color: var(--grp-danger, #ef4444) !important; font-weight: 600; }
.mfv-comment-char-count {
    display: block;
    font-size: 11px;
    color: var(--grp-subtle, #94a3b8);
    text-align: right;
    margin-top: 2px;
    transition: color .15s;
}
.mfv-comment-char-count.mfv-char-count--warn { color: var(--grp-danger, #ef4444) !important; font-weight: 600; }
.mfv-comment-form__row {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Post item ── */
.mfv-group-post {
    background: var(--grp-surface);
    border-radius: var(--grp-r-lg);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: var(--grp-shadow-sm);
    border: 1px solid var(--grp-border);
    transition: box-shadow .2s, border-color .2s;
    animation: mfvFadeUp .3s ease both;
}

.mfv-group-post:hover {
    box-shadow: var(--grp-shadow-md);
    border-color: rgba(14,116,144,.15);
}
.mfv-group-post--pinned { border-left: 4px solid var(--grp-primary); }

.mfv-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mfv-post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grp-border);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--grp-surface), 0 0 0 3px var(--grp-border);
}

.mfv-post-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mfv-post-author { font-weight: 700; font-size: 14px; color: var(--grp-text); }
.mfv-post-username { font-weight: 400; font-size: 13px; color: var(--grp-muted); margin-left: 4px; }
.mfv-post-date   { font-size: 12px; color: var(--grp-subtle); margin-top: 2px; }

.mfv-post-body {
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--grp-text-md);
    margin-bottom: 14px;
}

.mfv-hashtag {
    color: var(--mfv-primary, #0e7490);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s;
}
.mfv-hashtag:hover {
    color: #0c6580;
    text-decoration: underline;
}

.mfv-post-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--grp-border);
    padding-top: 12px;
    margin-top: 12px;
}

.mfv-post-reply-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--grp-muted);
    padding: 5px 12px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-family: inherit;
}

.mfv-post-reply-btn svg { flex-shrink: 0; }
.mfv-post-reply-btn:hover { color: var(--grp-primary); background: var(--grp-primary-lt); }

.mfv-post-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--grp-subtle);
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    font-family: inherit;
}

.mfv-post-delete-btn:hover { color: var(--grp-danger); background: #fef2f2; }

.mfv-post-report-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--grp-subtle);
    padding: 5px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    font-family: inherit;
    margin-left: 2px;
}
.mfv-post-report-btn:hover { color: #b45309; background: #fffbeb; }

.mfv-post-announce-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    background: #fef3c7;
    color: #92400e;
    margin-left: 8px;
}

/* ── Comments ── */
.mfv-post-comments {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--grp-border);
}

/* (Comment form styles consolidated in send-button section below) */

.mfv-comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 13px;
    padding: 10px 0 10px 14px;
    border-left: 2px solid var(--grp-border);
    background: none;
    animation: mfvFadeUp .25s ease both;
}

.mfv-comment-author { font-weight: 700; color: var(--grp-text); font-size: 14px; }
.mfv-comment-body   { line-height: 1.55; color: var(--grp-text-md); margin-top: 4px; }
.mfv-comment-date   { font-size: 11px; color: var(--grp-subtle); margin-left: 4px; }

.mfv-comment-delete-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--grp-subtle);
    cursor: pointer;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.mfv-comment-delete-btn:hover { color: var(--grp-danger); }

/* ── Members ── */
.mfv-group-members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mfv-member-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--grp-surface);
    border: 1px solid var(--grp-border);
    border-radius: var(--grp-r-lg);
    transition: box-shadow .18s, border-color .18s, transform .18s;
    animation: mfvFadeUp .3s ease both;
}

.mfv-member-item:hover {
    box-shadow: var(--grp-shadow-md);
    border-color: rgba(14,116,144,.15);
    transform: translateY(-2px);
}

.mfv-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grp-border);
    overflow: hidden;
    flex-shrink: 0;
}

.mfv-member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mfv-member-name  { font-weight: 600; font-size: 14px; color: var(--grp-text); }

.mfv-member-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 99px;
    margin-left: 8px;
}

.mfv-member-role--admin     { background: #fef2f2; color: #991b1b; }
.mfv-member-role--moderator { background: #fefce8; color: #854d0e; }
.mfv-member-role--member    { background: #f0f9ff; color: #0369a1; }
.mfv-member-role--pending   { background: #f9fafb; color: #6b7280; }
.mfv-member-actions { margin-left: auto; display: flex; gap: 6px; }

/* ── Members toolbar (search + sort + pagination) ── */
.mfv-members-toolbar {
    display: flex;
    gap: 10px;
    padding: 0 0 12px;
}
.mfv-members-search {
    flex: 1;
    min-width: 0;
    max-width: 280px;
    padding: 10px 14px 10px 36px;
    border: 1px solid var(--grp-border);
    border-radius: var(--grp-r-lg);
    font-size: 14px;
    background: var(--grp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cline x1='11' y1='11' x2='15' y2='15'/%3E%3C/svg%3E") no-repeat 12px center;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
.mfv-members-search:focus {
    border-color: var(--grp-primary);
    box-shadow: 0 0 0 3px rgba(14,116,144,.12);
}
.mfv-members-sort {
    padding: 10px 12px;
    border: 1px solid var(--grp-border);
    border-radius: var(--grp-r-lg);
    font-size: 13px;
    background: var(--grp-surface);
    color: var(--grp-text);
    cursor: pointer;
    outline: none;
    transition: border-color .18s;
}
.mfv-members-sort:focus {
    border-color: var(--grp-primary);
}
@media (max-width: 520px) {
    .mfv-members-toolbar { flex-wrap: wrap; }
    .mfv-members-search  { max-width: none; }
}
.mfv-members-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0 4px;
}
.mfv-page-btn {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--grp-primary);
    background: var(--grp-surface);
    border: 1px solid var(--grp-border);
    border-radius: var(--grp-r-md);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.mfv-page-btn:hover:not([disabled]) {
    background: rgba(14,116,144,.06);
    border-color: var(--grp-primary);
}
.mfv-page-btn[disabled] {
    opacity: .4;
    cursor: default;
}
.mfv-page-info {
    font-size: 13px;
    color: var(--grp-muted);
    font-weight: 500;
}

/* ── Manage form ── */
.mfv-manage-group-form {
    background: var(--grp-surface);
    border-radius: var(--grp-r-lg);
    padding: 28px 32px;
    border: 1px solid var(--grp-border);
    box-shadow: var(--grp-shadow-sm);
}

.mfv-manage-group-form label {
    display: block;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--grp-text-md);
}

.mfv-manage-group-form input[type="text"],
.mfv-manage-group-form input[type="url"],
.mfv-manage-group-form select,
.mfv-manage-group-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 14px;
    border: 1.5px solid var(--grp-border);
    border-radius: var(--grp-r-sm);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    color: var(--grp-text);
    background: var(--grp-bg);
    transition: border-color .15s, box-shadow .15s;
}

.mfv-manage-group-form input:focus,
.mfv-manage-group-form select:focus,
.mfv-manage-group-form textarea:focus {
    border-color: var(--grp-primary);
    box-shadow: 0 0 0 3px rgba(14,116,144,.1);
    background: var(--grp-surface);
}

/* Checkbox label (approval toggle) */
.mfv-groups-checkbox-label {
    display: flex !important; align-items: flex-start; gap: 8px;
    cursor: pointer; padding: 12px 14px;
    background: var(--grp-bg); border-radius: var(--grp-r-sm);
    border: 1.5px solid var(--grp-border);
}
.mfv-groups-checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0;
    accent-color: var(--grp-primary);
}
.mfv-groups-checkbox-hint {
    display: block; font-size: 12px; font-weight: 400;
    color: var(--grp-muted); margin-top: 2px;
}

/* Threaded replies — indented with left border like reference */
.mfv-comment-item--reply {
    margin-left: 28px;
    border-left: 2px solid var(--grp-border);
    padding-left: 14px;
}
.mfv-comment-item--reply-deep {
    margin-left: 56px;
    border-left: 2px solid var(--grp-border);
    padding-left: 14px;
}
/* (Reply link styles moved to send-button block above) */
.mfv-inline-reply-form {
    display: flex; align-items: center; gap: 0;
    margin: 4px 0 8px 28px; padding: 4px 8px 4px 16px;
    background: var(--grp-bg, #f1f5f9); border-radius: 50px;
    border: 1.5px solid var(--grp-border);
    transition: border-color .15s;
}
.mfv-inline-reply-form:focus-within { border-color: var(--grp-primary, #0e7490); }
.mfv-inline-reply-form .mfv-reply-input {
    flex: 1; border: none; background: transparent;
    font-size: 13px; outline: none; padding: 6px 0;
    color: var(--grp-text); min-width: 0;
}
.mfv-cancel-reply-btn {
    background: none; border: none; cursor: pointer;
    color: var(--grp-muted); font-size: 16px; padding: 2px 4px;
    line-height: 1;
}
.mfv-cancel-reply-btn:hover { color: var(--grp-danger); }

/* Comment send button (paper airplane) */
.mfv-comment-send-btn {
    background: none; border: none; cursor: pointer;
    color: var(--grp-primary, #0e7490); padding: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: color .15s, transform .15s;
}
.mfv-comment-send-btn:hover { color: var(--grp-primary-dk, #0c6580); transform: scale(1.1); }
.mfv-comment-send-btn:disabled { color: var(--grp-muted, #64748b); cursor: not-allowed; transform: none; }
.mfv-comment-send-btn svg { display: block; }

/* Comment form — input with send icon inside */
.mfv-comment-form {
    display: flex; align-items: center; gap: 0;
    background: var(--grp-bg, #f1f5f9);
    border: 1.5px solid var(--grp-border, #e2e8f0);
    border-radius: 50px; padding: 4px 8px 4px 16px;
    margin-bottom: 14px;
    transition: border-color .15s;
}
.mfv-comment-form:focus-within { border-color: var(--grp-primary, #0e7490); }
.mfv-comment-form .mfv-comment-input {
    flex: 1; border: none; background: transparent;
    font-size: 13px; outline: none; padding: 6px 0;
    color: var(--grp-text, #0f172a); min-width: 0;
}

/* Reply actions row */
.mfv-comment-actions {
    margin-top: 4px;
}
/* Reply link with arrow icon — styled like reference (blue link) */
.mfv-comment-reply-link {
    background: none; border: none; cursor: pointer;
    color: var(--grp-primary, #0e7490); font-size: 12px; font-weight: 600;
    padding: 0; margin: 0;
    display: inline-flex; align-items: center; gap: 4px;
    transition: color .15s;
}
.mfv-comment-reply-link:hover { color: var(--grp-primary-dk, #0c6580); }
.mfv-comment-reply-link svg { display: inline-block; vertical-align: middle; }

/* Cover image picker */
.mfv-cover-picker { display: flex; flex-direction: column; gap: 8px; }
.mfv-cover-picker__preview {
    width: 100%; height: 120px; border-radius: 10px; overflow: hidden;
    background: var(--grp-bg-card, #f8fafc); border: 2px dashed var(--grp-border, #e2e8f0);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: border-color 0.2s; position: relative;
}
.mfv-cover-picker__preview:hover { border-color: var(--mfv-primary, #0e7490); }
.mfv-cover-picker__preview img {
    width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.mfv-cover-picker__placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--grp-muted, #94a3b8); font-size: 13px;
}
.mfv-cover-picker__placeholder svg { opacity: 0.5; }
.mfv-cover-picker__actions { display: flex; gap: 8px; align-items: center; }
.mfv-cover-picker__btn {
    padding: 6px 14px; border-radius: 8px; border: 1px solid var(--grp-border, #e2e8f0);
    background: #fff; color: var(--grp-text, #334155); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 5px;
}
.mfv-cover-picker__btn:hover { border-color: var(--mfv-primary, #0e7490); color: var(--mfv-primary, #0e7490); }
.mfv-cover-picker__btn svg { width: 14px; height: 14px; }
.mfv-cover-picker__or { color: var(--grp-muted, #94a3b8); font-size: 12px; }
.mfv-cover-picker__url-row { display: flex; gap: 6px; }
.mfv-cover-picker__url-row input {
    flex: 1; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--grp-border, #e2e8f0);
    font-size: 12px; font-family: inherit;
}
.mfv-cover-picker__remove {
    position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 2;
}

.mfv-groups-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--grp-border);
}

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */

.mfv-groups-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfv-groups-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
}

.mfv-groups-modal__box {
    position: relative;
    background: var(--grp-surface);
    border-radius: var(--grp-r-lg);
    padding: 32px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--grp-shadow-xl);
    z-index: 1;
    animation: mfvGrpSlideUp .24s cubic-bezier(.34,1.56,.64,1);
}

@keyframes mfvGrpSlideUp {
    from { opacity: 0; transform: translateY(28px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mfv-groups-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--grp-bg);
    border: 1.5px solid var(--grp-border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: var(--grp-muted);
    line-height: 1;
    transition: background .15s, color .15s;
}

.mfv-groups-modal__close:hover { background: #fee2e2; color: var(--grp-danger); }

.mfv-groups-modal h2 {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 800;
    color: var(--grp-text);
    padding-right: 32px;
    line-height: 1.25;
}

.mfv-groups-modal label {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--grp-text-md);
}

.mfv-groups-modal input,
.mfv-groups-modal select,
.mfv-groups-modal textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 14px;
    border: 1.5px solid var(--grp-border);
    border-radius: var(--grp-r-sm);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    color: var(--grp-text);
    background: var(--grp-bg);
    transition: border-color .15s, box-shadow .15s;
}

.mfv-groups-modal input:focus,
.mfv-groups-modal select:focus,
.mfv-groups-modal textarea:focus {
    border-color: var(--grp-primary);
    box-shadow: 0 0 0 3px rgba(14,116,144,.1);
    background: var(--grp-surface);
}

/* ═══════════════════════════════════════════════════════
   MY GROUPS PAGE
   ═══════════════════════════════════════════════════════ */

.mfv-my-groups-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.mfv-my-groups-header h2 { margin: 0; font-size: 22px; font-weight: 800; }

.mfv-my-groups-empty {
    color: var(--grp-muted);
    font-size: 15px;
    text-align: center;
    padding: 64px 24px;
}

/* ═══════════════════════════════════════════════════════
   REACTION PICKER & CHIPS
   ═══════════════════════════════════════════════════════ */

.mfv-react-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mfv-react-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 13px;
    background: var(--grp-bg);
    border: 1px solid var(--grp-border);
    border-radius: 20px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    color: var(--grp-text-md);
    line-height: 1.4;
}

.mfv-react-trigger:hover {
    background: var(--grp-primary-lt);
    border-color: var(--grp-primary);
}

.mfv-react-picker {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: var(--grp-surface);
    border: 1px solid var(--grp-border);
    border-radius: var(--grp-r-md);
    padding: 6px 8px;
    box-shadow: var(--grp-shadow-md);
    z-index: 50;
    white-space: nowrap;
    gap: 2px;
}

.mfv-react-picker.mfv-react-picker--open {
    display: inline-flex;
}

.mfv-react-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s, transform .12s, border-color .12s;
    padding: 0;
}

.mfv-react-btn:hover {
    background: var(--grp-bg);
    transform: scale(1.2);
}

.mfv-react-btn.mfv-react-sel {
    border-color: var(--grp-primary);
    background: var(--grp-primary-lt);
}

.mfv-react-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.mfv-react-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    font-size: 12px;
    background: var(--grp-bg);
    border: 1px solid var(--grp-border);
    border-radius: 16px;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    color: var(--grp-text-md);
    line-height: 1.3;
}

.mfv-react-chip:hover {
    background: var(--grp-primary-lt);
    border-color: var(--grp-primary);
}

.mfv-react-chip.mfv-react-mine {
    background: var(--grp-primary-lt);
    border-color: var(--grp-primary);
    color: var(--grp-primary);
    font-weight: 600;
}

.mfv-react-chip--readonly {
    cursor: default;
    opacity: 0.75;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   POLLS
   ═══════════════════════════════════════════════════════ */

.mfv-poll {
    background: var(--grp-bg);
    border: 1px solid var(--grp-border);
    border-radius: var(--grp-r-md);
    padding: 16px;
    margin: 12px 0 8px;
}

.mfv-poll__q {
    font-size: 14px;
    font-weight: 700;
    color: var(--grp-text);
    margin: 0 0 12px;
}

.mfv-poll__closed {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--grp-success, #10b981);
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.mfv-poll__expires {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--grp-muted);
    background: var(--grp-bg, #f1f5f9);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.mfv-poll__end-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--grp-danger, #ef4444);
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.mfv-poll__end-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}
/* Poll end date picker in builder */
.mfv-poll-end-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.mfv-poll-end-date__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--grp-text-md, #334155);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.mfv-poll-end-date__input {
    padding: 6px 10px;
    border: 1.5px solid var(--grp-border, #e2e8f0);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: var(--grp-surface, #fff);
}
.mfv-poll-end-date__input:focus {
    border-color: var(--grp-primary);
    outline: none;
}
.mfv-poll-end-date__hint {
    font-size: 11px;
    color: var(--grp-subtle, #94a3b8);
}

.mfv-poll__opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: var(--grp-surface);
    border: 1.5px solid var(--grp-border);
    font-size: 13px;
    color: var(--grp-text-md);
    overflow: hidden;
    transition: border-color .15s, background .15s;
}

.mfv-poll__opt--votable {
    cursor: pointer;
}

.mfv-poll__opt--votable:hover {
    border-color: var(--grp-primary);
    background: var(--grp-primary-lt);
}

.mfv-poll__opt--voted {
    border-color: var(--grp-primary);
    background: var(--grp-primary-lt);
    font-weight: 600;
}

.mfv-poll__opt--voting {
    pointer-events: none;
}

.mfv-poll__opt-text {
    position: relative;
    z-index: 1;
}

.mfv-poll__opt-pct {
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 12px;
    color: var(--grp-primary);
}

.mfv-poll__opt-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(var(--mfv-primary-rgb, 14, 116, 144), .08);
    border-radius: 8px;
    transition: width .4s ease;
}

.mfv-poll__total {
    font-size: 12px;
    color: var(--grp-muted);
    margin: 8px 0 0;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════
   REPUTATION & BADGE DISPLAY
   ═══════════════════════════════════════════════════════ */

.mfv-rep-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: capitalize;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.5;
}

.mfv-rep-badge--regular     { background: #e0f2fe; color: #0369a1; }
.mfv-rep-badge--contributor { background: #fef3c7; color: #92400e; }
.mfv-rep-badge--mentor      { background: #dcfce7; color: #166534; }
.mfv-rep-badge--elder       { background: #fae8ff; color: #86198f; }

.mfv-user-badge {
    display: inline-block;
    font-size: 14px;
    margin-left: 3px;
    vertical-align: middle;
    cursor: help;
}

/* ═══════════════════════════════════════════════════════
   COMMENT REACTIONS
   ═══════════════════════════════════════════════════════ */

.mfv-comment-react-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.mfv-comment-react-trigger {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 11px;
    background: none;
    border: 1px solid var(--grp-border);
    border-radius: 12px;
    cursor: pointer;
    color: var(--grp-muted);
    transition: background .12s, border-color .12s;
}

.mfv-comment-react-trigger:hover {
    background: var(--grp-primary-lt);
    border-color: var(--grp-primary);
}

.mfv-comment-react-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    font-size: 11px;
    background: var(--grp-bg);
    border: 1px solid var(--grp-border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--grp-text-md);
    transition: background .12s;
}

.mfv-comment-react-chip:hover {
    background: var(--grp-primary-lt);
    border-color: var(--grp-primary);
}

.mfv-comment-picker {
    bottom: calc(100% + 4px);
}

/* ═══════════════════════════════════════════════════════
   POST TYPE TOOLBAR & POLL BUILDER
   ═══════════════════════════════════════════════════════ */

.mfv-post-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px 0 4px;
    border-bottom: 1px solid var(--grp-border);
    margin-bottom: 8px;
}

.mfv-post-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1.5px solid var(--grp-border);
    border-radius: 20px;
    background: var(--grp-surface);
    color: var(--grp-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.mfv-post-type-btn:hover {
    border-color: var(--grp-primary);
    color: var(--grp-primary);
    background: var(--grp-primary-lt);
}

.mfv-post-type-btn--active {
    border-color: var(--grp-primary);
    color: var(--grp-primary);
    background: var(--grp-primary-lt);
}

.mfv-poll-builder {
    background: var(--grp-bg);
    border: 1px solid var(--grp-border);
    border-radius: var(--grp-r-md);
    padding: 14px;
    margin-bottom: 8px;
}

.mfv-poll-question {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--grp-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

.mfv-poll-question:focus {
    border-color: var(--grp-primary);
    outline: none;
}

.mfv-poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.mfv-poll-option-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--grp-border);
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    font-family: inherit;
}

.mfv-poll-option-input:focus {
    border-color: var(--grp-primary);
    outline: none;
}

.mfv-poll-add-option {
    background: none;
    border: none;
    color: var(--grp-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}

.mfv-poll-add-option:hover {
    text-decoration: underline;
}

.mfv-photo-field,
.mfv-video-field {
    margin-bottom: 8px;
}

.mfv-photo-url-input,
.mfv-video-url-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--grp-border);
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    font-family: inherit;
}

.mfv-photo-url-input:focus,
.mfv-video-url-input:focus {
    border-color: var(--grp-primary);
    outline: none;
}

/* ═══════════════════════════════════════════════════════
   COVENANT MODAL
   ═══════════════════════════════════════════════════════ */

.mfv-covenant-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    padding: 16px;
}

.mfv-covenant-modal__box {
    position: relative;
    background: var(--grp-surface, #fff);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.mfv-covenant-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--mfv-slate-400, #94a3b8);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.mfv-covenant-modal__icon {
    text-align: center;
    font-size: 40px;
    margin-bottom: 8px;
}

.mfv-covenant-modal__title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.mfv-covenant-modal__intro {
    text-align: center;
    font-size: 14px;
    color: var(--mfv-slate-500, #64748b);
    margin: 0 0 16px;
}

.mfv-covenant-modal__text {
    background: var(--mfv-slate-50, #f8fafc);
    border: 1px solid var(--mfv-slate-200, #e2e8f0);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #334155;
}

.mfv-covenant-modal__text ul {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}

.mfv-covenant-modal__text li {
    margin-bottom: 8px;
}

.mfv-covenant-modal__text li:last-child {
    margin-bottom: 0;
}

.mfv-covenant-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.mfv-covenant-modal__input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--mfv-slate-200, #e2e8f0);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color .15s;
}

.mfv-covenant-modal__input:focus {
    border-color: var(--mfv-primary, #0e7490);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,116,144,.1);
}

.mfv-covenant-modal__actions {
    display: flex;
    gap: 10px;
}

.mfv-covenant-modal__actions .mfv-groups-btn {
    flex: 1;
    justify-content: center;
}

/* Hardened covenant button styles — override any theme/Elementor leaks */
.mfv-covenant-modal__actions .mfv-covenant-agree-btn {
    background: var(--mfv-primary, #0e7490) !important;
    color: #fff !important;
    border-color: var(--mfv-primary, #0e7490) !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
}
.mfv-covenant-modal__actions .mfv-covenant-agree-btn:hover {
    background: #0c6580 !important;
    border-color: #0c6580 !important;
}
.mfv-covenant-modal__actions .mfv-covenant-cancel-btn {
    background: var(--mfv-slate-100, #f1f5f9) !important;
    color: var(--mfv-slate-600, #475569) !important;
    border-color: var(--mfv-slate-200, #e2e8f0) !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
}
.mfv-covenant-modal__actions .mfv-covenant-cancel-btn:hover {
    background: var(--mfv-slate-200, #e2e8f0) !important;
    color: var(--mfv-slate-800, #1e293b) !important;
}

.mfv-covenant-modal__note {
    text-align: center;
    font-size: 11px;
    color: var(--mfv-slate-400, #94a3b8);
    margin: 12px 0 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* ── Mobile Category Filter Toggle + Flyout ── */
.mfv-cat-filter-toggle {
    display: none; /* hidden on desktop */
}
.mfv-cat-filter-head {
    display: none; /* hidden on desktop */
}
.mfv-cat-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
}
.mfv-cat-filter-backdrop--visible {
    display: block;
}

@media (max-width: 900px) {
    .mfv-groups-layout { grid-template-columns: 1fr; }
    .mfv-groups-wrap   { padding: 0 16px; }
    .mfv-groups-body   { padding: 24px 0 48px; }
    .mfv-group-hero    { min-height: 240px; }
    .mfv-group-cover   { height: 200px; }
    .mfv-hero-nav          { display: none; }
    .mfv-hero-slide-infos  { display: none; }
    .mfv-groups-filterbar { gap: 8px; }
    .mfv-group-members-list { gap: 6px; }

    /* Show filter toggle button */
    .mfv-cat-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.65rem 1rem;
        margin-bottom: 16px;
        border-radius: var(--grp-r-lg, 16px);
        background: var(--grp-surface, #fff);
        border: 1px solid var(--grp-border, var(--mfv-slate-200, #e2e8f0));
        color: var(--grp-primary, var(--mfv-primary, #0e7490));
        font-family: 'Poppins', sans-serif;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
    }
    .mfv-cat-filter-toggle:hover {
        background: var(--grp-primary-lt, #e0f2fe);
    }
    .mfv-cat-filter-toggle svg {
        flex-shrink: 0;
    }

    /* Sidebar becomes a bottom-sheet flyout */
    .mfv-groups-sidebar {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 90vh;
        background: var(--grp-surface, #fff);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 20px;
        gap: 0;
    }
    .mfv-groups-sidebar.mfv-sidebar--open {
        transform: translateY(0);
    }

    /* Flyout header (visible in flyout) */
    .mfv-cat-filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--grp-border, var(--mfv-slate-200, #e2e8f0));
        position: sticky;
        top: 0;
        background: var(--grp-surface, #fff);
        z-index: 1;
        border-radius: 20px 20px 0 0;
    }
    .mfv-cat-filter-head > span {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: var(--grp-text, #0f172a);
    }
    .mfv-cat-filter-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(var(--mfv-primary-rgb, 14, 116, 144), 0.08);
        color: var(--grp-primary, var(--mfv-primary, #0e7490));
        border: none;
        cursor: pointer;
        font-size: 20px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .mfv-cat-filter-close:hover {
        background: rgba(var(--mfv-primary-rgb, 14, 116, 144), 0.18);
    }

    /* Keep panels visible inside the flyout */
    .mfv-sidebar-panel { display: none; }
    .mfv-sidebar-panel.mfv-sidebar-panel--cats { display: block; padding: 0.25rem 0; }
    .mfv-sidebar-panel.mfv-sidebar-panel--tags { display: block; border: none; box-shadow: none; border-radius: 0; background: transparent; }

    /* Hide filterbar tags on mobile — they're in the flyout now */
    .mfv-filterbar-tags { display: none !important; }

    /* Compact items in flyout */
    .mfv-sidebar-item {
        padding: 6px 16px;
        font-size: 13px;
        gap: 8px;
    }
    .mfv-sidebar-section-title {
        padding: 8px 16px 4px;
        font-size: 10px;
    }
    .mfv-sidebar-icon {
        font-size: 14px;
        width: 20px;
    }

    /* Hide CTA in flyout */
    .mfv-sidebar-cta { display: none; }
}

@media (max-width: 600px) {
    .mfv-groups-grid          { grid-template-columns: 1fr; }
    .mfv-groups-topbar        { flex-wrap: wrap; }
    .mfv-search-field         { max-width: none; flex-basis: 100%; order: 1; }
    .mfv-view-toggle          { order: 2; }
    #mfv-create-group-btn     { order: 3; flex: 1; justify-content: center; }
    .mfv-groups-modal__box    { padding: 24px 18px; margin: 12px; max-width: calc(100% - 24px); }
    .mfv-group-single         { padding: 0 12px; }
    .mfv-group-hero           { min-height: 220px; border-radius: var(--grp-r-md); }
    .mfv-group-hero__content  { padding: 48px 14px 14px; }
    .mfv-group-hero__content .mfv-group-name { font-size: 18px; line-height: 1.2; margin-bottom: 6px; word-break: break-word; }
    .mfv-group-hero__content .mfv-group-description { font-size: 12px; line-height: 1.5; max-width: none; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
    .mfv-group-hero__content .mfv-group-meta-row { gap: 4px; }
    .mfv-group-hero__content .mfv-group-member-count { font-size: 11px; }
    .mfv-group-hero__actions  { top: 6px; right: 8px; gap: 4px; }
    .mfv-groups-btn--hero     { font-size: 11px; padding: 5px 10px !important; }
    .mfv-groups-btn--circle   { width: 34px !important; height: 34px !important; }
    .mfv-group-breadcrumb     { padding: 8px 12px; font-size: 10px; gap: 4px; }
    .mfv-badge--hero          { font-size: 10px; padding: 2px 6px; }
    .mfv-hero-title           { font-size: 22px; }
    .mfv-hero-subtitle        { font-size: 14px; }
    .mfv-groups-wrap          { padding: 0 12px; }
    .mfv-groups-body          { padding: 16px 0 40px; }
    .mfv-groups-hero          { height: auto !important; min-height: 240px !important; margin: 12px 0 0; border-radius: var(--grp-r-md); }
    .mfv-hero-overlay         { padding: 20px 16px; }
    .mfv-hero-title           { font-size: 20px; margin-bottom: 8px; }
    .mfv-hero-subtitle        { font-size: 13px; line-height: 1.5; }
    .mfv-hero-dots            { bottom: 12px; gap: 6px; }
    .mfv-hero-dot             { width: 6px; height: 6px; }
    .mfv-hero-nav             { width: 36px; height: 36px; font-size: 18px; }
    .mfv-hero-prev            { left: 10px; }
    .mfv-hero-next            { right: 10px; }
    .mfv-hero-slide-infos     { display: none; }
    .mfv-groups-filterbar     { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
    .mfv-filterbar-privacy    { flex: 0 0 auto; order: 1; }
    .mfv-filterbar-sort       { margin-left: auto; order: 2; }
    .mfv-filterbar-sort select { font-size: 12px; padding: 5px 8px; }
    .mfv-filterbar-tags       { flex-basis: 100%; order: 3; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .mfv-crisis-modal__box    { padding: 24px 18px; }
    .mfv-react-picker          { left: auto; right: 0; }
    .mfv-react-chips           { flex-basis: 100%; order: 1; }
    .mfv-poll                  { padding: 12px; }
    .mfv-group-breadcrumb     { padding: 10px 14px; font-size: 11px; }
    .mfv-group-tabs           { margin-top: 16px; }
    .mfv-group-tab            { padding: 12px 16px; font-size: 13px; }
    .mfv-group-post           { padding: 18px 16px; border-radius: var(--grp-r-md); }
    .mfv-group-post-form      { padding: 16px; border-radius: var(--grp-r-md); }
    .mfv-manage-group-form    { padding: 20px 16px; }
    /* List view stacks on mobile */
    .mfv-groups-grid--list .mfv-group-card { flex-direction: column; }
    .mfv-groups-grid--list .mfv-group-card__cover {
        width: 100%; min-width: 0; height: 140px;
        border-radius: var(--grp-r-md) var(--grp-r-md) 0 0;
    }
}

/* Very small screens (< 400px) */
@media (max-width: 400px) {
    .mfv-group-single             { padding: 0 8px; }
    .mfv-group-hero               { min-height: 200px; border-radius: 12px; }
    .mfv-group-hero__content      { padding: 40px 10px 10px; }
    .mfv-group-hero__content .mfv-group-name { font-size: 16px; }
    .mfv-group-hero__content .mfv-group-description { font-size: 11px; -webkit-line-clamp: 2; }
    .mfv-group-hero__actions      { top: 4px; right: 6px; gap: 3px; }
    .mfv-groups-btn--hero         { font-size: 10px; padding: 4px 8px !important; }
    .mfv-groups-btn--circle       { width: 30px !important; height: 30px !important; }
    .mfv-group-breadcrumb         { padding: 6px 10px; font-size: 9px; }
    .mfv-groups-wrap              { padding: 0 8px; }
    .mfv-groups-hero              { height: 180px !important; margin: 8px 0 0; }
    .mfv-hero-overlay             { padding: 14px 12px; }
    .mfv-hero-title               { font-size: 18px; margin-bottom: 6px; }
    .mfv-hero-subtitle            { font-size: 12px; }
    .mfv-hero-nav                 { display: none; }
    .mfv-hero-slide-infos         { display: none; }
    .mfv-group-tab                { padding: 10px 12px; font-size: 12px; }
    .mfv-group-post-form textarea { font-size: 13px; min-height: 60px; }
    .mfv-post-toolbar .mfv-post-type-btn { font-size: 12px; padding: 5px 10px; }
}

/* ═══════════════════════════════════════════════════════
   JOIN BUTTON HOVER — ensure white text is always visible
   (overrides any theme-level a:hover or button:hover rules)
   ═══════════════════════════════════════════════════════ */
button.mfv-join-group-btn:hover,
a.mfv-join-group-btn:hover,
.mfv-group-card__actions .mfv-groups-btn--primary:hover,
.mfv-group-card__actions a.mfv-groups-btn--primary:hover,
.mfv-groups-wrap button.mfv-groups-btn--primary:hover,
.mfv-groups-wrap a.mfv-groups-btn--primary:hover {
    color: #ffffff !important;
    background: var(--grp-primary-dk) !important;
    border-color: var(--grp-primary-dk) !important;
}

/* ═══════════════════════════════════════════════════════
   REAL-TIME PROFANITY DETECTION — textarea + button states
   ═══════════════════════════════════════════════════════ */
textarea.mfv-profanity-flagged {
    border-color: var(--mfv-error-light, #ef4444) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}
.mfv-btn-blocked {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ── Leave Group confirm dialog ── */
.mfv-grp-confirm {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mfv-grp-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.mfv-grp-confirm__box {
    position: relative;
    z-index: 1;
    background: var(--grp-surface, #fff);
    border-radius: var(--grp-r-lg, 20px);
    padding: 32px 28px 28px;
    width: calc(100% - 32px);
    max-width: 360px;
    box-shadow: var(--grp-shadow-xl, 0 20px 60px rgba(0,0,0,.18));
    text-align: center;
    animation: mfvGrpSlideUp .25s cubic-bezier(.34,1.56,.64,1);
}
.mfv-grp-confirm__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fef2f2;
    color: var(--grp-danger, var(--mfv-error-light, #ef4444));
    margin: 0 auto 16px;
}
.mfv-grp-confirm__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--grp-text, #0f172a);
    margin: 0 0 8px;
    line-height: 1.3;
}
.mfv-grp-confirm__body {
    font-size: 14px;
    color: var(--grp-muted, var(--mfv-slate-500, #64748b));
    line-height: 1.6;
    margin: 0 0 24px;
}
.mfv-grp-confirm__actions {
    display: flex;
    gap: 10px;
}
.mfv-grp-confirm__cancel,
.mfv-grp-confirm__ok {
    flex: 1;
    padding: 10px 0;
    border-radius: var(--grp-r-md, 12px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
    line-height: 1.4;
}
.mfv-grp-confirm__cancel {
    background: var(--grp-surface, #fff);
    border: 1.5px solid var(--mfv-slate-200, #e2e8f0);
    color: var(--grp-text, #0f172a);
}
.mfv-grp-confirm__cancel:hover {
    background: var(--grp-bg, var(--mfv-slate-100, #f1f5f9));
    border-color: #cbd5e1;
}
.mfv-grp-confirm__ok {
    background: var(--grp-danger, var(--mfv-error-light, #ef4444));
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239,68,68,0.35);
}
.mfv-grp-confirm__ok:hover {
    background: var(--mfv-error, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239,68,68,0.45);
}

/* ── Profanity reminder modal (centered, hardcoded colors — appended to body) ── */
.mfv-profanity-reminder {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mfvCrisisFadeIn .2s ease;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
}
.mfv-profanity-reminder__box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 480px;
    width: 100%;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    z-index: 1;
    text-align: center;
}
.mfv-profanity-reminder__icon {
    font-size: 52px;
    margin-bottom: 16px;
}
.mfv-profanity-reminder__title {
    font-size: 22px;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 14px;
}
.mfv-profanity-reminder__msg {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
    margin: 0 0 10px;
}
.mfv-profanity-reminder__msg strong {
    color: #78350f;
}
.mfv-profanity-reminder__sub {
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
    margin: 0 0 24px;
}
.mfv-profanity-reminder__actions {
    display: flex;
    justify-content: center;
}
.mfv-profanity-reminder__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--mfv-primary, #0e7490);
    color: #fff;
    border: 1.5px solid var(--mfv-primary, #0e7490);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, transform .15s;
    box-shadow: 0 2px 8px rgba(14,116,144,.3);
}
.mfv-profanity-reminder__btn:hover {
    background: #0c6580;
    border-color: #0c6580;
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    .mfv-profanity-reminder__box { padding: 28px 20px 24px; }
    .mfv-profanity-reminder__title { font-size: 19px; }
}
.mfv-profanity-reminder__covenant-link {
    color: var(--mfv-primary, #0e7490);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}
.mfv-profanity-reminder__covenant-link:hover {
    color: #0c6580;
}

/* ═══════════════════════════════════════════════════════
   COVENANT VIEW (read-only) — appended to <body>
   ═══════════════════════════════════════════════════════ */
.mfv-covenant-view {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    padding: 16px;
    animation: mfvCrisisFadeIn .2s ease;
}
.mfv-covenant-view__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.mfv-covenant-view__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--mfv-slate-400, #94a3b8);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.mfv-covenant-view__close:hover {
    color: var(--mfv-slate-600, #475569);
}
.mfv-covenant-view__icon {
    text-align: center;
    font-size: 40px;
    margin-bottom: 8px;
}
.mfv-covenant-view__title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
}
.mfv-covenant-view__text {
    background: var(--mfv-slate-50, #f8fafc);
    border: 1px solid var(--mfv-slate-200, #e2e8f0);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #334155;
}
.mfv-covenant-view__text ul {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}
.mfv-covenant-view__text li {
    margin-bottom: 8px;
}
.mfv-covenant-view__text li:last-child {
    margin-bottom: 0;
}
.mfv-covenant-view__signature {
    background: #f0fdfa;
    border: 1.5px solid #99f6e4;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: center;
}
.mfv-covenant-view__signature--none {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}
.mfv-covenant-view__sig-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mfv-slate-500, #64748b);
    margin-bottom: 4px;
}
.mfv-covenant-view__sig-name {
    font-size: 22px;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.mfv-covenant-view__sig-date {
    font-size: 13px;
    color: var(--mfv-primary, #0e7490);
    margin-top: 4px;
}
.mfv-covenant-view__sig-group {
    font-size: 12px;
    color: var(--mfv-slate-400, #94a3b8);
    margin-top: 2px;
}
.mfv-covenant-view__actions {
    text-align: center;
}
.mfv-covenant-view__btn {
    padding: 12px 32px;
    background: var(--mfv-primary, #0e7490);
    color: #fff;
    border: 1.5px solid var(--mfv-primary, #0e7490);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    box-shadow: 0 2px 8px rgba(14,116,144,.3);
}
.mfv-covenant-view__btn:hover {
    background: #0c6580;
    border-color: #0c6580;
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    .mfv-covenant-view__box { padding: 28px 20px 24px; }
    .mfv-covenant-view__title { font-size: 19px; }
    .mfv-covenant-view__sig-name { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════
   REPORT POST MODAL — appended to <body>
   ═══════════════════════════════════════════════════════ */
.mfv-report-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    padding: 16px;
    animation: mfvCrisisFadeIn .2s ease;
}
.mfv-report-modal__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.mfv-report-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--mfv-slate-400, #94a3b8);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.mfv-report-modal__close:hover { color: var(--mfv-slate-600, #475569); }
.mfv-report-modal__icon {
    text-align: center;
    font-size: 36px;
    margin-bottom: 6px;
}
.mfv-report-modal__title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}
.mfv-report-modal__intro {
    text-align: center;
    font-size: 14px;
    color: var(--mfv-slate-500, #64748b);
    margin: 0 0 16px;
}
.mfv-report-modal__reasons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.mfv-report-modal__reason {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--mfv-slate-200, #e2e8f0);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: 14px;
    color: #334155;
}
.mfv-report-modal__reason:hover {
    border-color: #cbd5e1;
    background: var(--mfv-slate-50, #f8fafc);
}
.mfv-report-modal__reason input[type="radio"] {
    accent-color: var(--mfv-primary, #0e7490);
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}
.mfv-report-modal__reason:has(input:checked) {
    border-color: var(--mfv-primary, #0e7490);
    background: #f0fdfa;
}
.mfv-report-modal__detail-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.mfv-report-modal__detail {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--mfv-slate-200, #e2e8f0);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color .15s;
}
.mfv-report-modal__detail:focus {
    border-color: var(--mfv-primary, #0e7490);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,116,144,.1);
}
.mfv-report-modal__actions {
    display: flex;
    gap: 10px;
}
.mfv-report-modal__submit {
    flex: 1;
    padding: 12px 20px;
    background: var(--mfv-error, #dc2626);
    color: #fff;
    border: 1.5px solid var(--mfv-error, #dc2626);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    box-shadow: 0 2px 8px rgba(220,38,38,.25);
    font-family: inherit;
}
.mfv-report-modal__submit:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}
.mfv-report-modal__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.mfv-report-modal__cancel {
    flex: 1;
    padding: 12px 20px;
    background: var(--mfv-slate-100, #f1f5f9);
    color: var(--mfv-slate-600, #475569);
    border: 1.5px solid var(--mfv-slate-200, #e2e8f0);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.mfv-report-modal__cancel:hover {
    background: var(--mfv-slate-200, #e2e8f0);
    color: var(--mfv-slate-800, #1e293b);
}
.mfv-report-modal__note {
    text-align: center;
    font-size: 11px;
    color: var(--mfv-slate-400, #94a3b8);
    margin: 12px 0 0;
}
@media (max-width: 480px) {
    .mfv-report-modal__box { padding: 28px 20px 24px; }
    .mfv-report-modal__title { font-size: 18px; }
    .mfv-report-modal__reason { padding: 8px 12px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════
   POST VISIBILITY TOGGLE
   ═══════════════════════════════════════════════════════ */
.mfv-visibility-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--grp-subtle, var(--mfv-slate-400, #94a3b8));
    user-select: none;
    transition: color .15s;
    margin-right: auto;
    padding-left: 8px;
}
.mfv-visibility-toggle:hover { color: var(--grp-text-md, var(--mfv-slate-600, #475569)); }
.mfv-visibility-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--mfv-primary, #0e7490);
    margin: 0;
    cursor: pointer;
}
.mfv-visibility-toggle__icon { font-size: 14px; }
.mfv-visibility-toggle__label { font-weight: 500; }
.mfv-visibility-toggle input:checked ~ .mfv-visibility-toggle__icon,
.mfv-visibility-toggle input:checked ~ .mfv-visibility-toggle__label {
    color: var(--mfv-primary, #0e7490);
}

.mfv-post-visibility-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--mfv-primary, #0e7490);
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   EDIT FORMS (Post & Comment inline editing)
   ═══════════════════════════════════════════════════════ */
.mfv-post-edit-btn,
.mfv-comment-edit-btn {
    background: none;
    border: none;
    color: var(--grp-muted, #64748b);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.mfv-post-edit-btn:hover,
.mfv-comment-edit-btn:hover {
    color: var(--grp-primary, #0e7490);
    background: var(--grp-primary-lt, #e0f2fe);
}
.mfv-post-edit-form {
    margin-top: 8px;
}
.mfv-post-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    border: 1.5px solid var(--grp-border, #e2e8f0);
    border-radius: var(--grp-r-sm, 8px);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background: var(--grp-surface, #fff);
}
.mfv-post-edit-textarea:focus {
    border-color: var(--grp-primary, #0e7490);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,116,144,.1);
}
.mfv-post-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}
.mfv-comment-edit-form {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}
.mfv-comment-edit-form .mfv-comment-edit-input {
    flex: 1;
    min-width: 0;
}
.mfv-comment-edit-cancel {
    background: none;
    border: none;
    color: var(--grp-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.mfv-comment-edit-cancel:hover { color: var(--grp-danger, #ef4444); }

/* ═══════════════════════════════════════════════════════
   COMMENTS CLOSED NOTICE
   ═══════════════════════════════════════════════════════ */
.mfv-comments-closed-notice {
    padding: 12px 16px;
    color: var(--grp-muted, #64748b);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    border-top: 1px solid var(--grp-border, #e2e8f0);
}

/* ═══════════════════════════════════════════════════════
   PENDING APPROVAL BUTTON & SECTION
   ═══════════════════════════════════════════════════════ */
.mfv-groups-btn--pending {
    opacity: .75;
    cursor: default !important;
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.3) !important;
    pointer-events: none;
}
/* Card-level pending button (outside hero context) */
.mfv-group-card__actions .mfv-groups-btn--pending {
    background: var(--grp-bg, #f1f5f9) !important;
    color: var(--grp-muted, #64748b) !important;
    border-color: var(--grp-border, #e2e8f0) !important;
    opacity: 1;
    font-size: 12px;
}
.mfv-badge--pending {
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.mfv-pending-section {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.mfv-pending-section__title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 12px;
}
.mfv-member-item--pending {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-bottom: 8px;
}
.mfv-member-item--pending .mfv-member-info {
    flex: 1;
    min-width: 0;
}
.mfv-pending-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.mfv-approve-btn {
    padding: 6px 12px;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.mfv-approve-btn:hover { background: #047857; }
.mfv-approve-btn:disabled { opacity: .6; cursor: not-allowed; }
.mfv-reject-btn {
    padding: 6px 12px;
    background: var(--mfv-slate-100, #f1f5f9);
    color: var(--mfv-error, #dc2626);
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.mfv-reject-btn:hover { background: #fef2f2; }
.mfv-reject-btn:disabled { opacity: .6; cursor: not-allowed; }

.mfv-member-role--pending {
    color: #b45309 !important;
    background: #fef3c7 !important;
    border-color: #fde68a !important;
}

@media (max-width: 480px) {
    .mfv-pending-actions { flex-direction: column; gap: 4px; }
    .mfv-approve-btn, .mfv-reject-btn { padding: 5px 8px; font-size: 11px; }
}

/* ── Dashboard Tab ── */
.mfv-grp-dash { max-width: 900px; }
.mfv-grp-dash__heading {
    font-size: 16px; font-weight: 700; color: var(--grp-text, #0f172a);
    margin: 0 0 16px; padding: 0;
}
.mfv-grp-dash__grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.mfv-grp-dash__card {
    background: #fff; border: 1px solid var(--grp-border, #e2e8f0);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mfv-grp-dash__card-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.mfv-grp-dash__cover {
    width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.mfv-grp-dash__cover--placeholder {
    background: var(--grp-bg, #f1f5f9); display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.mfv-grp-dash__card-info { flex: 1; min-width: 0; }
.mfv-grp-dash__card-info h4 { margin: 0; font-size: 15px; font-weight: 600; }
.mfv-grp-dash__card-info h4 a { color: inherit; text-decoration: none; }
.mfv-grp-dash__card-info h4 a:hover { color: var(--grp-primary, #0e7490); }
.mfv-grp-dash__meta { font-size: 12px; color: var(--grp-muted, #64748b); }
.mfv-grp-dash__badge {
    background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 50px; white-space: nowrap;
}
.mfv-grp-dash__expand-btn {
    background: none; border: none; cursor: pointer; color: var(--grp-muted, #64748b);
    padding: 4px; transition: transform .2s;
}
.mfv-grp-dash__expand-btn--open { transform: rotate(180deg); }
.mfv-grp-dash__panel { border-top: 1px solid var(--grp-border, #e2e8f0); }
.mfv-grp-dash__tabs {
    display: flex; gap: 0; border-bottom: 1px solid var(--grp-border, #e2e8f0);
}
.mfv-grp-dash__tab {
    background: none; border: none; cursor: pointer;
    padding: 10px 20px; font-size: 13px; font-weight: 500;
    color: var(--grp-muted, #64748b);
    border-bottom: 2px solid transparent; transition: all .15s;
}
.mfv-grp-dash__tab--active {
    color: var(--grp-primary, #0e7490);
    border-bottom-color: var(--grp-primary, #0e7490);
}
.mfv-grp-dash__tab-count {
    display: inline-block; background: #fef3c7; color: #b45309;
    font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 50px;
    margin-left: 4px; vertical-align: middle;
}
.mfv-grp-dash__tab-content { padding: 16px; }
.mfv-grp-dash__empty { font-size: 13px; color: var(--grp-muted, #64748b); margin: 0; }
.mfv-grp-dash__empty a { color: var(--grp-primary, #0e7490); }
.mfv-grp-dash__member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mfv-grp-dash__member {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px; background: var(--grp-bg, #f1f5f9);
}
.mfv-grp-dash__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mfv-grp-dash__member-info { flex: 1; min-width: 0; }
.mfv-grp-dash__member-info strong { display: block; font-size: 13px; }
.mfv-grp-dash__member-meta,
.mfv-grp-dash__member-role { font-size: 11px; color: var(--grp-muted, #64748b); }
.mfv-grp-dash__actions { display: flex; gap: 6px; flex-shrink: 0; }
.mfv-grp-dash__action-btn {
    border: none; cursor: pointer; font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 6px; transition: all .15s;
}
.mfv-grp-dash__action-btn:disabled { opacity: .6; cursor: not-allowed; }
.mfv-grp-dash__action-btn--approve { background: #d1fae5; color: #065f46; }
.mfv-grp-dash__action-btn--approve:hover { background: #a7f3d0; }
.mfv-grp-dash__action-btn--reject { background: #fee2e2; color: #991b1b; }
.mfv-grp-dash__action-btn--reject:hover { background: #fecaca; }
.mfv-grp-dash__action-btn--kick { background: #fef3c7; color: #92400e; }
.mfv-grp-dash__action-btn--kick:hover { background: #fde68a; }
.mfv-grp-dash__card-footer { padding: 10px 16px; border-top: 1px solid var(--grp-border, #e2e8f0); }
.mfv-grp-dash__link {
    font-size: 13px; color: var(--grp-primary, #0e7490); text-decoration: none; font-weight: 500;
}
.mfv-grp-dash__link:hover { text-decoration: underline; }

/* Mini cards (groups I belong to) */
.mfv-grp-dash__grid--compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mfv-grp-dash__mini-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 10px;
    background: #fff; border: 1px solid var(--grp-border, #e2e8f0);
    text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s;
}
.mfv-grp-dash__mini-card:hover { border-color: var(--grp-primary, #0e7490); box-shadow: 0 2px 8px rgba(14,116,144,.1); }
.mfv-grp-dash__mini-emoji { font-size: 22px; flex-shrink: 0; }
.mfv-grp-dash__mini-name { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfv-grp-dash__mini-role { font-size: 11px; color: var(--grp-muted, #64748b); text-transform: capitalize; }

@media (max-width: 600px) {
    .mfv-grp-dash__card-header { flex-wrap: wrap; }
    .mfv-grp-dash__actions { width: 100%; justify-content: flex-end; }
    .mfv-grp-dash__grid--compact { grid-template-columns: 1fr; }
}

/* ── Denomination Filter ── */
.mfv-sidebar-denoms-list {
    padding: 8px 0;
}

.mfv-denom-filter-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--grp-text-md) !important;
    transition: background .15s, color .15s !important;
    background: transparent !important;
}

.mfv-denom-filter-label:hover {
    background: var(--grp-bg) !important;
    color: var(--grp-primary) !important;
}

.mfv-denom-filter-label:has(input[type="checkbox"]:checked) {
    background: var(--grp-primary-lt) !important;
    color: var(--grp-primary) !important;
    font-weight: 600 !important;
}

.mfv-denom-filter {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: var(--grp-primary) !important;
    flex-shrink: 0 !important;
}


/* Multi-select denomination filter */
#mfv-denom-filter-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    cursor: pointer;
    color: var(--grp-text);
    background-color: white !important;
}

#mfv-denom-filter-select:focus {
    outline: none;
    border-color: var(--grp-primary) !important;
    box-shadow: 0 0 0 2px rgba(14,116,144,0.1) !important;
}

#mfv-denom-filter-select option {
    padding: 8px;
    background-color: white;
    color: var(--grp-text);
}

#mfv-denom-filter-select option:checked {
    background-color: var(--grp-primary-lt);
    color: var(--grp-text);
}

/* Filter wrapper for responsive layout */
.mfv-sidebar-panel--filters {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

.mfv-sidebar-panel--filters > div {
    flex: 1;
    min-width: 160px;
}

@media (max-width: 768px) {
    .mfv-sidebar-panel--filters {
        flex-direction: column !important;
    }
    .mfv-sidebar-panel--filters > div {
        width: 100%;
    }
}

/* Filterbar dropdown buttons */
.mfv-filterbar-denom-wrapper,
.mfv-filterbar-church-wrapper {
    display: inline-block;
    position: relative;
}

.mfv-filterbar-dropdown {
    display: inline-block;
}

.mfv-filterbar-dropdown-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--grp-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--grp-text);
    font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
}

.mfv-filterbar-dropdown-btn:hover {
    background: var(--grp-bg);
    border-color: var(--grp-primary);
    color: var(--grp-primary);
}

.mfv-filterbar-dropdown-btn svg {
    transition: transform .2s;
}

.mfv-filterbar-dropdown-btn.active svg {
    transform: rotate(180deg);
}

.mfv-filterbar-dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: white;
    border: 1px solid var(--grp-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    z-index: 1001;
    margin-top: 4px;
}

.mfv-filterbar-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.mfv-filterbar-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s;
}

.mfv-filterbar-option:hover {
    background: var(--grp-bg);
}

.mfv-filterbar-option input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--grp-primary);
}

.mfv-filterbar-option span {
    font-size: 13px;
    color: var(--grp-text);
    user-select: none;
}

.mfv-filterbar-dropdown-input {
    width: 100%;
    padding: 8px 12px !important;
    border: 1px solid var(--grp-border) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    background: white !important;
}

.mfv-filterbar-dropdown-input:focus {
    outline: none;
    border-color: var(--grp-primary) !important;
    box-shadow: 0 0 0 2px rgba(14,116,144,0.1) !important;
}

/* Selection badges */
.mfv-filterbar-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--grp-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
}

.mfv-filterbar-badge.visible {
    display: inline-flex;
}

/* Church tags */
.mfv-church-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--grp-primary-lt);
    color: var(--grp-primary);
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.mfv-church-tag-remove {
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.mfv-church-tag-remove:hover {
    color: var(--grp-primary-dk);
}

#mfv-selected-churches-tags {
    display: flex;
    flex-wrap: wrap;
}

/* Clear all button */
.mfv-filterbar-clear-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--grp-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--grp-muted);
    font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
}

.mfv-filterbar-clear-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}
