@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/*--------------------------------------------------------------
LankaFriends Child Theme — Custom Styles  (Sunset reskin)
--------------------------------------------------------------*/

/* ---- Ad widget reset ---- */
.widget:has(.lf-ad) {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* ---- Custom HTML widget reset ---- */
.widget.widget_block:has(.wp-block-html) {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* ---- Brand Colors (Sunset palette) ---- */
:root {
    --lf-brand:        #E5484D;   /* coral-rose (evolved from the old red) */
    --lf-brand-light:  #FF7A59;   /* warm peach */
    --lf-gradient:     linear-gradient(118deg, #E5484D 0%, #FF7A45 55%, #FF9F45 100%);
    --lf-shadow:       rgba(229, 72, 77, 0.30);
    --lf-shadow-hover: rgba(229, 72, 77, 0.42);

    /* --- Sunset design system (consumed by the polish layer below) --- */
    --lf-ink:          #241B2E;   /* deep plum ink — headings & text */
    --lf-ink-soft:     #6A6175;   /* secondary text */
    --lf-accent:       #0FB5AE;   /* teal — sharp complementary accent */
    --lf-sand:         #FBF6F0;   /* warm page surface */
    --lf-card:         #FFFFFF;
    --lf-line:         #EFE7DD;   /* warm hairline border */
    --lf-radius:       8px;
    --lf-radius-lg:    8px;
    --lf-field:        #FBF9F6;   /* input/select fill */
    --lf-tint:         rgba(229, 72, 77, 0.09); /* selected-state wash */
    --lf-font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --lf-font-body:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================
   LF Homepage
   ========================================= */

/* Remove BuddyBoss content padding on homepage */
.page-template-templateshomepage-php #content {
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

#lf-homepage {
    overflow-x: hidden;
}

/* ---- Hero ---- */
.lf-hero {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5% 0;
}

.lf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15, 23, 55, 0.88) 0%,
        rgba(15, 23, 55, 0.65) 45%,
        rgba(15, 23, 55, 0.15) 75%,
        transparent 100%
    );
    z-index: 1;
}

.lf-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.lf-hero__content {
    flex: 1;
    min-width: 0;
}

.lf-hero__title {
    font-size: 72px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    margin: 0 0 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.lf-hero__subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    margin: 0 0 30px;
    line-height: 1.5;
}

.lf-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--lf-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px var(--lf-shadow);
}

.lf-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--lf-shadow-hover);
    color: #fff;
}

/* Auth card */
.lf-hero__auth {
    position: relative;
    z-index: 2;
    flex: 0 0 380px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

/* Tabs */
.lf-hero__auth .lf-auth-tabs {
    border-bottom: none;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 0;
}

.lf-hero__auth .lf-auth-tab {
    color: #6b7b8d;
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s;
}

.lf-hero__auth .lf-auth-tab[data-tab="signup"] {
    margin-right: 4px;
}

.lf-hero__auth .lf-auth-tab.active {
    color: #fff;
    background: var(--lf-gradient);
    border-bottom-color: transparent;
    box-shadow: 0 2px 8px var(--lf-shadow);
}

.lf-hero__auth .lf-auth-tab:hover:not(.active) {
    color: var(--lf-brand);
}

/* Inputs */
.lf-hero__auth .lf-auth-input {
    background: #f7f8fa;
    border: 1.5px solid #e8eaed;
    height: 48px;
    border-radius: 12px;
    font-size: 14px;
}

.lf-hero__auth .lf-auth-input:focus {
    background: #fff;
    border-color: var(--lf-brand);
    box-shadow: 0 0 0 3px rgba(194,71,73,0.1);
}

/* Button */
.lf-hero__auth .lf-auth-btn {
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    background: var(--lf-gradient);
    color: #fff;
    box-shadow: 0 4px 16px var(--lf-shadow);
}

.lf-hero__auth .lf-auth-btn:hover {
    box-shadow: 0 6px 24px var(--lf-shadow-hover);
    transform: translateY(-1px);
}

/* Extras */
.lf-hero__auth .lf-auth-extras {
    margin-top: -2px;
}

.lf-hero__auth .lf-auth-remember {
    color: #6b7b8d;
    font-size: 13px;
}

.lf-hero__auth .lf-auth-forgot {
    font-size: 13px;
}

/* Fields spacing */
.lf-hero__auth .lf-auth-field {
    margin-bottom: 14px;
}

.lf-auth-field--submit {
    margin-bottom: 0 !important;
}

.lf-hero__auth .lf-auth-tabs {
    margin-bottom: 18px;
}

.lf-hero__auth .lf-auth-form {
    margin-bottom: 0;
}

/* Search — overlapping card */
.lf-hero__search-wrap {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    transform: translateY(50%);
}

.lf-hero__search-wrap .lf-quick-search {
    background: #fff;
    border-radius: 16px;
    padding: 24px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.04);
}

/* ---- Features ---- */
.lf-features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 50px; /* extra top for overlapping search */
}

.lf-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.lf-feature {
    background: #fff;
    border-radius: 16px;
    padding: 36px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.25s, box-shadow 0.25s;
}

.lf-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.lf-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--lf-gradient);
    color: #fff;
    font-size: 28px;
    margin: 0 auto 18px;
}

.lf-feature__title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--bb-headings-color, #122B46);
    margin: 0 0 10px;
}

.lf-feature__desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--bb-body-text-color, #6B7B8D);
    margin: 0;
}

.lf-feature__desc a {
    color: var(--lf-brand);
    text-decoration: none;
    font-weight: 500;
}

.lf-feature__desc a:hover {
    text-decoration: underline;
}

.lf-feature__btn {
    display: inline-block;
    background: var(--lf-gradient);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    transition: opacity 0.2s;
    box-shadow: 0 3px 12px var(--lf-shadow);
}

.lf-feature__btn:hover {
    opacity: 0.9;
    color: #fff !important;
    text-decoration: none !important;
}

/* ---- Intro Text ---- */
.lf-intro-text {
    max-width: 100%;
    padding: 60px 20px;
    text-align: center;
}

.lf-intro-text p {
    max-width: 850px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--bb-body-text-color, #5A6A7B);
}

