.mpf-shell {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: clamp(1rem, 2vw, 2rem);
    color: #eef2ff;
    background:
        radial-gradient(circle at 15% 10%, rgba(139, 92, 246, .24), transparent 36%),
        radial-gradient(circle at 82% 0%, rgba(34, 211, 238, .16), transparent 32%),
        linear-gradient(135deg, rgba(10, 15, 30, .98), rgba(14, 12, 24, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.mpf-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.mpf-shell > *:not(.mpf-grid-bg) {
    position: relative;
    z-index: 1;
}

.mpf-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
    margin-bottom: 1rem;
}

.mpf-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: .75rem;
    padding: .35rem .65rem;
    color: #c4b5fd;
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(196, 181, 253, .22);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.mpf-hero h2 {
    margin: 0;
    max-width: 880px;
    font-size: clamp(2rem, 4.3vw, 4.8rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.mpf-hero p {
    margin: 1rem 0 0;
    max-width: 780px;
    color: #cbd5e1;
    font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.mpf-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.15rem;
}

.mpf-hero__chips span,
.mpf-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .7rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #dbeafe;
    font-size: .84rem;
    font-weight: 700;
}

.mpf-hero__truth,
.mpf-card {
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 24px;
    background: rgba(15, 23, 42, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 45px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
}

.mpf-hero__truth {
    padding: 1.25rem;
    align-self: end;
}

.mpf-hero__truth strong {
    display: block;
    color: #fde68a;
    margin-bottom: .35rem;
}

.mpf-hero__truth p {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: #cbd5e1;
}

.mpf-hero__truth a {
    color: #67e8f9;
    font-weight: 800;
    text-decoration: none;
}

.mpf-form {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.mpf-form__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}


.mpf-form__row--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mpf-model-row {
    margin-top: 1rem;
}

.mpf-model-field {
    max-width: 520px;
}

.mpf-lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    margin-inline-start: .4rem;
    padding: .12rem .4rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, .18);
    color: #fde68a;
    font-size: .72rem;
    font-weight: 900;
    vertical-align: middle;
}

.mpf-model-field select:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.mpf-field label,
.mpf-fields-box legend {
    display: block;
    margin-bottom: .45rem;
    color: #f8fafc;
    font-weight: 800;
}

.mpf-field small,
.mpf-fields-box p {
    display: block;
    margin: .45rem 0 0;
    color: #94a3b8;
    font-size: .88rem;
}

.mpf-field textarea,
.mpf-field select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 16px;
    padding: .9rem 1rem;
    color: #f8fafc;
    background: rgba(2, 6, 23, .58);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.mpf-field textarea:focus,
.mpf-field select:focus {
    border-color: rgba(103, 232, 249, .65);
    box-shadow: 0 0 0 4px rgba(103, 232, 249, .12);
    background: rgba(2, 6, 23, .78);
}

.mpf-fields-box {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem .9rem;
    margin: 1.2rem 0 0;
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: 18px;
}

.mpf-fields-box legend {
    padding: 0 .5rem;
}

.mpf-fields-box label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    cursor: pointer;
}

.mpf-vip-check b,
.mpf-vip-badge {
    padding: .14rem .4rem;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #fb923c);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
}

.mpf-fields-box p {
    flex: 1 1 100%;
}

.mpf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.2rem;
}

.mpf-btn {
    border: 0;
    border-radius: 16px;
    padding: .82rem 1.15rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.mpf-btn:disabled {
    cursor: wait;
    opacity: .65;
}

.mpf-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.mpf-btn--primary {
    color: #06121f;
    background: linear-gradient(135deg, #67e8f9, #a78bfa);
    box-shadow: 0 16px 36px rgba(103, 232, 249, .18);
}

.mpf-btn--ghost {
    color: #e2e8f0;
    background: rgba(148, 163, 184, .14);
    border: 1px solid rgba(148, 163, 184, .22);
}

.mpf-status,
.mpf-variants,
.mpf-results {
    margin-top: 1rem;
}

.mpf-status {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, .76);
    border: 1px solid rgba(148, 163, 184, .18);
    color: #cbd5e1;
}

.mpf-status strong {
    color: #fff;
}

.mpf-status ul {
    margin: .6rem 0 0 1rem;
    padding: 0;
}

.mpf-variants {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.mpf-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mpf-result {
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 22px;
    background: rgba(15, 23, 42, .74);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 40px rgba(0,0,0,.18);
}

.mpf-result__head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .75rem;
}

.mpf-result__head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.mpf-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .8rem;
}

.mpf-result__meta span {
    padding: .28rem .5rem;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #cbd5e1;
    font-size: .78rem;
    font-weight: 700;
}

.mpf-result__body {
    display: grid;
    gap: .65rem;
    color: #cbd5e1;
}

.mpf-kv {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: .75rem;
}

