﻿/* ===========================================
   ForgeTicket Wizard – Background wrapper tuning
   + Skin B (Carbon Fiber Glass)
   + Patch: lighter top-level step card
   =========================================== */

/* 1) Atenuar mf-section-lines-A violet SOLO en ForgeTicket wizard */
.mf-page-section.mf-section-lines-A.violet .mf-ft-wizard {
    position: relative;
}

/* If your section uses ::before/::after lines, reduce their impact */
.mf-page-section.mf-section-lines-A.violet::before,
.mf-page-section.mf-section-lines-A.violet::after {
    opacity: .25;
}

/* 2) Apply “Skin B” look to the main wizard step card */
.mf-ft-stepcard {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18)), radial-gradient(600px 320px at 30% 0%, rgba(255,255,255,.05), transparent 60%);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 22px 60px rgba(0,0,0,.70);
}

/* Header a bit more “panel” */
.mf-ft-head {
    background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
    border-bottom: 1px solid rgba(255,255,255,.10);
}

/* 3) Patch: make the BIG wrapper feel lighter (no heavy card-on-card feeling)
   We keep the stepcard itself premium, but we remove extra heavy surfaces inside when applicable. */
.mf-ft-stepcard-body {
    background: transparent;
}

/* 4) Optional: reinforce readability under violet lines */
.mf-ft-stepcard,
.mf-ft-head {
    backdrop-filter: blur(10px);
}

/* 5) Make internal blocks feel like a continuous grid */
.mf-ft-stepcard-body > * {
    position: relative;
}

/* 6) Mini cards / side blocks if you already have them in wizard */
.mf-ft-sidecard,
.mf-ft-summary-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18)), radial-gradient(360px 220px at 20% 10%, rgba(255,255,255,.06), transparent 60%);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 44px rgba(0,0,0,.60);
}

/* Accessibility / reduced motion stays respectful */
@media (prefers-reduced-motion: reduce) {
    .mf-ft-stepcard {
        transition: none;
    }
}
/* ===========================================
   Step 1 – unify header + form into one grid
   =========================================== */

.mf-ft-stepcard {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    border-radius: 22px;
    overflow: hidden;
}

    /* Header integrado, no flotante */
    .mf-ft-stepcard > .mf-ft-head {
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

/* Body continuo */
.mf-ft-stepcard-body {
    padding: 28px 24px;
}

/* Evitar “card dentro de card” pesado */
.mf-ft-form {
    background: transparent;
    box-shadow: none;
    border: none;
}
/* ===========================
   ForgeTicket Stepper (Shared)
   =========================== */

.mf-ft-stepper-wrap {
    display: flex;
    justify-content: flex-end;
}

.mf-ft-stepper {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-ft-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    opacity: .72;
    transition: opacity .15s ease;
}

    .mf-ft-step.is-active {
        opacity: 1;
    }

.mf-ft-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 16px rgba(28,141,255,.10);
    font-size: 12px;
    font-weight: 900;
    color: rgba(255,255,255,.92);
}

.mf-ft-step.is-active .mf-ft-dot {
    border-color: rgba(28,141,255,.38);
    background: rgba(28,141,255,.14);
    box-shadow: 0 0 22px rgba(28,141,255,.18);
}

.mf-ft-label {
    font-size: 12px;
    letter-spacing: .03em;
    font-weight: 850;
    color: rgba(255,255,255,.80);
    text-transform: uppercase;
    white-space: nowrap;
}

.mf-ft-line {
    height: 2px;
    width: 60px;
    background: rgba(255,255,255,.10);
    border-radius: 999px;
}
/* ===========================================
   Step 1 – Make head + body feel like one panel
   =========================================== */

/* Remove the “hard split” line and replace with a soft fade */
.mf-ft-head {
    position: relative;
    border-bottom: 0; /* kill the harsh divider */
}

    /* soft divider glow (subtle, organic) */
    .mf-ft-head::after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: -1px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), rgba(28,141,255,.18), rgba(255,255,255,.10), transparent );
        opacity: .9;
        pointer-events: none;
    }

/* Give the body a slight top fade so the transition feels continuous */
.mf-ft-stepcard-body {
    position: relative;
    padding-top: 22px; /* tighter than before */
}

    .mf-ft-stepcard-body::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 26px;
        background: linear-gradient(180deg, rgba(0,0,0,.22), transparent);
        opacity: .55;
        pointer-events: none;
    }

/* Slightly tighten head spacing so it doesn't feel like a separate banner */
.mf-ft-head-left .mf-ft-title {
    margin-top: 6px;
}

.mf-ft-head-left .mf-ft-sub {
    margin-top: 6px;
    max-width: 56ch;
}
/* ===========================================
   Step 1 – Body as a continuous grid (gallery vibe)
   Reduce empty space + anchor the form card
   =========================================== */

/* Tighten vertical rhythm under the FORGETICKET header */
.mf-ft-stepcard-body .mf-section-header {
    margin: 8px 0 16px; /* less empty top/bottom */
    text-align: center;
}