.lf-bg-light {
    background-color: #f0f2f5;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzVjYWQzIiBzdHJva2Utd2lkdGg9IjAuOCIgb3BhY2l0eT0iMC4zNSI+PHBhdGggZD0iTTIwIDE1YzAtMyA1LTMgNSAwcy01IDMtNSAwIi8+PGNpcmNsZSBjeD0iNjAiIGN5PSIxMiIgcj0iNCIvPjxwYXRoIGQ9Ik05NSA4bDUgMTAgNS0xMCIvPjxwYXRoIGQ9Ik0xNDAgMTBoOHY4aC04eiIvPjxwYXRoIGQ9Ik0xNzUgMTVjMy01IDggMCA1IDVzLTggMC01LTUiLz48cGF0aCBkPSJNMTUgNTBsNC04IDQgOCIvPjxjaXJjbGUgY3g9IjU1IiBjeT0iNDgiIHI9IjMiLz48cGF0aCBkPSJNODggNDVjMCAwIDYtNSAxMiAwcy02IDEwLTEyIDAiLz48cGF0aCBkPSJNMTMwIDQybDggNi04IDYiLz48cGF0aCBkPSJNMTY4IDQ4YzAtNCA4LTQgOCAwcy04IDQtOCAwIi8+PHBhdGggZD0iTTI1IDg1YTUgNSAwIDEgMSAwIDEwIDUgNSAwIDAgMSAwLTEwIi8+PHBhdGggZD0iTTYyIDgybDMgMTAgMy01IDMgNSAzLTEwIi8+PHBhdGggZD0iTTEwMCA4OGgxME0xMDUgODN2MTAiLz48cGF0aCBkPSJNMTM4IDgyYzggMCA4IDEyIDAgMTIiLz48cGF0aCBkPSJNMTcyIDg1bDggOG0tOCAwbDgtOCIvPjxwYXRoIGQ9Ik0xOCAxMjBjNS0yIDEwIDIgOCA3Ii8+PHBhdGggZD0iTTU1IDExOGE2IDYgMCAxIDAgMTIgMCA2IDYgMCAxIDAtMTIgMCIvPjxwYXRoIGQ9Ik05NSAxMTVsMTAgNS0xMCA1Ii8+PHBhdGggZD0iTTEzNSAxMjJoMTAiLz48cGF0aCBkPSJNMTcwIDExNXYxMmg4Ii8+PHBhdGggZD0iTTIyIDE1NWMwLTUgMTAtNSAxMCAwIi8+PGNpcmNsZSBjeD0iNTgiIGN5PSIxNTgiIHI9IjUiLz48cGF0aCBkPSJNOTIgMTUybDYgMTIgNi0xMiIvPjxwYXRoIGQ9Ik0xMzIgMTU1aDEydjZoLTEyeiIvPjxwYXRoIGQ9Ik0xNzIgMTUyYzQgMCA2IDQgNCA4Ii8+PHBhdGggZD0iTTI4IDE4OGwtNS04aDEweiIvPjxwYXRoIGQ9Ik01OCAxODVjNC0zIDggMCA4IDQiLz48cGF0aCBkPSJNOTggMTkwYTQgNCAwIDEgMSA4IDAgNCA0IDAgMSAxLTggMCIvPjxwYXRoIGQ9Ik0xMzggMTg1bDQgOCA0LTgiLz48cGF0aCBkPSJNMTc4IDE4OGgtOHYtNmg4Ii8+PC9nPjwvc3ZnPgo=");
}

.lf-bg-pattern-dots {
    background-color: #fff;
    background-image:
        radial-gradient(circle at 10% 30%, rgba(0,124,255,0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(91,94,166,0.03) 0%, transparent 40%),
        radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: auto, auto, 24px 24px;
}

/* ---- Content Sections ---- */
.lf-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Section headings */
.lf-section .bb-block-header {
    margin-bottom: 24px;
}

.lf-section .bb-block-header__title h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--bb-headings-color, #122B46);
    position: relative;
    padding-bottom: 10px;
}

.lf-section .bb-block-header__title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--lf-brand);
}

/* Hide inactive lists */
.bb-members-list:not(.active),
.bb-groups-list:not(.active) {
    display: none;
}

/* =========================================
   Members & Groups Grids
   ========================================= */

.lf-members-grid,
.lf-groups-grid {
    display: grid;
    gap: 20px;
    padding: 10px 0;
}

/* minmax(0,1fr): plain 1fr has an auto minimum, so one long nowrap
   name blows its column wider than the rest */
.lf-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lf-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lf-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lf-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.lf-member-card,
.lf-group-card {
    text-align: center;
}

.lf-member-link,
.lf-group-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px 8px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
}

.lf-member-link:hover,
.lf-group-link:hover {
    background: #f7f8fa;
    transform: translateY(-3px);
}

/* Avatar */
.lf-member-avatar,
.lf-group-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.lf-member-avatar img,
.lf-group-avatar img {
    width: 120px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 3px solid #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}

.lf-member-link:hover .lf-member-avatar img,
.lf-group-link:hover .lf-group-avatar img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

.lf-member-avatar .member-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
}

/* Name */
.lf-member-name,
.lf-group-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
    color: var(--bb-headings-color, #122B46);
}

.lf-group-name a {
    color: inherit;
    text-decoration: none;
}

/* Meta */
.lf-member-meta,
.lf-group-meta {
    margin-top: 4px;
}

.lf-meta-text {
    font-size: 11px;
    color: #9aa5b1;
    line-height: 1.3;
    display: block;
}

/* Remove border from LF widgets */
.bb-members.lf-no-border,
.bb-groups.lf-no-border {
    border: none !important;
    padding: 0;
}

/* =========================================
   Pill-button Tab Styles
   ========================================= */