.mpf-kv b {
    color: #94a3b8;
}

.mpf-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem;
}

.mpf-actions-inline a,
.mpf-actions-inline button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: .5rem .7rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .2);
    color: #e0f2fe;
    background: rgba(8, 47, 73, .42);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.mpf-frame-lock {
    margin-top: .85rem;
    padding: .75rem;
    border-radius: 16px;
    border: 1px solid rgba(250, 204, 21, .26);
    background: rgba(113, 63, 18, .22);
    color: #fde68a;
}

.mpf-empty,
.mpf-skeleton {
    grid-column: 1 / -1;
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 23, 42, .74);
    color: #cbd5e1;
}

.mpf-skeleton__bar {
    height: 14px;
    margin: .55rem 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148,163,184,.13), rgba(148,163,184,.3), rgba(148,163,184,.13));
    animation: mpfPulse 1.25s infinite linear;
}

.mpf-skeleton__bar:nth-child(2) { width: 70%; }
.mpf-skeleton__bar:nth-child(3) { width: 48%; }

@keyframes mpfPulse {
    0% { opacity: .45; }
    50% { opacity: 1; }
    100% { opacity: .45; }
}

[dir="rtl"] .mpf-status ul {
    margin: .6rem 1rem 0 0;
}

[dir="rtl"] .mpf-kv {
    direction: rtl;
}

[dir="rtl"] .mpf-kv span,
[dir="rtl"] .mpf-result__meta,
[dir="rtl"] .mpf-actions-inline {
    direction: ltr;
    unicode-bidi: plaintext;
}

@media (max-width: 980px) {
    .mpf-hero,
    .mpf-results,
    .mpf-form__row,
    .mpf-form__row--four {
        grid-template-columns: 1fr;
    }

    .mpf-kv {
        grid-template-columns: 1fr;
        gap: .2rem;
    }
}

@media (max-width: 640px) {
    .mpf-shell {
        border-radius: 20px;
        padding: .85rem;
    }

    .mpf-hero h2 {
        font-size: 2.3rem;
    }

    .mpf-actions,
    .mpf-actions-inline {
        flex-direction: column;
    }

    .mpf-btn,
    .mpf-actions-inline a,
    .mpf-actions-inline button {
        width: 100%;
    }
}

.mpf-media-panel {
    position: relative;
    margin-top: 1.4rem;
    padding: 1.1rem;
    border: 1px solid rgba(103, 232, 249, .18);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(8, 47, 73, .54), rgba(15, 23, 42, .78));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 48px rgba(0,0,0,.18);
}

.mpf-media-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .95rem;
}

.mpf-media-panel__head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
}

.mpf-media-panel__head p {
    margin: .25rem 0 0;
    color: #94a3b8;
}

.mpf-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.mpf-media-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 20px;
    background: rgba(2, 6, 23, .52);
}

.mpf-media-card__preview {
    display: flex;
    min-height: 138px;
    color: inherit;
    text-decoration: none;
    background: radial-gradient(circle at 30% 20%, rgba(103, 232, 249, .18), rgba(15, 23, 42, .74) 55%);
}

.mpf-media-card__preview img {
    width: 100%;
    height: 138px;
    object-fit: cover;
}

.mpf-media-card__placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: .45rem;
    padding: .9rem;
    text-align: center;
    color: #bae6fd;
    font-weight: 800;
}

.mpf-media-card__placeholder span {
    max-width: 220px;
    color: #94a3b8;
    font-size: .82rem;
    font-weight: 700;
}

.mpf-media-card__body {
    display: grid;
    gap: .55rem;
    padding: .9rem;
}

.mpf-media-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
}

.mpf-media-card__top h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
}

.mpf-media-card__top span {
    white-space: nowrap;
    padding: .22rem .45rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    color: #bbf7d0;
    font-size: .72rem;
    font-weight: 800;
}

.mpf-media-card__body p {
    margin: 0;
    color: #cbd5e1;
    font-size: .86rem;
}

.mpf-media-query {
    direction: ltr;
    unicode-bidi: plaintext;
}

.mpf-media-open {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    margin-top: .2rem;
    padding: .48rem .7rem;
    border-radius: 12px;
    background: rgba(14, 165, 233, .2);
    color: #e0f2fe;
    text-decoration: none;
    font-weight: 900;
}

[dir="rtl"] .mpf-media-card__body p,
[dir="rtl"] .mpf-media-card__top,
[dir="rtl"] .mpf-media-panel__head {
    direction: rtl;
}

[dir="rtl"] .mpf-media-query {
    direction: ltr;
    text-align: left;
}

@media (max-width: 980px) {
    .mpf-media-grid {
        grid-template-columns: 1fr;
    }
}

.mpf-ltr {
    direction: ltr;
    unicode-bidi: plaintext;
}
