/* DopaBrain Shared Blog & Tool Monetization Components
 * Guaranteed 0px horizontal overflow at 390px and >=44px touch targets.
 */
.curated-resources-card {
    max-width: 760px;
    width: 100%;
    margin: 28px auto;
    padding: 22px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(167, 139, 250, 0.32);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    overflow: hidden;
}

.curated-resources-card * {
    box-sizing: border-box;
}

.curated-header {
    margin-bottom: 16px;
}

.curated-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.38);
    color: #ddd6fe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.curated-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc;
}

.curated-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.curated-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 76px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    text-decoration: none;
    touch-action: manipulation;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.curated-item:hover,
.curated-item:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.65);
    background: rgba(124, 58, 237, 0.18);
    text-decoration: none;
    outline: none;
}

.curated-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.45);
}

.curated-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(167, 139, 250, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.curated-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.curated-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc;
    word-break: break-word;
}

.curated-info span {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    color: #cbd5e1;
    word-break: break-word;
}

.curated-ext-pill {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.2);
    color: #ede9fe;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.curated-disclosure {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #94a3b8;
}

/* Scroll-Revealed Bottom Revenue Sticky CTA */
.revenue-sticky-cta-wrap {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: 736px;
    margin: 0 auto;
    z-index: 950;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(167, 139, 250, 0.45);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(130%);
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.revenue-sticky-cta-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.revenue-sticky-cta-wrap.is-dismissed {
    display: none;
}

.revenue-sticky-cta-wrap .revenue-sticky-cta {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(56, 189, 248, 0.14));
    color: #f8fafc;
    text-decoration: none;
    touch-action: manipulation;
    transition: background 0.2s ease, transform 0.2s ease;
}

.revenue-sticky-cta-wrap .revenue-sticky-cta:hover,
.revenue-sticky-cta-wrap .revenue-sticky-cta:focus-visible {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(56, 189, 248, 0.22));
    text-decoration: none;
    outline: none;
}

.revenue-sticky-cta-wrap .revenue-sticky-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.revenue-sticky-cta-wrap .revenue-sticky-copy strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.revenue-sticky-cta-wrap .revenue-sticky-copy span {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.revenue-sticky-cta-wrap .sticky-cta-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.revenue-sticky-dismiss {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    transition: background 0.2s ease, color 0.2s ease;
}

.revenue-sticky-dismiss:hover,
.revenue-sticky-dismiss:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    outline: none;
}

body.has-bm-sticky {
    padding-bottom: 92px;
}

@media (max-width: 640px) {
    .curated-resources-card {
        padding: 18px 14px;
        margin: 22px auto;
    }

    .curated-grid {
        grid-template-columns: 1fr;
    }

    .curated-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .curated-ext-pill {
        margin-left: 48px;
    }

    .revenue-sticky-cta-wrap {
        left: 8px;
        right: 8px;
        padding: 6px;
        gap: 6px;
    }

    .revenue-sticky-cta-wrap .revenue-sticky-cta {
        padding: 8px 10px;
        gap: 8px;
    }

    .revenue-sticky-cta-wrap .revenue-sticky-copy strong {
        font-size: 13px;
    }

    .revenue-sticky-cta-wrap .revenue-sticky-copy span {
        display: none;
    }

    .revenue-sticky-cta-wrap .sticky-cta-action {
        padding: 7px 11px;
        font-size: 12px;
    }
}


/* 60-Second Interactive Self-Check Mini-Widget */
.bm-quick-check {
    max-width: 760px;
    width: 100%;
    margin: 26px auto;
    padding: 22px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(15, 23, 42, 0.9));
    border: 1.5px solid rgba(129, 140, 248, 0.38);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    overflow: hidden;
}

.bm-quick-check * {
    box-sizing: border-box;
}

.bm-qc-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.42);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.bm-qc-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc;
}

.bm-qc-sub {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
}

.bm-qc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.bm-qc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 44px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    font: inherit;
    font-size: 14.5px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bm-qc-item:hover,
.bm-qc-item:focus-visible {
    border-color: rgba(129, 140, 248, 0.65);
    background: rgba(99, 102, 241, 0.12);
    outline: none;
}

.bm-qc-item.is-checked {
    border-color: rgba(167, 139, 250, 0.85);
    background: rgba(124, 58, 237, 0.2);
}

.bm-qc-box {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(167, 139, 250, 0.55);
    background: rgba(15, 23, 42, 0.85);
    color: transparent;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.bm-qc-item.is-checked .bm-qc-box {
    background: #8b5cf6;
    border-color: #a78bfa;
    color: #ffffff;
}

.bm-qc-item span {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.bm-qc-result {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(167, 139, 250, 0.28);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-qc-meter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #c4b5fd;
}

.bm-qc-verdict {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
}

.bm-qc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 11px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    touch-action: manipulation;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bm-qc-cta:hover,
.bm-qc-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
    text-decoration: none;
    outline: none;
}

.bm-qc-note {
    margin: 10px 0 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .bm-quick-check {
        padding: 18px 14px;
        margin: 20px auto;
    }

    .bm-qc-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Interactive Wellness Tool Bridge Card (100+ CBT / RSD / Attachment blog funnels) */
.bm-tool-bridge {
    max-width: 760px;
    width: 100%;
    margin: 24px auto;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(52, 211, 153, 0.34);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-sizing: border-box;
    overflow: hidden;
}
.bm-tool-bridge-copy {
    flex: 1 1 260px;
    min-width: 0;
}
.bm-tool-bridge-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 6px;
}
.bm-tool-bridge-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #f8fafc;
}
.bm-tool-bridge-copy p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #cbd5e1;
}
.bm-tool-bridge-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 44px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #042f2e !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    touch-action: manipulation;
    white-space: nowrap;
    flex-shrink: 0;
}
.bm-tool-bridge-cta:hover,
.bm-tool-bridge-cta:focus-visible {
    filter: brightness(1.08);
    text-decoration: none !important;
}
@media (max-width: 600px) {
    .bm-tool-bridge-cta {
        width: 100%;
    }
}

/* Early-Scroll Mid-Article Interactive Tool Companion Strip (PV/Session Lift) */
.bm-mid-jump {
    margin: 24px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.11));
    border: 1px solid rgba(52, 211, 153, 0.34);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}
.bm-mid-jump-copy {
    flex: 1 1 220px;
    min-width: 0;
}
.bm-mid-jump-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 3px;
}
.bm-mid-jump-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: #f8fafc;
    word-break: break-word;
}
.bm-mid-jump-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.bm-mid-jump-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #042f2e !important;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none !important;
    touch-action: manipulation;
    white-space: nowrap;
}
.bm-mid-jump-lab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    touch-action: manipulation;
    white-space: nowrap;
}
.bm-mid-jump-cta:hover,
.bm-mid-jump-lab:hover {
    filter: brightness(1.08);
    text-decoration: none !important;
}
@media (max-width: 540px) {
    .bm-mid-jump-actions {
        width: 100%;
    }
    .bm-mid-jump-cta,
    .bm-mid-jump-lab {
        flex: 1 1 auto;
    }
}