.lf-no-border .bb-block-header__extra {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lf-no-border .bb-block-header__extra .bb-members__tab,
.lf-no-border .bb-block-header__extra .bb-groups__tab {
    text-transform: capitalize;
    font-size: 0.85rem;
    color: var(--bb-body-text-color);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid #e2e2e2;
    background: transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.lf-no-border .bb-block-header__extra .bb-members__tab:hover,
.lf-no-border .bb-block-header__extra .bb-groups__tab:hover {
    color: var(--lf-brand);
    border-color: var(--lf-brand);
}

.lf-no-border .bb-block-header__extra .bb-members__tab.selected,
.lf-no-border .bb-block-header__extra .bb-groups__tab.selected {
    color: #fff;
    background: var(--lf-gradient);
    border-color: transparent;
    font-weight: 500;
}

.lf-no-border .bb-block-header__extra .count-more {
    margin-left: 6px;
    font-size: 0.85rem;
    color: var(--lf-brand);
    text-decoration: none;
}

.lf-no-border .bb-block-header__extra .count-more:hover {
    text-decoration: underline;
}

/* =========================================
   Quick Search
   ========================================= */

.lf-quick-search {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    border-radius: 12px;
    background: var(--bb-content-background-color, #fff);
}

.lf-qs-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lf-qs-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bb-headings-color, #122B46);
    white-space: nowrap;
}

.lf-qs-select {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: var(--bb-body-text-color, #4D5C6D);
    cursor: pointer;
    min-width: 130px;
    appearance: auto;
    transition: border-color 0.2s;
}

.lf-qs-select:focus {
    border-color: var(--lf-brand);
    outline: none;
}

.lf-qs-input--age {
    width: 70px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 14px;
    color: var(--bb-body-text-color, #4D5C6D);
    text-align: center;
    -moz-appearance: textfield;
    transition: border-color 0.2s;
}

.lf-qs-input--age::-webkit-inner-spin-button,
.lf-qs-input--age::-webkit-outer-spin-button {
    opacity: 1;
}

.lf-qs-input--age:focus {
    border-color: var(--lf-brand);
    outline: none;
}

.lf-qs-age-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lf-qs-to {
    font-size: 13px;
    font-weight: 400;
    color: #9aa5b1;
}

.lf-qs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 28px;
    border: none;
    border-radius: 100px;
    background: var(--lf-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 12px var(--lf-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px var(--lf-shadow);
}

.lf-qs-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--lf-shadow-hover);
}

.lf-qs-btn i {
    font-size: 16px;
}

.lf-qs-group--btn {
    margin-left: auto;
}

/* Members directory version */
.lf-quick-search--directory {
    margin-bottom: 15px;
    background: var(--bb-content-background-color, #fff);
    border: 1px solid var(--bb-content-border-color, #e2e2e2);
}

/* =========================================
   Auth Tabs
   ========================================= */

.lf-auth-widget {
    width: 100%;
}

.lf-auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 18px;
}

.lf-auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #8a8a8a;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    text-align: center;
}

.lf-auth-tab:hover {
    color: var(--lf-brand);
}

.lf-auth-tab.active {
    color: var(--lf-brand);
    border-bottom-color: var(--lf-brand);
}

.lf-auth-panel {
    display: none;
}

.lf-auth-panel.active {
    display: block;
}

.lf-auth-field {
    margin-bottom: 14px;
}

.lf-auth-field:last-of-type {
    margin-bottom: 0;
}

.lf-auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 14px;
    color: var(--bb-body-text-color, #4D5C6D);
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.lf-auth-input:focus {
    border-color: var(--lf-brand);
    outline: none;
}

.lf-auth-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 100px;
    background-color: var(--lf-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,124,255,0.2);
}

.lf-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,124,255,0.3);
}

.lf-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lf-auth-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lf-auth-remember {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--bb-body-text-color, #4D5C6D);
    cursor: pointer;
}

.lf-auth-remember input[type="checkbox"] {
    margin: 0;
}

.lf-auth-forgot {
    font-size: 13px;
    color: var(--lf-brand);
    text-decoration: none;
}

.lf-auth-forgot:hover {
    text-decoration: underline;
}

.lf-auth-message {
    display: none;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.lf-auth-message.error {
    display: block;
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.lf-auth-message.success {
    display: block;
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .lf-hero__title {
        font-size: 50px;
    }

    .lf-hero__auth {
        flex: 0 0 340px;
        padding: 24px;
    }

    .lf-grid-cols-5,
    .lf-grid-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hero */
    .lf-hero {
        min-height: auto;
        padding: 100px 20px 0;
    }

    .lf-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 55, 0.82) 0%,
            rgba(15, 23, 55, 0.55) 100%
        );
    }

    .lf-hero__inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .lf-hero__auth {
        display: none;
    }

    .lf-hero__title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .lf-hero__subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .lf-hero__cta {
        padding: 12px 28px;
        font-size: 14px;
    }

    /* Search */
    .lf-hero__search-wrap {
        max-width: 100%;
        transform: translateY(20px);
    }

    .lf-hero__search-wrap .lf-quick-search {
        border-radius: 14px;
        padding: 16px;
        gap: 6px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    }

    .lf-quick-search {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: end;
    }

    .lf-qs-group {
        gap: 3px;
    }

    .lf-qs-group--btn {
        margin-left: 0;
    }

    .lf-qs-select {
        width: 100%;
        min-width: 0;
        height: 38px;
        font-size: 13px;
    }

    .lf-qs-input--age {
        height: 38px;
        width: 55px;
        font-size: 13px;
    }

    .lf-qs-label {
        font-size: 12px;
    }

    .lf-qs-btn {
        width: 100%;
        justify-content: center;
        height: 38px;
        font-size: 13px;
        padding: 0 16px;
    }

    /* Features */
    .lf-features {
        padding: 46px 16px 24px;
    }

    .lf-features__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lf-feature {
        padding: 24px 20px;
        display: grid;
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto auto auto;
        gap: 4px 16px;
        text-align: left;
        align-items: center;
    }

    .lf-feature__icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 22px;
        margin: 0;
        grid-row: 1 / -1;
        align-self: start;
        margin-top: 4px;
    }

    .lf-feature__title {
        font-size: 16px;
        margin-bottom: 0;
        grid-column: 2;
    }

    .lf-feature__desc {
        font-size: 13px;
        grid-column: 2;
    }

    .lf-feature__btn {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }

    /* Intro */
    .lf-intro-text {
        padding: 36px 16px;
    }

    .lf-intro-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Sections */
    .lf-section {
        padding: 30px 16px;
        margin: 0 auto;
    }

    .lf-section .bb-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
    }

    .lf-section .bb-block-header__title h3 {
        font-size: 22px;
    }

    .lf-section .bb-block-header__extra {
        width: 100%;
    }

    .lf-no-border .bb-block-header__extra {
        flex-wrap: wrap;
        gap: 6px;
    }

    .lf-no-border .bb-block-header__extra .bb-members__tab,
    .lf-no-border .bb-block-header__extra .bb-groups__tab {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .lf-no-border .bb-block-header__extra .count-more {
        font-size: 0.78rem;
    }

    /* Grids */
    .lf-grid-cols-3,
    .lf-grid-cols-4,
    .lf-grid-cols-5,
    .lf-grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .lf-member-avatar img,
    .lf-group-avatar img {
        width: 90px;
        border-width: 2px;
    }

    .lf-member-link,
    .lf-group-link {
        padding: 8px 4px;
        border-radius: 10px;
    }

    .lf-member-name,
    .lf-group-name {
        font-size: 12px;
    }

    .lf-meta-text {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .lf-hero__title {
        font-size: 28px;
    }

    .lf-hero__subtitle {
        font-size: 14px;
    }

    /* 2 columns on very small screens */
    .lf-grid-cols-2,
    .lf-grid-cols-3,
    .lf-grid-cols-4,
    .lf-grid-cols-5,
    .lf-grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .lf-member-avatar img,
    .lf-group-avatar img {
        width: 70%;
        max-width: 120px;
    }

    .lf-member-link,
    .lf-group-link {
        padding: 6px 2px;
    }
}

/* Extra-small devices (320px) */
@media (max-width: 360px) {
    /* Hero */
    .lf-hero {
        padding: 60px 10px 0;
        min-height: auto;
    }

    .lf-hero__inner {
        gap: 16px;
    }

    .lf-hero__title {
        font-size: 22px;
        letter-spacing: -0.3px;
    }

    .lf-hero__title br {
        display: none;
    }

    .lf-hero__subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .lf-hero__cta {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    /* Search card */
    .lf-hero__search-wrap {
        transform: translateY(14px);
    }

    .lf-hero__search-wrap .lf-quick-search {
        padding: 10px;
        border-radius: 10px;
    }

    /* Quick search: single column */
    .lf-quick-search {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lf-qs-select {
        min-width: 0;
        height: 36px;
        font-size: 13px;
    }

    .lf-qs-input--age {
        width: 60px;
        height: 36px;
        font-size: 13px;
    }

    .lf-qs-age-range {
        gap: 6px;
    }

    .lf-qs-btn {
        height: 36px;
        font-size: 13px;
        padding: 0 14px;
    }

    .lf-qs-label {
        font-size: 11px;
    }

    /* Features */
    .lf-features {
        padding: 30px 10px 16px;
    }

    .lf-features__grid {
        gap: 10px;
    }

    .lf-feature {
        padding: 14px 10px;
        grid-template-columns: 40px 1fr;
        gap: 3px 10px;
    }

    .lf-feature__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 17px;
        margin-top: 2px;
    }

    .lf-feature__title {
        font-size: 14px;
    }

    .lf-feature__desc {
        font-size: 12px;
        line-height: 1.5;
    }

    .lf-feature__btn {
        font-size: 11px;
        padding: 6px 14px;
    }

    /* Intro */
    .lf-intro-text {
        padding: 24px 10px;
    }

    .lf-intro-text p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Sections */
    .lf-section {
        padding: 20px 8px;
    }

    .lf-section .bb-block-header {
        gap: 8px;
        margin-bottom: 12px;
    }

    .lf-section .bb-block-header__title h3 {
        font-size: 18px;
        padding-bottom: 8px;
    }

    .lf-section .bb-block-header__title h3::after {
        width: 30px;
        height: 2px;
    }

    /* Tabs */
    .lf-no-border .bb-block-header__extra {
        gap: 4px;
    }

    .lf-no-border .bb-block-header__extra .bb-members__tab,
    .lf-no-border .bb-block-header__extra .bb-groups__tab {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .lf-no-border .bb-block-header__extra .count-more {
        font-size: 0.7rem;
    }

    /* Grids */
    .lf-members-grid,
    .lf-groups-grid {
        padding: 6px 0;
    }

    .lf-grid-cols-2,
    .lf-grid-cols-3,
    .lf-grid-cols-4,
    .lf-grid-cols-5,
    .lf-grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .lf-member-link,
    .lf-group-link {
        padding: 6px 2px;
        border-radius: 8px;
    }

    .lf-member-avatar,
    .lf-group-avatar {
        margin-bottom: 6px;
    }

    .lf-member-avatar img,
    .lf-group-avatar img {
        width: 65%;
        max-width: 100px;
        border-width: 2px;
    }

    .lf-member-name,
    .lf-group-name {
        font-size: 11px;
        padding: 0 2px;
    }

    .lf-meta-text {
        font-size: 9px;
    }

    /* Auth tabs (widget/sidebar) */
    .lf-auth-tabs {
        margin-bottom: 12px;
    }

    .lf-auth-tab {
        font-size: 13px;
        padding: 8px 10px;
    }

    .lf-auth-input {
        height: 40px;
        font-size: 13px;
    }

    .lf-auth-btn {
        height: 40px;
        font-size: 14px;
    }

    .lf-auth-extras {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* View All Groups button */
.lf-view-all-wrap {
    text-align: center;
    margin-top: 24px;
}

.lf-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--lf-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lf-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--lf-shadow-hover);
    color: #fff;
}

/* ════════════════════════════════════════════════════════════
   ✦  SUNSET POLISH LAYER  ✦
   Visual-only overrides layered on top of everything above.
   Fonts:   Fraunces (display) + Plus Jakarta Sans (body)
   Palette: coral→peach sunset gradient · plum ink · teal accent
   Note:    no flat font-sizes here — the responsive breakpoints
            above stay in control of sizing.
   ════════════════════════════════════════════════════════════ */

/* --- Typographic foundation (site-wide) --- */
body {
    font-family: var(--lf-font-body);
    color: var(--lf-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.bb-title, .entry-title, .page-title {
    font-family: var(--lf-font-display);
    font-weight: 600;
    letter-spacing: -0.012em;
}

/* --- Global micro-details --- */
::selection { background: rgba(229, 72, 77, 0.22); color: var(--lf-ink); }

html { scrollbar-width: thin; scrollbar-color: var(--lf-brand) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--lf-brand), var(--lf-brand-light));
    border: 3px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;
}

/* =========================================
   Hero — warm sunset atmosphere
   ========================================= */
.lf-hero__overlay {
    background:
        radial-gradient(115% 80% at 88% 12%, rgba(255, 159, 69, 0.30) 0%, transparent 55%),
        radial-gradient(95% 75% at 6% 92%, rgba(229, 72, 77, 0.34) 0%, transparent 60%),
        linear-gradient(112deg,
            rgba(28, 18, 38, 0.92) 0%,
            rgba(28, 18, 38, 0.72) 42%,
            rgba(28, 18, 38, 0.22) 76%,
            rgba(28, 18, 38, 0.04) 100%);
}

/* fine film-grain over the hero photo */
.lf-hero__overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lf-hero__title {
    font-family: var(--lf-font-display);
    font-weight: 600;
}

/* decorative gradient accent under the headline */
.lf-hero__title::after {
    content: "";
    display: block;
    width: 84px;
    height: 5px;
    margin-top: 20px;
    border-radius: 6px;
    background: var(--lf-gradient);
    box-shadow: 0 6px 18px var(--lf-shadow);
}

.lf-hero__subtitle { font-weight: 400; }

/* staggered entrance on load */
@keyframes lfRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lfFade { from { opacity: 0; } to { opacity: 1; } }

.lf-hero__title       { animation: lfRise 0.7s cubic-bezier(0.16, 0.84, 0.32, 1) both; animation-delay: 0.05s; }
.lf-hero__subtitle    { animation: lfRise 0.7s cubic-bezier(0.16, 0.84, 0.32, 1) both; animation-delay: 0.16s; }
.lf-hero__cta         { animation: lfRise 0.7s cubic-bezier(0.16, 0.84, 0.32, 1) both; animation-delay: 0.27s; }
.lf-hero__auth        { animation: lfRise 0.8s cubic-bezier(0.16, 0.84, 0.32, 1) both; animation-delay: 0.20s; }
/* fade only — the search card relies on transform: translateY(50%) for its overlap */
.lf-hero__search-wrap { animation: lfFade 0.9s ease both; animation-delay: 0.45s; }

/* =========================================
   Auth + search cards — refined depth
   ========================================= */
.lf-hero__auth {
    border-radius: var(--lf-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 64px -26px rgba(28, 18, 38, 0.55);
}

.lf-hero__search-wrap .lf-quick-search {
    border-radius: var(--lf-radius);
    border: 1px solid var(--lf-line);
    box-shadow: 0 26px 52px -24px rgba(28, 18, 38, 0.38);
}

/* brand-tinted focus rings (replaces stray blue/red rings) */
.lf-hero__auth .lf-auth-input:focus,
.lf-auth-input:focus,
.lf-qs-select:focus,
.lf-qs-input--age:focus {
    border-color: var(--lf-brand);
    box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14);
}

/* widget auth button — was a leftover blue shadow */
.lf-auth-btn {
    background-color: var(--lf-brand);
    background-image: var(--lf-gradient);
    box-shadow: 0 8px 20px -6px var(--lf-shadow);
}
.lf-auth-btn:hover { box-shadow: 0 12px 26px -6px var(--lf-shadow-hover); }

/* =========================================
   Feature cards — accent bar + lift
   ========================================= */
.lf-feature {
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-radius-lg);
    position: relative;
    overflow: hidden;
}
.lf-feature::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--lf-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.lf-feature:hover::before { transform: scaleX(1); }
.lf-feature:hover { box-shadow: 0 24px 46px -22px var(--lf-shadow); }

.lf-feature__title {
    font-family: var(--lf-font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--lf-ink);
}
.lf-feature__desc { font-family: var(--lf-font-body); }
.lf-feature__icon { box-shadow: 0 12px 26px -8px var(--lf-shadow); }

/* =========================================
   Section headers — gradient underline
   ========================================= */
.lf-section .bb-block-header__title h3 {
    font-family: var(--lf-font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--lf-ink);
}
.lf-section .bb-block-header__title h3::after {
    width: 48px;
    height: 4px;
    background: var(--lf-gradient);
}

/* =========================================
   Member / group cards — coral halo
   ========================================= */
.lf-member-name, .lf-group-name { color: var(--lf-ink); }

.lf-member-link:hover, .lf-group-link:hover { background: rgba(229, 72, 77, 0.05); }

.lf-member-link:hover .lf-member-avatar img,
.lf-group-link:hover .lf-group-avatar img {
    box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.18), 0 14px 28px -10px var(--lf-shadow);
    transform: scale(1.04);
}

/* =========================================
   Centre the hero accent bar on mobile
   ========================================= */
@media (max-width: 768px) {
    .lf-hero__title::after { margin-left: auto; margin-right: auto; }
}

/* =========================================
   Respect reduced-motion preferences
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    .lf-hero__title,
    .lf-hero__subtitle,
    .lf-hero__cta,
    .lf-hero__auth,
    .lf-hero__search-wrap { animation: none !important; }
    .lf-feature::before { transition: none !important; }
}

/* ════════════════════════════════════════════════════════════
   ✦  MODERN LAYER (2026-07)  ✦
   Quiet-geometry refinement + dark mode. CSS-only, appended
   after the polish layer so equal-specificity rules here win.
   Rules: corners ≤8px (6px controls), no resting shadows,
   hairline borders carry structure, hover = border color only,
   density ~25% tighter. Palette unchanged in light mode; dark
   mode deepens the same hues under html.lf-dark (class set by
   the toggle in custom.js, saved in localStorage — safe with
   full-page caching because the server renders nothing).
   ════════════════════════════════════════════════════════════ */

/* ---- 1 · BuddyBoss token overrides (geometry, density, palette) ---- */
:root {
    --bb-block-radius: 8px;
    --bb-block-radius-inner: 6px;
    --bb-input-radius: 6px;
    --bb-button-radius: 6px;
    --bb-option-radius: 4px;
    --bb-label-type-radius: 6px;
    --bb-body-background-color: #FBF6F0;
    --bb-content-border-color: #EFE7DD;
    --bb-primary-color: #E5484D;
    --bb-primary-color-rgb: 229, 72, 77;
    --bb-headings-color: #241B2E;
    --bb-body-text-color: #5F5869;
    --bb-alternate-text-color: #8B8496;
    --bb-primary-button-background-regular: #E5484D;
    --bb-primary-button-background-hover: #C93A44;
    --bb-primary-button-border-regular: #E5484D;
    --bb-primary-button-border-hover: #C93A44;
    --bb-primary-button-text-regular: #FFFFFF;
    --bb-primary-button-text-hover: #FFFFFF;
}

/* ---- 2 · Site-wide geometry + density ---- */
.site-header {
    box-shadow: none;
    border-bottom: 1px solid var(--bb-content-border-color, #EFE7DD);
}

.site .button,
.site a.button,
.site input[type="submit"],
.site button[type="submit"] {
    border-radius: var(--bb-button-radius, 6px);
    min-height: 36px;
    padding: 6px 16px;
    font-size: 14px;
    box-shadow: none;
}

.site .button.small,
.site a.button.small {
    min-height: 30px;
    padding: 4px 12px;
    font-size: 13px;
}

.site input[type="text"],
.site input[type="email"],
.site input[type="password"],
.site input[type="search"],
.site input[type="tel"],
.site input[type="url"],
.site input[type="number"],
.site select {
    border-radius: var(--bb-input-radius, 6px);
    min-height: 36px;
    font-size: 14px;
}

.site textarea {
    border-radius: var(--bb-input-radius, 6px);
    font-size: 14px;
}

.widget,
.activity-item,
.bb-card {
    box-shadow: none;
}

.buddypress-wrap .bp-navs li a {
    padding: 0 12px;
    font-size: 13.5px;
}

/* ---- 3 · LF components: quiet geometry ---- */

/* hero — shorter, calmer */
.lf-hero {
    min-height: 72vh;
    padding-top: 96px;
}

.lf-hero__cta {
    border-radius: 6px;
    box-shadow: 0 2px 8px -2px var(--lf-shadow);
}

.lf-hero__cta:hover {
    transform: none;
    box-shadow: 0 2px 8px -2px var(--lf-shadow);
}

/* auth card — modest depth (it floats on a photo), squared controls */
.lf-hero__auth {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.38);
    padding: 24px;
}

.lf-hero__auth .lf-auth-tabs {
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 16px;
}

.lf-hero__auth .lf-auth-tab {
    border-radius: 6px;
    padding: 8px 14px;
}

.lf-hero__auth .lf-auth-tab.active {
    background: var(--lf-brand);
    box-shadow: none;
}

.lf-hero__auth .lf-auth-input {
    height: 40px;
    border-radius: 6px;
}

.lf-hero__auth .lf-auth-btn {
    height: 40px;
    border-radius: 6px;
}

.lf-auth-input {
    height: 40px;
    border-radius: 6px;
}

.lf-auth-btn {
    height: 40px;
    border-radius: 6px;
    background-image: none;
    background-color: var(--lf-brand);
    box-shadow: none;
}

.lf-auth-btn:hover {
    transform: none;
    box-shadow: none;
    background-color: #C93A44;
}

/* search card */
.lf-hero__search-wrap .lf-quick-search {
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px -18px rgba(28, 18, 38, 0.4);
}

.lf-quick-search {
    border-radius: 8px;
    gap: 12px;
}

.lf-qs-select,
.lf-qs-input--age {
    height: 38px;
    border-radius: 6px;
    background: var(--lf-field);
}

.lf-qs-btn {
    height: 38px;
    border-radius: 6px;
    background: var(--lf-brand);
    box-shadow: none;
    padding: 0 22px;
}

.lf-qs-btn:hover {
    transform: none;
    box-shadow: none;
    background: #C93A44;
}

/* features — border cards, no lift, no accent bar */
.lf-features {
    padding: 80px 20px 40px;
}

.lf-feature {
    border-radius: 8px;
    padding: 26px 20px;
    box-shadow: none;
    border: 1px solid var(--lf-line);
}

.lf-feature:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--lf-brand);
}

