/*
 * Brook Lynn Badge Manager 1.7.6
 * Minimal frontend adjustments built on the stable 1.7.0 renderer.
 */

/* Badge Manager-owned pages must not inherit a white theme/page-builder canvas. */
body.blbm-page-dark,
body.blbm-page-dark #page,
body.blbm-page-dark .site,
body.blbm-page-dark .site-content,
body.blbm-page-dark .site-inner,
body.blbm-page-dark .wp-site-blocks,
body.blbm-page-dark #content,
body.blbm-page-dark .content-area,
body.blbm-page-dark .site-main,
body.blbm-page-dark .entry-content,
body.blbm-page-dark .page-content,
body.blbm-page-dark .elementor,
body.blbm-page-dark .elementor-location-single,
body.blbm-page-dark .elementor-widget-theme-post-content {
    background-color: #000 !important;
    color: #f3f2eb !important;
}

body.blbm-page-dark {
    background-image:
        radial-gradient(circle at 50% 4%, rgba(35, 173, 108, .10), transparent 34rem),
        linear-gradient(180deg, #000 0%, #010402 58%, #000 100%) !important;
    background-attachment: fixed !important;
}

body.blbm-page-dark :is(.entry-header, .page-header, .entry-title) {
    background: transparent !important;
}

body.blbm-page-dark :is(.elementor-section, .e-con, .e-con-inner) {
    --background-color: transparent;
    background-color: transparent !important;
}

/*
 * Keep the original tooltip node in the badge markup for aria-describedby,
 * but hide it visually from the first styled paint. The body-level portal is
 * the only visual tooltip, so a clipped container tooltip never flashes while
 * JavaScript and the rest of the page are still loading.
 */
.blbm-badge[data-blbm-badge-id] > .blbm-tooltip {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: none !important;
}

/*
 * The visible tooltip is a direct child of body and uses the Popover top layer
 * where supported. This keeps it above fixed headers and outside every card,
 * slider, profile panel, Elementor wrapper, and overflow-hidden container.
 */
body > #blbm-tooltip-portal {
    all: initial;
    box-sizing: border-box !important;
    position: fixed !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2147483647 !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: min(260px, calc(100vw - 24px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid color-mix(in srgb, var(--blbm-ring, #23ad6c) 55%, transparent) !important;
    border-radius: 12px !important;
    background: #050806 !important;
    color: #fff !important;
    box-shadow:
        0 14px 40px rgba(0, 0, 0, .42),
        0 0 22px var(--blbm-glow, rgba(35, 173, 108, .35)) !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: left !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate3d(0, 6px, 0) !important;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease !important;
    isolation: isolate !important;
    contain: layout style paint !important;
    -webkit-font-smoothing: antialiased !important;
}

body > #blbm-tooltip-portal {
    display: none !important;
}

body > #blbm-tooltip-portal:popover-open,
body > #blbm-tooltip-portal.is-fallback-open {
    display: block !important;
}

body > #blbm-tooltip-portal::backdrop {
    background: transparent !important;
}

body > #blbm-tooltip-portal.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
}

body > #blbm-tooltip-portal > strong,
body > #blbm-tooltip-portal > small {
    all: initial;
    display: block !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
}

body > #blbm-tooltip-portal > strong {
    font: 700 13px/1.25 Georgia, "Times New Roman", serif !important;
    color: var(--blbm-ring, #23ad6c) !important;
}

body > #blbm-tooltip-portal > small {
    margin-top: 4px !important;
    font: 500 11px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #d9dedb !important;
}

@media (max-width: 640px) {
    body.blbm-page-dark {
        background-attachment: scroll !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body > #blbm-tooltip-portal {
        transition: none !important;
        transform: none !important;
    }
}

@media (forced-colors: active) {
    body > #blbm-tooltip-portal {
        border: 1px solid ButtonText !important;
    }
}