/* Give the body a subtle grid feel (without visible borders) */
.mf-ft-stepcard-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

    /* The form should feel “anchored”, not floating */
    .mf-ft-stepcard-body .mf-form {
        margin: 0 auto;
        width: min(860px, 100%);
    }

    /* Add a soft base glow behind the form to integrate with background */
    .mf-ft-stepcard-body .mf-form {
        position: relative;
        padding: 22px;
        border-radius: 22px;
        border: 1px solid rgba(255,255,255,.10);
        background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18)), radial-gradient(520px 260px at 20% 0%, rgba(28,141,255,.10), transparent 60%), radial-gradient(520px 260px at 80% 0%, rgba(168,85,247,.08), transparent 60%);
        box-shadow: 0 22px 60px rgba(0,0,0,.65);
    }

    /* Optional: make the help box match the new organic style */
    .mf-ft-stepcard-body .mf-form-help {
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,.10);
        background: rgba(0,0,0,.12);
        padding: 12px 14px;
    }

    /* The “Não encontro…” link should look intentional */
    .mf-ft-stepcard-body .mf-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(255,91,0,.35);
        background: rgba(255,91,0,.10);
        color: rgba(255,255,255,.88);
        font-weight: 850;
        text-decoration: none;
        cursor: pointer;
        transition: transform .12s ease, background .15s ease, border-color .15s ease;
    }

        .mf-ft-stepcard-body .mf-link:hover {
            transform: translateY(-1px);
            background: rgba(255,91,0,.14);
            border-color: rgba(255,91,0,.55);
        }
    /* ===========================================
   Step 1 – Real 2-column form grid (no HTML changes)
   =========================================== */

    .mf-ft-stepcard-body .mf-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

        /* Each fieldset becomes a grid item */
        .mf-ft-stepcard-body .mf-form .mf-form-group {
            margin: 0; /* kill default vertical stacking gaps */
        }

            /* Make some fields full width */
            .mf-ft-stepcard-body .mf-form .mf-form-group:has(textarea),
            .mf-ft-stepcard-body .mf-form #mf-franchise-custom-wrap {
                grid-column: 1 / -1;
            }

        /* The franchise field includes help -> also full width so it doesn't look cramped */
        .mf-ft-stepcard-body .mf-form #Franchise {
            width: 100%;
        }

        /* Place submit button full width and align to the right like a step action */
        .mf-ft-stepcard-body .mf-form .mf-btn {
            grid-column: 1 / -1;
            justify-self: end;
            min-width: 180px;
        }

/* Responsive: back to 1 column */
@media (max-width: 860px) {
    .mf-ft-stepcard-body .mf-form {
        grid-template-columns: 1fr;
    }

        .mf-ft-stepcard-body .mf-form .mf-btn {
            justify-self: stretch;
            width: 100%;
        }
}
/* ===========================================
   ForgeTicket – Diorama choice cards (Step 1)
   Scoped to the Diorama block only
   =========================================== */

.mf-ft-stepcard-body [data-mf-diorama].mf-ch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

@media (max-width: 860px) {
    .mf-ft-stepcard-body [data-mf-diorama].mf-ch-grid {
        grid-template-columns: 1fr;
    }
}

.mf-ft-stepcard-body [data-mf-diorama] .mf-ch-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 18px;
    padding: 14px 14px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.10);
    background: radial-gradient(520px 220px at 20% 0%, rgba(28,141,255,.10), transparent 60%), radial-gradient(520px 220px at 80% 0%, rgba(168,85,247,.08), transparent 60%), rgba(0,0,0,.14);
    box-shadow: 0 18px 48px rgba(0,0,0,.60);
    transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

    .mf-ft-stepcard-body [data-mf-diorama] .mf-ch-item:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.16);
        background: radial-gradient(520px 220px at 20% 0%, rgba(28,141,255,.14), transparent 60%), radial-gradient(520px 220px at 80% 0%, rgba(168,85,247,.10), transparent 60%), rgba(0,0,0,.16);
    }

.mf-ft-stepcard-body [data-mf-diorama] .mf-ch-check {
    border: 0;
    background: transparent;
    padding: 0;
    margin-top: 2px;
    cursor: pointer;
    flex: 0 0 auto;
}

.mf-ft-stepcard-body [data-mf-diorama] .mf-ch-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.20);
    font-size: 12px;
    color: rgba(255,255,255,.70);
    box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
}

.mf-ft-stepcard-body [data-mf-diorama] .mf-ch-body h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .02em;
    color: rgba(255,255,255,.92);
    text-transform: none; /* keep it human */
}

.mf-ft-stepcard-body [data-mf-diorama] .mf-ch-body p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.62);
    line-height: 1.45;
}

/* Selected state */
.mf-ft-stepcard-body [data-mf-diorama] .mf-ch-item.is-done {
    border-color: rgba(28,141,255,.55);
    box-shadow: 0 0 0 6px rgba(28,141,255,.10) inset, 0 22px 54px rgba(28,141,255,.12), 0 18px 48px rgba(0,0,0,.60);
}

    .mf-ft-stepcard-body [data-mf-diorama] .mf-ch-item.is-done .mf-ch-icon {
        border-color: rgba(28,141,255,.75);
        color: rgba(255,255,255,.92);
        box-shadow: 0 0 16px rgba(28,141,255,.22);
    }
/* Diorama single-toggle */
.mf-ft-stepcard-body [data-mf-diorama-toggle].mf-ch-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 18px;
    padding: 14px 14px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.10);
    background: radial-gradient(520px 220px at 20% 0%, rgba(28,141,255,.10), transparent 60%), radial-gradient(520px 220px at 80% 0%, rgba(255,91,0,.08), transparent 60%), rgba(0,0,0,.14);
    box-shadow: 0 18px 48px rgba(0,0,0,.60);
    transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

    .mf-ft-stepcard-body [data-mf-diorama-toggle].mf-ch-item:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.16);
    }