.lf-feature::before {
    content: none;
}

.lf-feature__icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
    box-shadow: none;
    margin-bottom: 14px;
}

.lf-feature__btn {
    border-radius: 6px;
    background: var(--lf-brand);
    box-shadow: none;
}

/* sections — tighter rhythm, flat underline */
.lf-section {
    padding: 36px 20px;
}

.lf-intro-text {
    padding: 40px 20px;
}

.lf-section .bb-block-header__title h3 {
    font-size: 24px;
}

.lf-section .bb-block-header__title h3::after,
.lf-hero__title::after {
    width: 32px;
    height: 2px;
    background: var(--lf-brand);
    box-shadow: none;
}

/* tab pills → quiet chips */
.lf-no-border .bb-block-header__extra .bb-members__tab,
.lf-no-border .bb-block-header__extra .bb-groups__tab {
    border-radius: 6px;
    padding: 5px 12px;
    border-color: transparent;
}

.lf-no-border .bb-block-header__extra .bb-members__tab:hover,
.lf-no-border .bb-block-header__extra .bb-groups__tab:hover {
    border-color: var(--lf-line);
    color: var(--lf-brand);
}

.lf-no-border .bb-block-header__extra .bb-members__tab.selected,
.lf-no-border .bb-block-header__extra .bb-groups__tab.selected {
    background: var(--lf-tint);
    color: var(--lf-brand);
    font-weight: 700;
}