/* v1.7.7 — client adjustment pass: modern badge pages without broad layout changes. */
body.blbm-page-owned {
    --blbm-hover-line: rgba(35, 173, 108, .55);
    --blbm-hover-glow: rgba(35, 173, 108, .18);
    --blbm-soft-line: rgba(255, 255, 255, .08);
}

body.blbm-page-owned a,
body.blbm-page-owned button {
    -webkit-tap-highlight-color: rgba(35, 173, 108, .16) !important;
}

body.blbm-page-owned :is(a, button):focus-visible {
    outline: 2px solid rgba(35, 173, 108, .78) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(35, 173, 108, .16) !important;
}

.blbm-account-hero,
.blbm-account-section,
.blbm-collection-card,
.blbm-knowledge-hero,
.blbm-knowledge-grid article > a,
.blbm-knowledge blockquote,
.blbm-info-hero,
.blbm-info-body article,
.blbm-faq,
.blbm-directory-hero,
.blbm-directory-card {
    transform: translateZ(0);
    will-change: transform, opacity;
}

.blbm-account-section,
.blbm-collection-card,
.blbm-knowledge-grid article > a,
.blbm-info-body article,
.blbm-faq,
.blbm-directory-card {
    transition:
        border-color .24s ease,
        box-shadow .24s ease,
        background .24s ease,
        transform .24s ease !important;
}

.blbm-account-section:hover,
.blbm-info-body article:hover,
.blbm-faq:hover,
.blbm-directory-card:hover {
    border-color: var(--blbm-hover-line) !important;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .34),
        0 0 0 1px rgba(35, 173, 108, .08) inset,
        0 0 28px var(--blbm-hover-glow) !important;
    transform: translateY(-2px);
}