.mf-ft-stepcard-body [data-mf-diorama-toggle] .mf-ch-check {
    border: 0;
    background: transparent;
    padding: 0;
    margin-top: 2px;
    cursor: pointer;
    flex: 0 0 auto;
}

.mf-ft-stepcard-body [data-mf-diorama-toggle] .mf-ch-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.20);
    font-size: 12px;
    color: rgba(255,255,255,.70);
    box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
}

.mf-ft-stepcard-body [data-mf-diorama-toggle] .mf-ch-body h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 950;
    color: rgba(255,255,255,.92);
}

.mf-ft-stepcard-body [data-mf-diorama-toggle] .mf-ch-body p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.62);
    line-height: 1.45;
}

/* on */
.mf-ft-stepcard-body [data-mf-diorama-toggle].mf-ch-item.is-done {
    border-color: rgba(28,141,255,.55);
    box-shadow: 0 0 0 6px rgba(28,141,255,.10) inset, 0 22px 54px rgba(28,141,255,.12), 0 18px 48px rgba(0,0,0,.60);
}

    .mf-ft-stepcard-body [data-mf-diorama-toggle].mf-ch-item.is-done .mf-ch-icon {
        border-color: rgba(28,141,255,.75);
        color: rgba(255,255,255,.92);
        box-shadow: 0 0 16px rgba(28,141,255,.22);
    }
/* Franchise block: label + CTA aligned */
.mf-franchise-block .mf-franchise-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

    .mf-franchise-block .mf-franchise-top label {
        margin: 0;
    }

.mf-franchise-block #mf-franchise-notfound {
    margin: 0;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,91,0,.35);
    background: rgba(255,91,0,.10);
    color: rgba(255,255,255,.88);
    font-weight: 800;
    text-decoration: none;
}

    .mf-franchise-block #mf-franchise-notfound:hover {
        background: rgba(255,91,0,.14);
        border-color: rgba(255,91,0,.55);
    }

.mf-franchise-block .mf-franchise-hint {
    margin-top: 8px;
}
/* Franchise: top row label + pill button */
.mf-franchise-block .mf-franchise-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

    .mf-franchise-block .mf-franchise-top label {
        margin: 0;
    }

.mf-ft-pillbtn {
    appearance: none;
    border: 1px solid rgba(255,91,0,.32);
    background: rgba(255,91,0,.10);
    color: rgba(255,255,255,.88);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}

    .mf-ft-pillbtn:hover {
        transform: translateY(-1px);
        background: rgba(255,91,0,.14);
        border-color: rgba(255,91,0,.55);
    }

.mf-franchise-block .mf-franchise-hint {
    margin: 8px 0 0;
    line-height: 1.45;
}

.mf-franchise-block .mf-franchise-custom {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* Use your existing mf-hidden */

/* =========================================================
   Step 1 – Diorama toggle (compact, organic)
   ========================================================= */


    .mf-ft-stepcard-body #mf-diorama-wrap .mf-form-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }

.mf-ft-stepcard-body .mf-hint-inline {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}

.mf-ft-toggle {
    width: 100%;
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: radial-gradient(520px 220px at 20% 0%, rgba(28,141,255,.10), transparent 60%), radial-gradient(520px 220px at 80% 0%, rgba(168,85,247,.08), transparent 60%), rgba(0,0,0,.14);
    box-shadow: 0 18px 48px rgba(0,0,0,.55);
    padding: 5px 15%;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

    .mf-ft-toggle:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.16);
    }

.mf-ft-toggle__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.20);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.20); /* hidden when OFF */
    box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
    margin-top: 2px;
}

.mf-ft-toggle__body {
    min-width: 0;
}

.mf-ft-toggle__title {
    display: block;
    font-size: 13px;
    font-weight: 950;
    color: rgba(255,255,255,.92);
}

.mf-ft-toggle__sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255,255,255,.62);
    line-height: 1.35;
}

/* ON state */
.mf-ft-toggle[aria-pressed="true"] {
    border-color: rgba(28,141,255,.55);
    box-shadow: 0 0 0 6px rgba(28,141,255,.10) inset, 0 22px 54px rgba(28,141,255,.12), 0 18px 48px rgba(0,0,0,.55);
}

    .mf-ft-toggle[aria-pressed="true"] .mf-ft-toggle__icon {
        border-color: rgba(28,141,255,.75);
        color: rgba(255,255,255,.92);
        box-shadow: 0 0 16px rgba(28,141,255,.22);
    }
.mf-franchise-block {
    grid-column: 1 / -1; /* always full width */
}

.mf-form-intro {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: rgba(203,213,225,0.8);
    text-align: center;
}
/* =========================================================
   ForgeTicket Stepper (your current markup: ol + mf-ft-line li)
   Fix alignment + mobile wrap
   ========================================================= */

/* wrapper just in case */
.mf-ft-stepper-wrap {
    min-width: 0;
}

/* The OL becomes a stable grid:
   [step][line][step][line][step][line][step] */
.mf-ft-stepper {
    list-style: none;
    margin: 0;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr 60px 1fr 60px 1fr 60px 1fr;
    align-items: center;
    justify-items: center;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.14);
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