/* member / group grids — compact, border-only hover */
.lf-members-grid,
.lf-groups-grid {
    gap: 14px;
}

.lf-member-link,
.lf-group-link {
    padding: 10px 6px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.lf-member-link:hover,
.lf-group-link:hover {
    background: var(--lf-card);
    border-color: var(--lf-brand);
    transform: none;
}

.lf-member-avatar img,
.lf-group-avatar img {
    width: 104px;
    border-width: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.lf-member-link:hover .lf-member-avatar img,
.lf-group-link:hover .lf-group-avatar img {
    box-shadow: 0 0 0 2px var(--lf-brand);
    transform: none;
}

.lf-view-all-btn {
    border-radius: 6px;
    background: var(--lf-brand);
    padding: 10px 26px;
}

.lf-view-all-btn:hover {
    transform: none;
    box-shadow: none;
    background: #C93A44;
}

/* scrollbar — flat, quiet */
html {
    scrollbar-color: #C9C2B8 transparent;
}

::-webkit-scrollbar-thumb {
    background: #C9C2B8;
    border: 3px solid transparent;
    border-radius: 6px;
    background-clip: padding-box;
}

/* ---- 4 · Theme toggle button (injected by custom.js) ---- */
.lf-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--bb-header-links, #241B2E);
    cursor: pointer;
    flex: none;
}

.lf-theme-toggle:hover {
    color: var(--lf-brand);
}

.lf-theme-toggle i {
    font-size: 20px;
}

.lf-theme-toggle .lf-i-sun { display: none; }
html.lf-dark .lf-theme-toggle .lf-i-sun { display: inline-block; }
html.lf-dark .lf-theme-toggle .lf-i-moon { display: none; }

/* ---- 5 · Dark mode — same hues, deepened ---- */
html.lf-dark {
    color-scheme: dark;

    /* BuddyBoss variables */
    --bb-primary-color: #F0666F;
    --bb-primary-color-rgb: 240, 102, 111;
    --bb-body-background-color: #191420;
    --bb-body-background-color-rgb: 25, 20, 32;
    --bb-content-background-color: #221C2C;
    --bb-content-alternate-background-color: #2A2336;
    --bb-content-border-color: #332B40;
    --bb-content-border-color-rgb: 51, 43, 64;
    --bb-cover-image-background-color: #2A2336;
    --bb-headings-color: #F0EBF3;
    --bb-headings-color-rgb: 240, 235, 243;
    --bb-body-text-color: #B9B0C6;
    --bb-body-text-color-rgb: 185, 176, 198;
    --bb-alternate-text-color: #8F86A0;
    --bb-alternate-text-color-rgb: 143, 134, 160;
    --bb-primary-button-background-regular: #E5484D;
    --bb-primary-button-background-hover: #F0666F;
    --bb-primary-button-border-regular: #E5484D;
    --bb-primary-button-border-hover: #F0666F;
    --bb-secondary-button-background-regular: #2A2336;
    --bb-secondary-button-background-hover: #332B40;
    --bb-secondary-button-border-regular: #413853;
    --bb-secondary-button-border-hover: #4D4363;
    --bb-secondary-button-text-regular: #F0EBF3;
    --bb-secondary-button-text-hover: #FFFFFF;
    --bb-header-background: #221C2C;
    --bb-header-alternate-background: #2A2336;
    --bb-header-links: #F0EBF3;
    --bb-header-links-hover: #F0666F;
    --bb-sidenav-background: #221C2C;
    --bb-sidenav-text-regular: #B9B0C6;
    --bb-sidenav-text-hover: #F0EBF3;
    --bb-sidenav-text-active: #F0666F;
    --bb-sidenav-menu-background-color-regular: #221C2C;
    --bb-sidenav-menu-background-color-hover: #2A2336;
    --bb-sidenav-menu-background-color-active: #2A2336;
    --bb-footer-background: #14101B;
    --bb-footer-widget-background: #14101B;
    --bb-footer-text-color: #9A91A8;
    --bb-footer-menu-link-color-regular: #B9B0C6;
    --bb-footer-menu-link-color-hover: #F0666F;
    --bb-footer-menu-link-color-active: #F0666F;
    --bb-label-background-color: #332B40;
    --bb-label-text-color: #F0EBF3;
    --bb-tooltip-background: #F0EBF3;
    --bb-tooltip-color: #191420;

    /* LF tokens */
    --lf-ink: #F0EBF3;
    --lf-ink-soft: #9A91A8;
    --lf-sand: #191420;
    --lf-card: #221C2C;
    --lf-line: #332B40;
    --lf-field: #2A2336;
    --lf-tint: rgba(240, 102, 111, 0.14);
    --lf-brand: #F0666F;
    --lf-shadow: rgba(0, 0, 0, 0.45);
    --lf-shadow-hover: rgba(0, 0, 0, 0.55);

    scrollbar-color: #413853 transparent;
}

html.lf-dark body {
    background: var(--bb-body-background-color);
    color: var(--bb-body-text-color);
}

html.lf-dark ::selection {
    background: rgba(240, 102, 111, 0.3);
    color: #F0EBF3;
}

html.lf-dark ::-webkit-scrollbar-thumb {
    background: #413853;
}

/* hero auth card */
html.lf-dark .lf-hero__auth {
    background: var(--lf-card);
    border-color: var(--lf-line);
}

html.lf-dark .lf-hero__auth .lf-auth-tabs {
    background: var(--lf-field);
}

html.lf-dark .lf-hero__auth .lf-auth-tab {
    color: var(--lf-ink-soft);
}

html.lf-dark .lf-hero__auth .lf-auth-tab.active {
    color: #fff;
}

html.lf-dark .lf-hero__auth .lf-auth-input,
html.lf-dark .lf-auth-input {
    background: var(--lf-field);
    border-color: #413853;
    color: var(--lf-ink);
}

html.lf-dark .lf-hero__auth .lf-auth-input:focus,
html.lf-dark .lf-auth-input:focus {
    background: var(--lf-card);
    border-color: var(--lf-brand);
}

html.lf-dark .lf-auth-remember,
html.lf-dark .lf-hero__auth .lf-auth-remember {
    color: var(--lf-ink-soft);
}

html.lf-dark .lf-auth-message.error {
    background: rgba(220, 38, 38, 0.14);
    color: #F87171;
    border-color: rgba(220, 38, 38, 0.3);
}

html.lf-dark .lf-auth-message.success {
    background: rgba(22, 163, 74, 0.14);
    color: #4ADE80;
    border-color: rgba(22, 163, 74, 0.3);
}

/* search card + directory variant */
html.lf-dark .lf-quick-search,
html.lf-dark .lf-hero__search-wrap .lf-quick-search,
html.lf-dark .lf-quick-search--directory {
    background: var(--lf-card);
    border-color: var(--lf-line);
}

html.lf-dark .lf-qs-select,
html.lf-dark .lf-qs-input--age {
    background: var(--lf-field);
    border-color: #413853;
    color: var(--lf-ink);
}

html.lf-dark .lf-qs-label {
    color: var(--lf-ink);
}

/* features + sections */
html.lf-dark .lf-feature {
    background: var(--lf-card);
    border-color: var(--lf-line);
}

html.lf-dark .lf-feature:hover {
    border-color: var(--lf-brand);
}

html.lf-dark .lf-feature__title,
html.lf-dark .lf-section .bb-block-header__title h3 {
    color: var(--lf-ink);
}

html.lf-dark .lf-feature__desc,
html.lf-dark .lf-intro-text p {
    color: var(--lf-ink-soft);
}

html.lf-dark .lf-bg-light {
    background-color: #1F1929;
    background-image: none;
}

html.lf-dark .lf-bg-pattern-dots {
    background-color: #191420;
    background-image: radial-gradient(circle, #332B40 1px, transparent 1px);
    background-size: 24px 24px;
}

/* member / group grids */
html.lf-dark .lf-member-name,
html.lf-dark .lf-group-name {
    color: var(--lf-ink);
}

html.lf-dark .lf-member-link:hover,
html.lf-dark .lf-group-link:hover {
    background: var(--lf-card);
}

html.lf-dark .lf-member-avatar img,
html.lf-dark .lf-group-avatar img {
    border-color: var(--lf-card);
}

html.lf-dark .lf-meta-text {
    color: var(--lf-ink-soft);
}

/* pill chips */
html.lf-dark .lf-no-border .bb-block-header__extra .bb-members__tab,
html.lf-dark .lf-no-border .bb-block-header__extra .bb-groups__tab {
    color: var(--lf-ink-soft);
}

html.lf-dark .lf-no-border .bb-block-header__extra .bb-members__tab.selected,
html.lf-dark .lf-no-border .bb-block-header__extra .bb-groups__tab.selected {
    background: var(--lf-tint);
    color: var(--lf-brand);
}

/* header/site chrome details BuddyBoss hardcodes */
html.lf-dark .site-header {
    border-bottom-color: var(--lf-line);
}

html.lf-dark .site-header .sub-menu,
html.lf-dark .header-aside .sub-menu {
    background: var(--lf-card);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

html.lf-dark .bb-header-buttons .signin-button {
    color: var(--lf-ink);
    border-color: #413853;
}

/* ---- 6 · Fixes after live check ----
   The parent theme prints its :root variables inline in wp_head AFTER
   this stylesheet, so plain :root overrides lose the cascade tie.
   html:root (0,1,1) outranks it; html:root.lf-dark outranks both so
   dark mode keeps winning over these. */
html:root {
    --bb-block-radius: 8px;
    --bb-block-radius-inner: 6px;
    --bb-input-radius: 6px;
    --bb-button-radius: 6px;
    --bb-option-radius: 4px;
    --bb-label-type-radius: 6px;
    --bb-body-background-color: #FBF6F0;
    --bb-content-border-color: #EFE7DD;
    --bb-primary-color: #E5484D;
    --bb-primary-color-rgb: 229, 72, 77;
    --bb-headings-color: #241B2E;
    --bb-body-text-color: #5F5869;
    --bb-alternate-text-color: #8B8496;
    --bb-primary-button-background-regular: #E5484D;
    --bb-primary-button-background-hover: #C93A44;
    --bb-primary-button-border-regular: #E5484D;
    --bb-primary-button-border-hover: #C93A44;
    --bb-primary-button-text-regular: #FFFFFF;
    --bb-primary-button-text-hover: #FFFFFF;
}

html:root.lf-dark {
    --bb-body-background-color: #191420;
    --bb-content-border-color: #332B40;
    --bb-primary-color: #F0666F;
    --bb-primary-color-rgb: 240, 102, 111;
    --bb-headings-color: #F0EBF3;
    --bb-body-text-color: #B9B0C6;
    --bb-alternate-text-color: #8F86A0;
    --bb-primary-button-background-regular: #E5484D;
    --bb-primary-button-background-hover: #F0666F;
    --bb-primary-button-border-regular: #E5484D;
    --bb-primary-button-border-hover: #F0666F;
}

/* hero auth submit — flat coral like every other control */
.lf-hero__auth .lf-auth-btn {
    background: var(--lf-brand);
    box-shadow: none;
}

.lf-hero__auth .lf-auth-btn:hover {
    background: #C93A44;
    transform: none;
    box-shadow: none;
}

html.lf-dark .lf-hero__auth .lf-auth-btn:hover {
    background: #F0666F;
}


/* ---- 7 · BuddyPress directories — compact 4-up grid ---- */
@media (min-width: 1000px) {
    .buddypress-wrap .grid > li {
        width: 25%;
    }
}

.buddypress-wrap .bp-list.grid .list-wrap {
    padding: 12px 12px 14px;
}

.buddypress-wrap .bp-list.grid .item-avatar {
    margin: 10px 0;
}

.buddypress-wrap .bp-list.grid .item-avatar img.avatar {
    max-width: 92px;
    height: auto;
}

.buddypress-wrap .bp-list.grid .list-title {
    font-size: 14px;
}

.buddypress-wrap .bp-list.grid .item-meta {
    font-size: 12px;
}

/* ---- 7b · Directory compaction (final) ----
   BuddyBoss directory rules are highly specific and vary by login
   state (.no-primary-buttons etc. swap on the card), so the geometry
   here uses contained !important instead of chasing fragile chains.
   Avatar/typography rules mirror the parent's own selectors exactly,
   and win on document order alone. */
@media (min-width: 1000px) {
    .buddypress-wrap .grid.bp-list > li {
        -ms-flex: 0 0 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
        min-width: 0 !important;
    }
}

#members-list.item-list.grid .list-wrap {
    padding: 12px 12px 16px !important;
}

/* logged-in cards keep room for their footer action buttons */
#members-list.item-list.grid .list-wrap.secondary-buttons,
#members-list.item-list.grid .list-wrap.primary-button {
    padding-bottom: 48px !important;
}

#groups-list.grid > li,
#members-list.grid > li,
#friend-list.grid > li {
    margin: 0 0 14px;
    padding: 0 7px;
}

