.mphb {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    padding: 1.4rem 1.4rem;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 10%, white),
        color-mix(in srgb, var(--bs-secondary) 6%, white) 55%,
        #ffffff
    );
    border: 1px solid color-mix(in srgb, var(--bs-secondary) 16%, white);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    isolation: isolate;
}

.mphb--card {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: auto;
}

.mphb--compact {
    padding: 1rem 1.15rem;
}

.mphb__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mphb--card .mphb__content {
    align-items: flex-start;
    gap: 0.9rem;
}

.mphb__left {
    min-width: 0;
    flex: 1 1 auto;
}

.mphb__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.mphb--card .mphb__right {
    margin-left: auto;
    gap: 0.6rem;
}

.mphb__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.7rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, white);
    border: 1px solid color-mix(in srgb, var(--bs-primary) 18%, white);
    backdrop-filter: blur(6px);
}

.mphb--card .mphb__badge {
    min-height: 24px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
}

.mphb__title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.15;
    font-weight: 800;
    color: #1f2a3d;
    letter-spacing: -0.02em;
}

.mphb--card .mphb__title {
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.mphb__subtitle {
    margin: 0.55rem 0 0;
    max-width: 760px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5f6b7a;
}

.mphb--card .mphb__subtitle {
    margin-top: 0.28rem;
    max-width: none;
    font-size: 0.84rem;
    line-height: 1.55;
}

.mphb__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.mphb--card .mphb__meta {
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.mphb__meta-item {
    min-width: 128px;
    padding: 0.78rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mphb--card .mphb__meta-item {
    min-width: 112px;
    padding: 0.65rem 0.78rem;
    box-shadow: none;
}

.mphb__meta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7c8797;
}

.mphb__meta-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 800;
    color: #1f2a3d;
    word-break: break-word;
}

.mphb__graphics {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.mphb--no-graphics .mphb__graphics {
    display: none;
}

.mphb__orb,
.mphb__ring,
.mphb__grid {
    position: absolute;
}

.mphb__orb {
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.9;
}

.mphb__orb--one {
    top: -40px;
    right: 8%;
    width: 180px;
    height: 180px;
    background: color-mix(in srgb, var(--bs-primary) 20%, white);
}

.mphb__orb--two {
    bottom: -55px;
    left: 18%;
    width: 140px;
    height: 140px;
    background: color-mix(in srgb, var(--bs-secondary) 18%, white);
}

.mphb__ring {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mphb__ring--one {
    top: 18px;
    right: 24px;
    width: 180px;
    height: 180px;
    opacity: 0.35;
}

.mphb__ring--two {
    bottom: -35px;
    right: 120px;
    width: 120px;
    height: 120px;
    opacity: 0.22;
}

.mphb__grid {
    top: 0;
    right: 0;
    width: 38%;
    height: 100%;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
}

.mphb--graphic-02 .mphb__grid {
    width: 45%;
    opacity: 0.12;
    transform: skewX(-14deg);
}

.mphb--graphic-02 .mphb__orb--one {
    width: 220px;
    height: 220px;
    right: -10px;
    top: -50px;
}

.mphb--graphic-02 .mphb__orb--two {
    width: 110px;
    height: 110px;
    left: auto;
    right: 25%;
    bottom: -20px;
}

.mphb--graphic-03 .mphb__grid {
    display: none;
}

.mphb--graphic-03 .mphb__ring--one {
    width: 220px;
    height: 220px;
    top: -30px;
    right: 40px;
    opacity: 0.22;
}

.mphb--graphic-03 .mphb__ring--two {
    width: 160px;
    height: 160px;
    bottom: -55px;
    right: 10px;
    opacity: 0.18;
}

.mphb--graphic-03 .mphb__orb--one {
    width: 210px;
    height: 210px;
    right: 0;
    top: -70px;
}

.mphb--graphic-03 .mphb__orb--two {
    width: 95px;
    height: 95px;
    left: 10%;
    bottom: -20px;
}

@media (max-width: 767.98px) {
    .mphb {
        padding: 1.05rem 1rem;
    }

    .mphb__right {
        width: 100%;
        justify-content: flex-start;
    }

    .mphb--card .mphb__right {
        margin-left: 0;
    }

    .mphb__title {
        font-size: 1.25rem;
    }

    .mphb__subtitle {
        font-size: 0.86rem;
    }

    .mphb__meta {
        width: 100%;
    }

    .mphb__meta-item {
        flex: 1 1 140px;
        min-width: 0;
    }

    .mphb__grid {
        width: 55%;
    }
}
[data-bs-theme="dark"] .mphb {
    background:
        radial-gradient(
            circle at top left,
            rgba(14, 165, 233, 0.08),
            transparent 28%
        ),
        linear-gradient(135deg, #16202f 0%, #1b2433 45%, #202a3a 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

[data-bs-theme="dark"] .mphb--card {
    background: transparent;
    border-color: transparent;
}

[data-bs-theme="dark"] .mphb__title {
    color: #f8fafc;
}

[data-bs-theme="dark"] .mphb__subtitle {
    color: #b8c3d1;
}

[data-bs-theme="dark"] .mphb__meta-item {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(11, 18, 32, 0.38);
    box-shadow: none;
}

[data-bs-theme="dark"] .mphb__meta-label {
    color: #8ea0bc;
}

[data-bs-theme="dark"] .mphb__meta-value {
    color: #f8fafc;
}

[data-bs-theme="dark"] .mphb__badge {
    color: #ffffff;
    background: color-mix(in srgb, var(--bs-primary) 22%, #16202f);
    border-color: color-mix(in srgb, var(--bs-primary) 30%, #16202f);
}

[data-bs-theme="dark"] .mphb__grid {
    opacity: 0.05;
}

[data-bs-theme="dark"] .mphb__orb {
    filter: blur(18px);
    opacity: 0.22;
}

[data-bs-theme="dark"] .mphb__orb--one {
    background: color-mix(in srgb, var(--bs-primary) 26%, transparent);
}

[data-bs-theme="dark"] .mphb__orb--two {
    background: color-mix(in srgb, var(--bs-secondary) 18%, transparent);
}

[data-bs-theme="dark"] .mphb__ring {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

[data-bs-theme="dark"] .mphb__panel {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.015)
    );
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    opacity: 0.6;
}

[data-bs-theme="dark"] .mphb__dots {
    opacity: 0.08;
}

[data-bs-theme="dark"] .mphb__ribbon {
    opacity: 0.08;
    filter: blur(6px);
}