/* Step item */
.mf-ft-step {
    width: 100%;
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 6px;
    opacity: .72;
}

    .mf-ft-step.is-active {
        opacity: 1;
    }

/* Dot */
.mf-ft-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 16px rgba(28,141,255,.10);
}

.mf-ft-step.is-active .mf-ft-dot {
    border-color: rgba(28,141,255,.42);
    background: rgba(28,141,255,.14);
    box-shadow: 0 0 22px rgba(28,141,255,.18);
}

/* Label (padding + nicer spacing) */
.mf-ft-label {
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
    padding: 0 6px;
    text-align: center;
    white-space: nowrap;
}

/* Line item (your <li class="mf-ft-line">) */
.mf-ft-line {
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    justify-self: stretch;
    align-self: center;
    margin-top: -10px; /* aligns with dot center visually */
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    /* Let the stepper stretch full width */
    .mf-ft-stepper {
        grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
        padding: 10px;
        gap: 8px;
    }

    .mf-ft-label {
        font-size: 11px;
    }

    .mf-ft-line {
        margin-top: -10px;
    }
}

@media (max-width: 560px) {
    /* On tiny screens: no labels, no lines, only dots in 4 columns */
    .mf-ft-stepper {
        grid-template-columns: repeat(4, 1fr);
        padding: 10px;
        gap: 10px;
    }

    .mf-ft-line {
        display: none;
    }

    .mf-ft-label {
        display: none;
    }

    .mf-ft-step {
        grid-template-rows: auto;
        gap: 0;
    }
}
.mf-ft-stepper-wrap {
    margin-top: 1.5rem;
}

.mf-ft-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    padding: 1.2rem 1rem;
    border-radius: 1.2rem;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(2,6,23,0.95));
    border: 1px solid rgba(71,85,105,0.5);
}
.mf-ft-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    z-index: 1;
}
    .mf-ft-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 0.95rem;
        left: 50%;
        width: 100%;
        height: 1px;
        background: rgba(148,163,184,0.35);
        z-index: -1;
    }
.mf-ft-dot {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
    color: #9CA3AF;
}

.mf-ft-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: #9CA3AF;
    text-transform: uppercase;
}
.mf-ft-step.is-active .mf-ft-dot {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: #fff;
    border-color: transparent;
}

.mf-ft-step.is-active .mf-ft-label {
    color: #E5E7EB;
}

.mf-ft-step.is-done .mf-ft-dot {
    background: rgba(34,197,94,0.15);
    border-color: rgba(34,197,94,0.8);
    color: #22C55E;
}
@media (max-width: 640px) {
    .mf-ft-stepper {
        grid-template-columns: repeat(4, auto);
        justify-content: space-between;
        padding: 0.8rem;
    }

    .mf-ft-label {
        display: none;
    }

    .mf-ft-step.is-active .mf-ft-label {
        display: block;
        margin-top: 0.3rem;
        font-size: 0.7rem;
    }

    .mf-ft-step:not(:last-child)::after {
        top: 0.9rem;
    }
}
/* =========================================
   Wizard header layout (ecosystem)
   ========================================= */

.mf-ft-head {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
    align-items: end;
    padding: 1.4rem 1.4rem 1.2rem;
    border-bottom: 1px solid rgba(148,163,184,.16);
}

.mf-ft-head-left {
    min-width: 0;
}

.mf-ft-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(226,232,240,.92);
    border: 1px solid rgba(59,130,246,.30);
    background: rgba(2,6,23,.45);
    box-shadow: 0 0 0 1px rgba(2,6,23,.55), 0 18px 48px rgba(0,0,0,.42);
}

.mf-ft-title {
    margin: .65rem 0 .25rem;
    font-size: clamp(1.9rem, 2.4vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.mf-ft-sub {
    margin: 0;
    color: rgba(148,163,184,.90);
    max-width: 52ch;
}

/* Right side rail that makes the stepper feel "built-in" */
.mf-ft-head-right {
    display: flex;
    justify-content: flex-end;
    align-items: end;
}

.mf-ft-stepper-rail {
    width: min(520px, 100%);
    padding: .8rem .85rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(148,163,184,.14);
    background: radial-gradient(420px 180px at 20% 20%, rgba(59,130,246,.10), transparent 65%), radial-gradient(420px 180px at 80% 10%, rgba(168,85,247,.10), transparent 70%), rgba(2,6,23,.55);
    box-shadow: 0 0 0 1px rgba(2,6,23,.55), 0 18px 55px rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
}

/* Make the stepper itself stop fighting the container */
.mf-ft-stepper-wrap {
    margin: 0;
}

.mf-ft-stepper {
    background: transparent;
    border: none;
    padding: 0;
}

/* =========================================
   Responsive: stack stepper below title
   ========================================= */

@media (max-width: 900px) {
    .mf-ft-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .mf-ft-head-right {
        justify-content: flex-start;
    }

    .mf-ft-stepper-rail {
        width: 100%;
    }
}
/* =========================================
   Stepper (integrated style)
   ========================================= */

.mf-ft-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 0;
    position: relative;
}

.mf-ft-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    text-align: center;
    padding: .15rem .1rem;
    z-index: 1;
}

    /* Connector line */
    .mf-ft-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: .92rem;
        left: 50%;
        width: 100%;
        height: 1px;
        background: rgba(148,163,184,.22);
        z-index: -1;
    }