#members-list.bp-list.grid .item-avatar,
#friend-list.bp-list.grid .item-avatar {
    margin-top: 4px;
    margin-bottom: 10px;
}

#members-list.bp-list.grid .item-avatar img,
#friend-list.bp-list.grid .item-avatar img {
    max-width: 92px;
}

.grid > li .list-wrap .list-title {
    font-size: 14px;
}

.buddypress-wrap .grid > li .last-activity {
    font-size: 12px;
    margin-top: 2px;
}

/* ---- 8 · Homepage member cards — photo-forward, app style ----
   Same widget markup + the lf-member-profile line from the template
   part. Portrait 3:4 card: the link is a flex column, the avatar is
   an absolutely-positioned background layer, and name / gender-city /
   meta stack in normal flow at the bottom — so a missing line never
   leaves a gap. Members only; groups keep their circle avatars. */
.lf-members-grid .lf-member-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 3 / 4;
    padding: 0 10px 6px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--lf-line);
    background: var(--lf-field);
    text-align: left;
}

.lf-members-grid .lf-member-link:hover {
    border-color: var(--lf-brand);
    background: var(--lf-field);
}

.lf-members-grid .lf-member-avatar {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
}

.lf-members-grid .lf-member-avatar img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.lf-members-grid .lf-member-link:hover .lf-member-avatar img {
    box-shadow: none;
    transform: none;
}