.blbm-collection-card:hover,
.blbm-knowledge-grid article > a:hover {
    border-color: color-mix(in srgb, var(--blbm-ring, #23ad6c) 58%, rgba(255,255,255,.10)) !important;
    box-shadow:
        0 20px 52px rgba(0, 0, 0, .36),
        0 0 0 1px color-mix(in srgb, var(--blbm-ring, #23ad6c) 18%, transparent) inset,
        0 0 32px color-mix(in srgb, var(--blbm-glow, rgba(35,173,108,.34)) 52%, transparent) !important;
    transform: translateY(-2px) !important;
}

.blbm-collection-card::after,
.blbm-knowledge-grid article > a::after,
.blbm-account-section::after,
.blbm-info-body article::after,
.blbm-directory-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.045) 40%, transparent 72%);
    opacity: 0;
    transition: opacity .24s ease;
}

.blbm-account-section,
.blbm-info-body article,
.blbm-directory-card,
.blbm-knowledge-grid article > a {
    position: relative;
    overflow: hidden;
}

.blbm-collection-card:hover::after,
.blbm-knowledge-grid article > a:hover::after,
.blbm-account-section:hover::after,
.blbm-info-body article:hover::after,
.blbm-directory-card:hover::after {
    opacity: 1;
}

.blbm-badge,
.blbm-badge picture,
.blbm-badge img,
.blbm-collection-art,
.blbm-detail-art,
.blbm-info-art,
.blbm-unlock-art {
    display: grid !important;
    place-items: center !important;
    align-items: center !important;
    justify-items: center !important;
}

.blbm-badge picture,
.blbm-badge img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.blbm-detail-dialog > [data-blbm-dialog-close] {
    display: inline-grid !important;
    place-items: center !important;
    line-height: 1 !important;
    background: rgba(6, 16, 10, .96) !important;
    color: #eaf8ef !important;
    border-color: rgba(35, 173, 108, .38) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 18px rgba(35,173,108,.12) !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

.blbm-detail-dialog > [data-blbm-dialog-close]:hover,
.blbm-detail-dialog > [data-blbm-dialog-close]:focus-visible {
    background: rgba(35, 173, 108, .16) !important;
    color: #23ad6c !important;
    border-color: rgba(35, 173, 108, .72) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.4), 0 0 24px rgba(35,173,108,.24) !important;
}

.blbm-collection-card button,
.blbm-collection-card footer a,
.blbm-info-footer a,
.blbm-unlock section > div:last-child a,
.blbm-directory-search button,
.blbm-directory-open {
    border-radius: 999px !important;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

.blbm-collection-card button:hover,
.blbm-collection-card footer a:hover,
.blbm-info-footer a:hover,
.blbm-unlock section > div:last-child a:hover,
.blbm-directory-open:hover {
    color: #031009 !important;
    background: var(--blbm-green) !important;
    border-color: var(--blbm-green) !important;
    box-shadow: 0 0 20px rgba(35, 173, 108, .22) !important;
}

.blbm-reveal-ready .blbm-reveal-item {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(4px);
    transition:
        opacity .56s ease,
        transform .56s ease,
        filter .56s ease,
        border-color .24s ease,
        box-shadow .24s ease,
        background .24s ease !important;
    transition-delay: var(--blbm-reveal-delay, 0ms) !important;
}

.blbm-reveal-ready .blbm-reveal-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

.blbm-reveal-ready .blbm-reveal-item.is-visible:hover {
    transform: translateY(-2px) !important;
}

@media (max-width: 760px) {
    .blbm-account-section:hover,
    .blbm-info-body article:hover,
    .blbm-faq:hover,
    .blbm-directory-card:hover,
    .blbm-collection-card:hover,
    .blbm-knowledge-grid article > a:hover,
    .blbm-reveal-ready .blbm-reveal-item.is-visible:hover {
        transform: none !important;
    }

    .blbm-collection-card footer {
        align-items: stretch !important;
        display: grid !important;
    }

    .blbm-collection-card button,
    .blbm-collection-card footer a,
    .blbm-info-footer a,
    .blbm-unlock section > div:last-child a {
        justify-content: center !important;
        text-align: center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blbm-reveal-ready .blbm-reveal-item,
    .blbm-account-section,
    .blbm-collection-card,
    .blbm-knowledge-grid article > a,
    .blbm-info-body article,
    .blbm-faq,
    .blbm-directory-card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}


/* v1.7.8 — scoped badge-page width/title/design refinement.
 * Client request: keep functionality unchanged, widen all Badge Manager-owned
 * page layouts to the approved Brook Lynn container rhythm, reduce oversized
 * page titles, and modernize the visual layer without changing data flow.
 */
body.blbm-page-owned {
    --blbm-page-container: 1365px;
    --blbm-page-gutter: clamp(18px, 3vw, 32px);
    --blbm-card-bg-modern: linear-gradient(180deg, rgba(8, 16, 12, .98), rgba(3, 7, 5, .98));
    --blbm-card-hover-shadow: 0 24px 72px rgba(0, 0, 0, .34), 0 0 0 1px rgba(35, 173, 108, .13) inset, 0 0 34px rgba(35, 173, 108, .16);
}

/* Let Badge Manager pages use the same wide visual container as the rest of Brook Lynn. */
body.blbm-page-owned :is(.site-main, .content-area, .site-content, .page-content, .entry-content),
body.blbm-page-owned :is(.elementor, .elementor-section-wrap, .elementor-widget-container) {
    width: 100% !important;
    max-width: none !important;
}

body.blbm-page-owned :is(.blbm-account, .blbm-knowledge, .blbm-info, .blbm-directory, .blbm-unlock, .blbm-nomination) {
    width: min(var(--blbm-page-container), calc(100vw - (var(--blbm-page-gutter) * 2))) !important;
    max-width: var(--blbm-page-container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Theme/Hello page titles should not overpower the custom Brook Lynn page. */
body.blbm-page-owned :is(.entry-title, .page-title, .elementor-heading-title) {
    max-width: var(--blbm-page-container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.blbm-page-owned :is(.entry-header .entry-title, .page-header .entry-title, .page-header .page-title) {
    font-size: clamp(30px, 3vw, 42px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.018em !important;
    margin-top: 22px !important;
    margin-bottom: 6px !important;
}

/* Reduce the oversized Badge Manager hero headings across every shortcode-owned page. */
body.blbm-page-owned :is(.blbm-account-hero h1, .blbm-knowledge-hero h1, .blbm-info-hero h1, .blbm-directory-hero h1, .blbm-unlock h1, .blbm-nomination h1) {
    font-size: clamp(38px, 5vw, 68px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.026em !important;
}
body.blbm-page-owned :is(.blbm-account-section h2, .blbm-info-body h2, .blbm-faq h2, .blbm-directory-empty h2) {
    font-size: clamp(26px, 3.4vw, 42px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.012em !important;
}
body.blbm-page-owned :is(.blbm-knowledge-grid h2, .blbm-directory-copy h2) {
    font-size: clamp(22px, 2.3vw, 30px) !important;
}

/* Premium but calm card surfaces — no broad layout rewrite. */
body.blbm-page-owned :is(.blbm-account-hero, .blbm-knowledge-hero, .blbm-directory-hero, .blbm-info-hero) {
    border-color: rgba(35, 173, 108, .28) !important;
    background:
        radial-gradient(circle at 76% 18%, rgba(35, 173, 108, .18), transparent 32%),
        linear-gradient(135deg, rgba(3, 8, 5, .99), rgba(7, 18, 12, .98) 58%, rgba(2, 5, 3, .99)) !important;
    box-shadow: 0 28px 88px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 255, 255, .025) inset !important;
}

body.blbm-page-owned :is(.blbm-account-section, .blbm-collection-card, .blbm-knowledge-grid article > a, .blbm-info-body article, .blbm-faq, .blbm-directory-card, .blbm-directory-empty) {
    border-style: solid !important;
    border-color: rgba(35, 173, 108, .25) !important;
    background: var(--blbm-card-bg-modern) !important;
    box-shadow: 0 18px 56px rgba(0, 0, 0, .20), 0 0 0 1px rgba(255, 255, 255, .018) inset !important;
}

body.blbm-page-owned :is(.blbm-account-section, .blbm-collection-card, .blbm-knowledge-grid article > a, .blbm-info-body article, .blbm-faq, .blbm-directory-card) {
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease !important;
}

body.blbm-page-owned :is(.blbm-account-section, .blbm-collection-card, .blbm-knowledge-grid article > a, .blbm-info-body article, .blbm-faq, .blbm-directory-card):hover {
    border-color: rgba(35, 173, 108, .58) !important;
    box-shadow: var(--blbm-card-hover-shadow) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(35, 173, 108, .075), transparent 38%),
        var(--blbm-card-bg-modern) !important;
}

/* Keep existing collection badge artwork glow colors while preserving borders. */
body.blbm-page-owned .blbm-collection-card:hover {
    border-color: color-mix(in srgb, var(--blbm-ring, #23ad6c) 56%, rgba(255,255,255,.10)) !important;
    box-shadow:
        0 24px 72px rgba(0, 0, 0, .36),
        0 0 0 1px color-mix(in srgb, var(--blbm-ring, #23ad6c) 20%, transparent) inset,
        0 0 34px color-mix(in srgb, var(--blbm-glow, rgba(35,173,108,.30)) 42%, transparent) !important;
}

/* The large My Badges hero should feel designed, not template-like. */
body.blbm-page-my-badges .blbm-account-hero {
    min-height: clamp(300px, 34vw, 420px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
body.blbm-page-my-badges .blbm-account-hero .blbm-badge-row {
    margin-top: 26px !important;
}

/* Keep desktop grids clean inside the wider container. */
@media (min-width: 981px) {
    body.blbm-page-owned .blbm-collection-grid,
    body.blbm-page-owned .blbm-knowledge-grid,
    body.blbm-page-owned .blbm-directory-grid {
        gap: 22px !important;
    }
    body.blbm-page-owned .blbm-collection-card {
        min-height: 430px !important;
    }
}

@media (max-width: 980px) {
    body.blbm-page-owned {
        --blbm-page-gutter: 20px;
    }
    body.blbm-page-owned :is(.blbm-account-hero h1, .blbm-knowledge-hero h1, .blbm-info-hero h1, .blbm-directory-hero h1, .blbm-unlock h1, .blbm-nomination h1) {
        font-size: clamp(36px, 8vw, 56px) !important;
    }
}

@media (max-width: 640px) {
    body.blbm-page-owned {
        --blbm-page-gutter: 14px;
    }
    body.blbm-page-owned :is(.blbm-account, .blbm-knowledge, .blbm-info, .blbm-directory, .blbm-unlock, .blbm-nomination) {
        width: calc(100vw - 28px) !important;
        padding-top: 18px !important;
        padding-bottom: 52px !important;
    }
    body.blbm-page-owned :is(.blbm-account-hero, .blbm-knowledge-hero, .blbm-directory-hero, .blbm-info-hero) {
        padding: 28px 22px !important;
        border-radius: 22px !important;
    }
    body.blbm-page-owned :is(.blbm-account-hero h1, .blbm-knowledge-hero h1, .blbm-info-hero h1, .blbm-directory-hero h1, .blbm-unlock h1, .blbm-nomination h1) {
        font-size: clamp(34px, 12vw, 46px) !important;
        letter-spacing: -.018em !important;
    }
    body.blbm-page-owned :is(.blbm-account-section h2, .blbm-info-body h2, .blbm-faq h2) {
        font-size: clamp(25px, 9vw, 34px) !important;
    }
}


/* v1.7.9 — focused client correction for Badge Manager pages.
 * Scope: design/link-page repair only. No badge ownership, award/revoke,
 * notification, My Path, privacy, or membership behavior is changed.
 */
body.blbm-page-owned {
    --blbm-action-pad-y: 8px;
    --blbm-action-pad-x: 13px;
    --blbm-action-radius: 12px;
}

/* Keep Badge Manager page titles in the site's rhythm, not oversized template scale. */
body.blbm-page-owned :is(.entry-header .entry-title, .page-header .entry-title, .page-header .page-title) {
    font-size: clamp(26px, 2.45vw, 36px) !important;
    line-height: 1.08 !important;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
}

body.blbm-page-owned :is(.blbm-account-hero h1, .blbm-knowledge-hero h1, .blbm-info-hero h1, .blbm-directory-hero h1, .blbm-unlock h1, .blbm-nomination h1) {
    font-size: clamp(34px, 4.35vw, 58px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.02em !important;
}

body.blbm-page-owned :is(.blbm-account-section h2, .blbm-info-body h2, .blbm-faq h2, .blbm-directory-empty h2) {
    font-size: clamp(24px, 2.85vw, 34px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.01em !important;
}

body.blbm-page-owned :is(.blbm-collection-copy h3, .blbm-knowledge-grid h2, .blbm-directory-copy h2) {
    font-size: clamp(22px, 2vw, 28px) !important;
    line-height: 1.16 !important;
}

body.blbm-page-owned .blbm-detail-dialog-content h2 {
    font-size: clamp(32px, 4vw, 44px) !important;
    line-height: 1.04 !important;
}

/* Official badge action links/buttons: no Hello Elementor pink, enough side padding, compact modern hover. */
body.blbm-page-owned .blbm-collection-card footer {
    gap: 10px !important;
}

body.blbm-page-owned .blbm-collection-card :is(button, a, .blbm-detail-open),
body.blbm-page-owned .blbm-info-footer a,
body.blbm-page-owned .blbm-knowledge-grid article > a b,
body.blbm-page-owned .blbm-unlock section > div:last-child a {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: var(--blbm-action-pad-y) var(--blbm-action-pad-x) !important;
    border: 1px solid transparent !important;
    border-radius: var(--blbm-action-radius) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--blbm-ring, var(--blbm-green, #23ad6c)) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

body.blbm-page-owned .blbm-collection-card :is(button, a, .blbm-detail-open):is(:hover, :focus, :focus-visible, :active),
body.blbm-page-owned .blbm-info-footer a:is(:hover, :focus, :focus-visible, :active),
body.blbm-page-owned .blbm-knowledge-grid article > a:is(:hover, :focus, :focus-visible, :active) b,
body.blbm-page-owned .blbm-unlock section > div:last-child a:is(:hover, :focus, :focus-visible, :active) {
    background: color-mix(in srgb, var(--blbm-ring, #23ad6c) 16%, transparent) !important;
    background-color: color-mix(in srgb, var(--blbm-ring, #23ad6c) 16%, transparent) !important;
    border-color: color-mix(in srgb, var(--blbm-ring, #23ad6c) 62%, transparent) !important;
    color: var(--blbm-ring, #23ad6c) !important;
    box-shadow:
        0 10px 24px color-mix(in srgb, var(--blbm-glow, rgba(35,173,108,.28)) 44%, transparent),
        0 0 0 1px color-mix(in srgb, var(--blbm-ring, #23ad6c) 12%, transparent) inset !important;
    transform: none !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Strongly neutralize Hello/ElementsKit pink button states inside Badge Manager pages. */
body.blbm-page-owned :is(button, .button, a, [role="button"]):is(:hover, :focus, :active, .active, .is-active) {
    --e-global-color-primary: #23ad6c !important;
    --e-global-color-accent: #23ad6c !important;
    --e-a-btn-bg-hover: rgba(35, 173, 108, .16) !important;
    accent-color: #23ad6c !important;
}

body.blbm-page-owned .blbm-collection-card :is(button, a, .blbm-detail-open)::before,
body.blbm-page-owned .blbm-collection-card :is(button, a, .blbm-detail-open)::after {
    background-color: currentColor !important;
    border-radius: inherit !important;
}

/* Modal close icon: visible, centered, no off-center X, no pink/dark hidden hover. */
body.blbm-page-owned .blbm-detail-dialog > [data-blbm-dialog-close] {
    position: sticky !important;
    top: 12px !important;
    float: right !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(35, 173, 108, .50) !important;
    background: rgba(3, 12, 7, .96) !important;
    color: #effff4 !important;
    font: 400 24px/1 Arial, Helvetica, sans-serif !important;
    text-align: center !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 18px rgba(35,173,108,.14) !important;
}

body.blbm-page-owned .blbm-detail-dialog > [data-blbm-dialog-close]:is(:hover, :focus, :focus-visible, :active) {
    background: rgba(35, 173, 108, .18) !important;
    color: #ffffff !important;
    border-color: rgba(35, 173, 108, .85) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.42), 0 0 24px rgba(35,173,108,.24) !important;
    transform: none !important;
}

/* Badge info page: keep the two-column cards premium but reduce the oversized typography. */
body.blbm-page-badge-info .blbm-info-body article,
body.blbm-page-badge-info .blbm-faq {
    padding: clamp(24px, 3vw, 32px) !important;
}

body.blbm-page-badge-info .blbm-info-body article p,
body.blbm-page-badge-info .blbm-info-body article li,
body.blbm-page-badge-info .blbm-faq details p {
    font-size: clamp(14px, .95vw, 16px) !important;
    line-height: 1.68 !important;
}

@media (max-width: 760px) {
    body.blbm-page-owned .blbm-collection-card footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    body.blbm-page-owned .blbm-collection-card :is(button, a, .blbm-detail-open) {
        width: 100% !important;
    }
    body.blbm-page-owned :is(.blbm-account-hero h1, .blbm-knowledge-hero h1, .blbm-info-hero h1, .blbm-directory-hero h1, .blbm-unlock h1, .blbm-nomination h1) {
        font-size: clamp(32px, 10vw, 44px) !important;
    }
    body.blbm-page-owned :is(.blbm-account-section h2, .blbm-info-body h2, .blbm-faq h2) {
        font-size: clamp(24px, 8vw, 32px) !important;
    }
}