.mf-ft-dot {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: .85rem;
    font-weight: 800;
    color: rgba(148,163,184,.95);
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(2,6,23,.55);
    box-shadow: 0 0 0 1px rgba(2,6,23,.55);
}

.mf-ft-label {
    font-size: .70rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(148,163,184,.85);
}

/* Active */
.mf-ft-step.is-active .mf-ft-dot {
    color: #fff;
    border-color: rgba(59,130,246,.55);
    background: linear-gradient(135deg, rgba(59,130,246,.85), rgba(99,102,241,.75));
    box-shadow: 0 0 0 1px rgba(2,6,23,.55), 0 0 22px rgba(59,130,246,.25);
}

.mf-ft-step.is-active .mf-ft-label {
    color: rgba(226,232,240,.95);
}

/* Done */
.mf-ft-step.is-done .mf-ft-dot {
    border-color: rgba(34,197,94,.55);
    background: rgba(34,197,94,.10);
    color: rgba(34,197,94,.95);
    box-shadow: 0 0 0 1px rgba(2,6,23,.55), 0 0 18px rgba(34,197,94,.18);
}

/* Mobile: compact labels */
@media (max-width: 640px) {
    .mf-ft-label {
        display: none;
    }

    .mf-ft-step.is-active .mf-ft-label {
        display: block;
        margin-top: .15rem;
        font-size: .68rem;
    }
}
/* Accessibility helper */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* =========================================================
   STEP 2 (MODELS) – Neon notched cards + blade + pulse
   Targets: .mf-ft-toolbar, .mf-grid, .mf-model-card, etc.
   ========================================================= */

/* Toolbar (pager + continue) should feel like part of the ecosystem */
.mf-ft-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 55px rgba(0,0,0,.55);
    margin: 18px 0 16px;
}

.mf-ft-pager {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mf-ft-pageinfo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
}

.mf-ft-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Make Continue less “Windows XP primary button” */
#mfContinueBtn.mf-btn-primary {
    border-color: rgba(28,141,255,.65);
    background: rgba(28,141,255,.18);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

    #mfContinueBtn.mf-btn-primary:disabled {
        opacity: .55;
        filter: saturate(.7);
        cursor: not-allowed;
    }

/* Grid like the target (4 cols desktop, 3/2/1 responsive) */
#mfModelsGrid.mf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: -15px;
}

@media (max-width: 1100px) {
    #mfModelsGrid.mf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    #mfModelsGrid.mf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    #mfModelsGrid.mf-grid {
        grid-template-columns: 1fr;
    }
}

/* Card base */
.mf-model-card {
    /* color scheme via CSS vars */
    --c: 28,141,255; /* default blue */

    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 20px;
    clip-path: polygon(0 0, 86% 0, 100% 14%, 100% 100%, 0 100%);
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(var(--c), .18);
    box-shadow: 0 22px 46px rgba(0,0,0,.55);
    transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}

/* Rotate schemes across cards (no model changes) */
#mfModelsGrid .mf-model-card:nth-child(5n+1) {
    --c: 255,91,0;
}
/* orange */
#mfModelsGrid .mf-model-card:nth-child(5n+2) {
    --c: 168,85,247;
}
/* violet */
#mfModelsGrid .mf-model-card:nth-child(5n+3) {
    --c: 45,212,191;
}
/* teal */
#mfModelsGrid .mf-model-card:nth-child(5n+4) {
    --c: 163,230,53;
}
/* lime */
#mfModelsGrid .mf-model-card:nth-child(5n+5) {
    --c: 28,141,255;
}
/* blue */

/* Pulse glow layer */
@keyframes mfMixPulse {
    0% {
        opacity: .12;
    }

    50% {
        opacity: .22;
    }

    100% {
        opacity: .12;
    }
}

.mf-model-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(280px 240px at 30% 10%, rgba(var(--c), .45), transparent 60%);
    filter: blur(18px);
    opacity: 0;
    pointer-events: none;
}

.mf-model-card:hover::before {
    opacity: .18;
    animation: mfMixPulse 1.5s ease-in-out infinite;
}

/* Corner blade */
.mf-model-card::after {
    content: "";
    position: absolute;
    top: -14px;
    right: -18px;
    width: 120px;
    height: 70px;
    transform: rotate(14deg);
    background: linear-gradient(90deg, rgba(var(--c),0), rgba(var(--c),.55), rgba(255,255,255,.06), rgba(var(--c),0));
    opacity: .50;
    pointer-events: none;
    filter: drop-shadow(0 0 16px rgba(var(--c), .35));
}

.mf-model-card:hover {
    transform: translateY(-2px);
}

    .mf-model-card:hover::after {
        opacity: .88;
    }

/* Selected state (your JS toggles .is-selected) */
.mf-model-card.is-selected {
    border-color: rgba(var(--c), .70);
    box-shadow: 0 0 0 6px rgba(var(--c), .10) inset, 0 26px 60px rgba(var(--c), .14);
}

    .mf-model-card.is-selected::before {
        opacity: .20;
        animation: mfMixPulse 1.5s ease-in-out infinite;
    }

    .mf-model-card.is-selected::after {
        opacity: 1;
    }

/* Cover: match the screenshot (4/3 vibe) */
.mf-model-card .mf-card-cover {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background-color: rgba(0,0,0,.12);
    position: relative;
}

    .mf-model-card .mf-card-cover::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(420px 220px at 20% 10%, rgba(var(--c), .12), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.38));
        pointer-events: none;
    }