/* scrim — only as strong as the text needs */
.lf-members-grid .lf-member-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52%;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 14, 27, 0.78) 100%);
    pointer-events: none;
}

.lf-members-grid .lf-member-link .lf-member-name {
    position: relative;
    z-index: 1;
    padding: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.lf-members-grid .lf-member-link .lf-member-profile {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lf-members-grid .lf-member-link .lf-member-meta {
    position: relative;
    z-index: 1;
    margin: 1px 0 0;
    text-align: left;
}

.lf-members-grid .lf-member-link .lf-meta-text {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
}

/* presence dot — top corner of the card */
.lf-members-grid .lf-member-avatar .member-status {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: auto;
    z-index: 1;
}

/* photo-less members: warm the stock gray placeholder toward the
   palette in light mode; dim it in dark so the card doesn't glare */
.lf-members-grid .lf-member-avatar img[src*="profile-avatar-buddyboss"] {
    filter: sepia(0.28) brightness(0.99);
}

html.lf-dark .lf-members-grid .lf-member-avatar img[src*="profile-avatar-buddyboss"] {
    filter: brightness(0.45) sepia(0.15);
}

/* ---- 9 · Members directory — same portrait photo cards ----
   BuddyBoss markup this time: .list-wrap-inner becomes the 3:4 photo
   area (avatar as absolute background, scrim, text in flow at the
   bottom); the Gender · District line comes from the
   bp_member_members_list_meta hook in functions.php. The verbose
   "Joined … • Active …" meta is hidden on grid cards — the sort
   dropdown already conveys recency. Logged-in cards keep reserved
   space below the photo for their action buttons. */
#members-dir-list .bp-list.grid .list-wrap {
    padding: 0 !important;
    overflow: hidden;
    background: var(--lf-field);
}

#members-dir-list .bp-list.grid .list-wrap:hover {
    border-color: var(--lf-brand);
}

