.mmff-card {
    --mmff-bg: #14171c;
    --mmff-bg-soft: #1a1e24;
    --mmff-border: rgba(255,255,255,.10);
    --mmff-text: #f5f7fa;
    --mmff-muted: #aeb6c2;
    --mmff-blue: #1877f2;
    --mmff-blue-hover: #2b83f6;
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--mmff-border);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mmff-bg-soft), var(--mmff-bg));
    box-shadow: 0 14px 38px rgba(0,0,0,.20);
    color: var(--mmff-text);
    margin: 28px auto;
}

.mmff-card *, .mmff-card *::before, .mmff-card *::after { box-sizing: border-box; }

.mmff-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0;
    background-position: center;
    background-size: cover;
}

.mmff-has-cover .mmff-cover {
    opacity: .34;
    background-image: var(--mmff-cover);
}

.mmff-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(12,14,18,.94) 0%, rgba(12,14,18,.87) 48%, rgba(12,14,18,.72) 100%);
}

.mmff-inner {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 150px;
    padding: 22px 24px;
}

.mmff-avatar {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0d0f13;
    border: 3px solid rgba(255,255,255,.92);
    box-shadow: 0 7px 20px rgba(0,0,0,.35);
}

.mmff-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmff-avatar-fallback { font-size: 28px; font-weight: 900; letter-spacing: -.04em; }

.mmff-copy { min-width: 0; }
.mmff-eyebrow {
    margin: 0 0 4px;
    color: #cbd2db;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.mmff-name-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mmff-page-name {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--mmff-text) !important;
    font: inherit;
    font-size: clamp(22px, 2vw, 30px) !important;
    line-height: 1.05 !important;
    font-weight: 850 !important;
    letter-spacing: -.03em;
}

.mmff-platform, .mmff-button-f {
    display: inline-grid;
    place-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    text-transform: lowercase;
}
.mmff-platform {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mmff-blue);
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.mmff-copy p {
    max-width: 720px;
    margin: 7px 0 0 !important;
    color: var(--mmff-muted) !important;
    font-size: 14px;
    line-height: 1.45;
}

.mmff-action { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 200px; }
.mmff-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    background: var(--mmff-blue);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(24,119,242,.25);
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.mmff-button:hover, .mmff-button:focus-visible {
    background: var(--mmff-blue-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(24,119,242,.34);
}
.mmff-button:focus-visible { outline: 3px solid rgba(255,255,255,.35); outline-offset: 3px; }
.mmff-button-f { width: 19px; height: 19px; font-size: 18px; }
.mmff-button svg { flex: 0 0 auto; }
.mmff-note { color: #9ca6b3; font-size: 11px; line-height: 1.2; }

.mmff-page-dim::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0,0,0,.36);
    pointer-events: none;
    animation: mmffFade .16s ease both;
}
@keyframes mmffFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
    .mmff-card { border-radius: 15px; margin: 22px auto; }
    .mmff-card::after { background: linear-gradient(180deg, rgba(12,14,18,.78), rgba(12,14,18,.95)); }
    .mmff-inner {
        grid-template-columns: 64px minmax(0,1fr);
        gap: 14px;
        min-height: 0;
        padding: 18px;
    }
    .mmff-avatar { width: 64px; height: 64px; }
    .mmff-page-name { font-size: 22px !important; }
    .mmff-copy p { font-size: 13px; }
    .mmff-action {
        grid-column: 1 / -1;
        width: 100%;
        align-items: stretch;
        min-width: 0;
    }
    .mmff-button { width: 100%; }
    .mmff-note { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .mmff-button { transition: none; }
    .mmff-page-dim::before { animation: none; }
}