/* Body like "cap" */
.mf-model-card .mf-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mf-model-card .mf-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 950;
    color: rgba(255,255,255,.92);
    letter-spacing: .2px;
}

.mf-model-card .mf-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.mf-model-card .mf-pill {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.78);
    white-space: nowrap;
}

    .mf-model-card .mf-pill.mf-pill-ok {
        border-color: rgba(var(--c), .55);
        background: rgba(var(--c), .10);
        color: rgba(255,255,255,.86);
        box-shadow: 0 0 14px rgba(var(--c), .12);
    }

/* Button inside card: “light” and not invasive */
.mf-model-card .mf-select-model.mf-btn-primary {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.88);
    box-shadow: none;
    transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

    .mf-model-card .mf-select-model.mf-btn-primary:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.08);
        border-color: rgba(var(--c), .45);
    }

/* When selected, make button subtly “armed” */
.mf-model-card.is-selected .mf-select-model.mf-btn-primary {
    border-color: rgba(var(--c), .65);
    background: rgba(var(--c), .18);
}

/* Accessibility: visible focus */
.mf-model-card:focus-visible {
    outline: 2px solid rgba(var(--c), .75);
    outline-offset: 4px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mf-model-card,
    .mf-model-card::before {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   STEP 2 – Inline Preview (replaces modal)
   ========================================================= */

#mfModelsGrid.mf-grid {
    align-items: stretch;
}

/* Preview card occupies 2 columns and 2 rows at the start */
.mf-ft-preview {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: radial-gradient(720px 260px at 30% 0%, rgba(28,141,255,.14), transparent 60%), radial-gradient(720px 260px at 80% 0%, rgba(255,91,0,.10), transparent 60%), rgba(255,255,255,.03);
    box-shadow: 0 22px 46px rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    min-height: 520px;
}

/* Make preview collapse nicely on smaller screens */
@media (max-width: 820px) {
    .mf-ft-preview {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 380px;
    }
}

.mf-ft-preview-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.16);
}

.mf-ft-preview-k {
    font-size: 11px;
    color: rgba(255,255,255,.62);
}

.mf-ft-preview-t {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 1000;
    letter-spacing: .2px;
    color: rgba(255,255,255,.92);
}

.mf-ft-preview-meta {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,.62);
    line-height: 1.35;
    max-width: 46ch;
}

.mf-ft-preview-actions {
    display: flex;
    gap: 8px;
}

.mf-ft-preview-main {
    flex: 1;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    min-height: 260px;
}

@media (max-width: 680px) {
    .mf-ft-preview-main {
        grid-template-columns: 1fr;
    }
}

.mf-ft-preview-img {
    background: rgba(0,0,0,.12);
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 240px;
}

    .mf-ft-preview-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(420px 220px at 20% 10%, rgba(28,141,255,.12), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.40));
        pointer-events: none;
    }

.mf-ft-preview-side {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
}

.mf-ft-preview-hint {
    font-size: 12px;
    color: rgba(255,255,255,.62);
}

.mf-ft-preview-rail {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 8px;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

    .mf-ft-preview-rail::-webkit-scrollbar {
        height: 10px;
    }

    .mf-ft-preview-rail::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.12);
        border-radius: 999px;
    }

.mf-ft-mini {
    flex: 0 0 120px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: transform .08s ease, border-color .15s ease;
}

    .mf-ft-mini:hover {
        transform: translateY(-1px);
    }

    .mf-ft-mini[aria-current="true"] {
        border-color: rgba(28,141,255,.65);
        box-shadow: 0 0 0 4px rgba(28,141,255,.12) inset;
    }

.mf-ft-mini-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
}

.mf-ft-mini-cap {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    color: rgba(255,255,255,.86);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ================================
   ForgeTicket Step 2 - Models layout
   (Fix: raw HTML look / missing grid)
   ================================ */

.mf-ft-models .mf-ft-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 14px;
}

@media (max-width: 980px) {
    .mf-ft-models .mf-ft-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .mf-ft-models .mf-ft-header-right {
        justify-self: start;
    }
}

.mf-ft-models .mf-ft-kicker {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}

.mf-ft-models .mf-ft-title {
    margin: 4px 0 0;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 950;
    letter-spacing: .2px;
}

.mf-ft-models .mf-ft-sub {
    margin: 8px 0 0;
    color: rgba(255,255,255,.62);
    max-width: 70ch;
}

/* Toolbar */
.mf-ft-models .mf-ft-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.16);
    backdrop-filter: blur(8px);
    margin: 10px 0 18px;
}

@media (max-width: 720px) {
    .mf-ft-models .mf-ft-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mf-ft-models .mf-ft-pager {
        justify-content: space-between;
        width: 100%;
    }

    .mf-ft-models #mfContinueBtn {
        width: 100%;
    }
}

.mf-ft-models .mf-ft-pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mf-ft-models .mf-ft-page {
    color: rgba(255,255,255,.70);
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
}

/* Make sure mf-grid is actually a grid here */
.mf-ft-models #mfModelsGrid.mf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

/* Responsive */
@media (max-width: 1100px) {
    .mf-ft-models #mfModelsGrid.mf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .mf-ft-models #mfModelsGrid.mf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .mf-ft-models #mfModelsGrid.mf-grid {
        grid-template-columns: 1fr;
    }
}