#members-dir-list .bp-list.grid .list-wrap.secondary-buttons,
#members-dir-list .bp-list.grid .list-wrap.primary-button {
    padding: 0 0 44px !important;
}

#members-dir-list .bp-list.grid .list-wrap-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 3 / 4;
    padding: 0 10px 6px;
}

#members-dir-list .bp-list.grid .item-avatar {
    position: absolute;
    inset: 0;
    margin: 0 !important;
}

#members-dir-list .bp-list.grid .item-avatar a {
    display: block;
    height: 100%;
}

#members-dir-list .bp-list.grid .item-avatar img.avatar {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}

/* scrim */
#members-dir-list .bp-list.grid .list-wrap-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52%;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 14, 27, 0.78) 100%);
    pointer-events: none;
}

/* Absolute text stack: BB's flex sizing pins .item/.item-block to a
   fixed ~51px that swallows extra lines — absolute positioning opts
   out of all of it */
#members-dir-list .bp-list.grid .item {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    z-index: 1;
    display: block;
    height: auto !important;
    padding: 0;
    text-align: left;
}

#members-dir-list .bp-list.grid .item-block {
    margin: 0;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

#members-dir-list .bp-list.grid .list-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#members-dir-list .bp-list.grid .list-title a {
    color: #fff;
}

#members-dir-list .bp-list.grid .lf-member-profile {
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* BB renders its meta line above the gender/district line — hidden here
   and re-echoed as .lf-member-active by the hook, in homepage order */
#members-dir-list .bp-list.grid .item-meta.last-activity {
    display: none;
}

#members-dir-list .bp-list.grid .lf-member-active {
    margin: 1px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    line-height: 1.4;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lucide icons in the overlay lines */
.lf-member-profile .lf-mp-bit svg {
    width: 11px;
    height: 11px;
    vertical-align: -1.5px;
    margin-right: 3px;
}

.lf-member-profile .lf-mp-sep {
    margin: 0 5px;
    opacity: 0.7;
}

/* clock before time-based meta — newest/active homepage tabs (the
   livestamp script strips its data- attribute, so target the tab list
   containers; popular = friend count, no clock) and the directory's
   always-time-based line */
.bb-members-list--newest .lf-member-link .lf-meta-text,
.bb-members-list--active .lf-member-link .lf-meta-text,
#members-dir-list .bp-list.grid .lf-member-active {
    padding-left: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.62)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") left center / 10px 10px no-repeat;
}

/* presence dot — top corner of the card */
#members-dir-list .bp-list.grid .item-avatar .member-status {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
    z-index: 1;
}

#buddypress .bp-list li .follow-container {
    margin-bottom: 6px;
}

/* photo-less members — same placeholder treatment as the homepage */
#members-dir-list .bp-list.grid .item-avatar img[src*="profile-avatar-buddyboss"] {
    filter: sepia(0.28) brightness(0.99);
}

html.lf-dark #members-dir-list .bp-list.grid .item-avatar img[src*="profile-avatar-buddyboss"] {
    filter: brightness(0.45) sepia(0.15);
}

/* ---- 10 · Recently Active Members widget — small rect avatars, 4-up ---- */
.widget_bp_core_recently_active_widget .avatar-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.widget_bp_core_recently_active_widget .avatar-block .item-avatar {
    position: relative;
    margin: 0;
    float: none;
}

.widget_bp_core_recently_active_widget .avatar-block .item-avatar img.avatar {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.widget_bp_core_recently_active_widget .avatar-block .item-avatar .member-status {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: auto;
    left: auto;
}

.widget_bp_core_recently_active_widget .avatar-block .item-avatar img[src*="profile-avatar-buddyboss"] {
    filter: sepia(0.28) brightness(0.99);
}

html.lf-dark .widget_bp_core_recently_active_widget .avatar-block .item-avatar img[src*="profile-avatar-buddyboss"] {
    filter: brightness(0.45) sepia(0.15);
}

/* ---- 11 · Homepage group cards — same portrait treatment as members ---- */
.lf-groups-grid .lf-group-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 3 / 4;
    padding: 0 10px 6px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--lf-line);
    background: var(--lf-field);
    text-align: left;
}

.lf-groups-grid .lf-group-link:hover {
    border-color: var(--lf-brand);
    background: var(--lf-field);
}

.lf-groups-grid .lf-group-avatar {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
}

.lf-groups-grid .lf-group-avatar img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.lf-groups-grid .lf-group-link:hover .lf-group-avatar img {
    box-shadow: none;
    transform: none;
}

.lf-groups-grid .lf-group-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 14, 27, 0.78) 100%);
    pointer-events: none;
}

.lf-groups-grid .lf-group-link .lf-group-name {
    position: relative;
    z-index: 1;
    padding: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lf-groups-grid .lf-group-link .lf-group-name a {
    color: #fff;
}

.lf-groups-grid .lf-group-link .lf-group-meta {
    position: relative;
    z-index: 1;
    margin: 1px 0 0;
    text-align: left;
}

.lf-groups-grid .lf-group-link .lf-meta-text {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
}

/* clock for time-based tabs, members icon for popular */
.bb-groups-list--newest .lf-group-link .lf-meta-text,
.bb-groups-list--active .lf-group-link .lf-meta-text {
    padding-left: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.62)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") left center / 10px 10px no-repeat;
}

.bb-groups-list--popular .lf-group-link .lf-meta-text {
    padding-left: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.62)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") left center / 10px 10px no-repeat;
}

.lf-groups-grid .lf-group-avatar img[src*="group-avatar-buddyboss"] {
    filter: sepia(0.28) brightness(0.99);
}

html.lf-dark .lf-groups-grid .lf-group-avatar img[src*="group-avatar-buddyboss"] {
    filter: brightness(0.45) sepia(0.15);
}

/* ---- 12 · Directory cards (logged-in): drop inline social clutter ----
   Logged-in directory cards render a "N followers" count + async
   follow/message icon buttons that collide with the photo overlay and
   leave a dead strip below. Hide them so the card matches the homepage:
   a clean photo + name/gender·district/active overlay. The whole card
   links to the profile, where Connect + Message live prominently, and
   the "..." menu (View As / Report) is untouched. */
#members-dir-list .bp-list.grid .list-wrap.secondary-buttons,
#members-dir-list .bp-list.grid .list-wrap.primary-button {
    padding-bottom: 0 !important;
}

#members-dir-list .bp-list.grid .follow-container,
#members-dir-list .bp-list.grid .member-buttons-wrap,
#members-dir-list .bp-list.grid .bp-members-list-hook,
#members-dir-list .bp-list.grid .followers-wrap {
    display: none !important;
}