/* Preview card (occupies 2x2 on desktop) */
.mf-ft-models .mf-model-preview {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background: radial-gradient(640px 260px at 30% 0%, rgba(28,141,255,.16), transparent 60%), radial-gradient(640px 260px at 80% 0%, rgba(255,91,0,.10), transparent 60%), rgba(255,255,255,.03);
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
}

@media (max-width: 1100px) {
    .mf-ft-models .mf-model-preview {
        grid-column: span 3;
        grid-row: auto;
        min-height: 340px;
    }
}

@media (max-width: 820px) {
    .mf-ft-models .mf-model-preview {
        grid-column: span 2;
        grid-template-columns: 1fr;
        min-height: 340px;
    }
}

@media (max-width: 520px) {
    .mf-ft-models .mf-model-preview {
        grid-column: span 1;
    }
}

.mf-ft-models .mf-preview-media {
    min-height: 100%;
    background: rgba(0,0,0,.18);
    background-size: cover;
    background-position: center;
    position: relative;
}

    .mf-ft-models .mf-preview-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(420px 220px at 20% 10%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.45));
        pointer-events: none;
    }

.mf-ft-models .mf-preview-side {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0,0,0,.14);
    border-left: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 820px) {
    .mf-ft-models .mf-preview-side {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.08);
    }
}

.mf-ft-models .mf-preview-k {
    font-size: 12px;
    color: rgba(255,255,255,.62);
}

.mf-ft-models .mf-preview-title {
    font-size: 18px;
    font-weight: 950;
    letter-spacing: .2px;
}

.mf-ft-models .mf-preview-meta {
    font-size: 12px;
    color: rgba(255,255,255,.62);
    line-height: 1.35;
}

/* Ensure your existing mf-card looks right in this grid */
.mf-ft-models .mf-model-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.14);
    box-shadow: 0 18px 46px rgba(0,0,0,.48);
    transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
}

    .mf-ft-models .mf-model-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,.16);
    }

    .mf-ft-models .mf-model-card.is-selected {
        border-color: rgba(28,141,255,.55);
        box-shadow: 0 0 0 6px rgba(28,141,255,.10) inset, 0 22px 60px rgba(28,141,255,.12);
    }

.mf-ft-models .mf-card-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background-color: rgba(0,0,0,.12);
}

.mf-ft-models .mf-card-body {
    padding: 12px 14px;
    display: grid;
    gap: 10px;
}

.mf-ft-models .mf-card-title {
    font-size: 14px;
    font-weight: 950;
}

.mf-ft-models .mf-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* =========================================
   FIX: Stepper list markers (the "1. 2. 3." issue)
   ========================================= */

.mf-ft-stepper {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .mf-ft-stepper > li {
        list-style: none;
    }

/* =========================================
   Preview (only the "red" area)
   ========================================= */

.mf-ft-preview {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.14);
    background: radial-gradient(520px 260px at 20% 10%, rgba(59,130,246,.12), transparent 60%), radial-gradient(520px 260px at 90% 0%, rgba(168,85,247,.10), transparent 65%), rgba(2,6,23,.55);
    box-shadow: 0 0 0 1px rgba(2,6,23,.55), 0 18px 55px rgba(0,0,0,.55);
    overflow: hidden;
    min-height: 420px;
}

.mf-ft-preview-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) contrast(1.06);
    opacity: .92;
}

    .mf-ft-preview-media::after {
        content: "";
        position: absolute;
/*        inset: 0;*/
        background: radial-gradient(520px 300px at 20% 10%, rgba(59,130,246,.12), transparent 60%), linear-gradient(180deg, rgba(2,6,23,.05), rgba(2,6,23,.78));
    }

.mf-ft-preview-meta {
    position: relative;
    z-index: 1;
    padding: 14px 14px 16px;
    display: grid;
    gap: 6px;
}

.mf-ft-preview-code {
    font-size: .78rem;
    color: rgba(148,163,184,.95);
}

.mf-ft-preview-title {
    font-weight: 950;
    letter-spacing: -.01em;
    font-size: 1.05rem;
}

.mf-ft-preview-sub {
    color: rgba(148,163,184,.88);
    font-size: .9rem;
    max-width: 44ch;
}

/* Keep preview + cards aligned nicely on smaller screens */
@media (max-width: 980px) {
    .mf-ft-grid {
        grid-template-columns: 1fr;
    }

    .mf-ft-preview {
        min-height: 320px;
    }
}
/* Step 2 - Models: preview tile (lite) occupying 2x2 grid area */
.mf-ft-models-grid {
    grid-auto-flow: dense;
}

/* Preview tile: 2 cols x 2 rows (desktop) */
.mf-ft-preview-lite {
    grid-column: 1 / span 2;
    grid-row: span 2;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    min-height: 320px;
    box-shadow: 0 22px 54px rgba(0,0,0,.55);
}

/* Image area */
.mf-ft-preview-lite-img {
    background: rgba(0,0,0,.12);
    background-size: cover;
    background-position: center;
    border-right: 1px solid rgba(255,255,255,.10);
}

/* Side area */
.mf-ft-preview-lite-side {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mf-ft-preview-lite-k {
    font-size: 12px;
    color: rgba(255,255,255,.62);
}

.mf-ft-preview-lite-t {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: .2px;
}

.mf-ft-preview-lite-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mf-ft-preview-lite-meta {
    font-size: 12px;
    color: rgba(255,255,255,.62);
    line-height: 1.35;
}

/* Responsive: preview becomes full-width block */
@media (max-width: 980px) {
    .mf-ft-preview-lite {
        grid-column: 1 / -1;
        grid-row: auto;
        grid-template-columns: 1fr;
        min-height: 280px;
    }

    .mf-ft-preview-lite-img {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.10);
        min-height: 220px;
    }
}
/* Tighten spacing between header (stepper) and pager/grid */
.mf-ft-stepcard-body {
    padding-top: 10px; /* antes estaba demasiado separado */
}

/* Bring toolbar closer to header and grid */
.mf-ft-toolbar {
    margin-top: -10px; /* pega al borde inferior del head */
    margin-bottom: 12px; /* pequeño respiro antes del grid */
    padding: 10px 12px;
    border-radius: 18px;
}

/* Make pager feel “connected” */
.mf-ft-pager {
    gap: 12px;
}

/* Optional: slightly reduce the header-bottom divider feel (si aplica en tu CSS) */
.mf-ft-head {
    padding-bottom: 12px;
}
/* Preview now: 2 columns wide, 1 row tall (same height as cards) */
.mf-ft-preview-lite {
    grid-column: 1 / span 2;
    grid-row: span 1;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
    box-shadow: 0 22px 54px rgba(0,0,0,.55);
    /* Keep height aligned with your cards */
    aspect-ratio: 4 / 3; /* igual que cover típico de card */
    min-height: 0; /* evita “estiradas raras” */
}

/* Full image background */
.mf-ft-preview-media {
    position: absolute;
/*    inset: 0;*/
/*    background: rgba(0,0,0,.12);
    background-size: cover;*/
    background-position: center;
    filter: contrast(1.05) saturate(1.05);
}

/* Glass overlay */
.mf-ft-preview-overlay {
    position: absolute;
    left: 14px;
    top: 14px;
    right: 14px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mf-ft-preview-k {
    font-size: 12px;
    color: rgba(255,255,255,.68);
}

.mf-ft-preview-t {
    margin: 0;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: .2px;
}

.mf-ft-preview-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mf-ft-preview-meta {
    font-size: 12px;
    color: rgba(255,255,255,.62);
    line-height: 1.35;
}

/* Responsive: preview becomes full width but keeps card-like height */
@media (max-width: 980px) {
    .mf-ft-preview-lite {
        grid-column: 1 / -1;
    }
}
/* Tightest possible gap between toolbar (pager) and grid */
.mf-ft-toolbar {
    margin-bottom: 6px !important; /* antes 12px */
    padding-bottom: 8px !important;
}

.mf-ft-grid-wrap,
.mf-ft-grid {
    margin-top: 0 !important;
}

/* If your layout has an extra wrapper with padding-top */
.mf-ft-stepcard-body {
    padding-top: 6px !important; /* antes 10px */
}

/* In case there's a generic "section spacing" rule hitting this page */
.mf-ft-models .mf-ft-toolbar + * {
    margin-top: 0 !important;
}
.mf-ft-main,
.mf-ft-content {
    gap: 8px !important;
}
/* Preview overlay goes to the bottom */
.mf-ft-preview-overlay {
    top: auto !important;
    bottom: 14px !important;
    /* Slightly wider feel, like a caption bar */
    padding: 12px 14px !important;
}

/* Optional: make it feel anchored to bottom */
.mf-ft-preview-lite::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
    pointer-events: none;
}
/* Kill the ghost space under pager */
.mf-ft-toolbar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
}

/* This wrapper is the usual suspect */
.mf-ft-toolbar-wrap,
.mf-ft-toolbar-container,
.mf-ft-header + .mf-ft-grid-wrap {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* Grid must start immediately */
.mf-ft-grid-wrap {
    margin-top: 4px !important; /* 0 if you want it brutal */
    padding-top: 0 !important;
}

/* If layout uses flex/grid gap */
.mf-ft-main,
.mf-ft-content,
.mf-ft-body {
    gap: 6px !important;
}
.mf-ft-preview-overlay {
    background: linear-gradient(179deg, rgba(8, 12, 25, 0.2), rgba(8, 12, 25, .22)) !important;
    backdrop-filter: blur(1px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, .14) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.mf-ft-preview {
    position: relative;
}

    .mf-ft-preview::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 55%;
        background: linear-gradient( to top, rgba(0,0,0,.55), rgba(0,0,0,.15), rgba(0,0,0,0) );
        pointer-events: none;
    }
.mf-ft-preview {
    height: 100%;
    max-height: 100%;
}

.mf-ft-preview-image {
    object-fit: contain; /* o cover si prefieres épico */
}
/* LED option - visual cleanup */
.mf-led-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02) );
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .mf-led-row label {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-weight: 500;
        color: #fff;
    }

        .mf-led-row label span {
            font-size: 0.85rem;
            opacity: 0.7;
        }

    .mf-led-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #8fd3ff;
        cursor: pointer;
    }
/* Hide real checkbox but keep it accessible and submittable */
.mf-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Paint style preview */
.mf-paint-style {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mf-paint-preview {
    margin-top: 6px;
    max-width: 115px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

    .mf-paint-preview img {
        display: block;
        width: 100%;
        height: auto;
    }
