/* =======================================================
   Business Flow — AI Register Experience (page-scoped)
   Keeps existing public.css styles, adds polish + motion.
   ======================================================= */

.ai-reg {
    padding: 18px;
}

.ai-reg-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 16px;
    z-index: 1;
}

@media (max-width: 980px) {
    .ai-reg-grid {
        grid-template-columns: 1fr;
    }
}

.ai-reg-main {
    position: relative;
}

.ai-steps {
    position: sticky;
    top: 18px;
    z-index: 5;
    padding: 10px 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.16);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 44px rgba(0,0,0,.18);
    margin-bottom: 14px;
}

.ai-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
}

    .ai-progress span {
        display: block;
        height: 100%;
        width: 25%;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(51,198,255,.55), rgba(90,120,255,.55));
        box-shadow: 0 0 0 4px rgba(51,198,255,.10);
        transition: width .35s ease;
    }

.ai-steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.ai-step {
    all: unset;
    cursor: default;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

    .ai-step .n {
        width: 26px;
        height: 26px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        font-weight: 950;
        background: rgba(0,0,0,.22);
        border: 1px solid rgba(255,255,255,.12);
    }

    .ai-step .t {
        font-weight: 900;
        font-size: 12px;
        color: rgba(255,255,255,.82);
    }

    .ai-step.active {
        border-color: rgba(51,198,255,.28);
        background: rgba(51,198,255,.10);
    }

        .ai-step.active .n {
            border-color: rgba(51,198,255,.35);
        }

@media (max-width: 560px) {
    .ai-step .t {
        display: none;
    }

    .ai-steps-row {
        gap: 8px;
    }
}

.ai-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ai-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .ai-title .spark {
        width: 38px;
        height: 38px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        font-weight: 950;
        background: radial-gradient(120px 60px at 30% 20%, rgba(51,198,255,.25), transparent 60%), rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.14);
        box-shadow: 0 18px 44px rgba(0,0,0,.18);
    }

    .ai-title .h {
        font-weight: 950;
        font-size: 15px;
    }

    .ai-title .p {
        margin-top: 2px;
        font-weight: 800;
        font-size: 12px;
        color: rgba(255,255,255,.62);
    }

.ai-chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.20);
    position: relative;
    overflow: hidden;
}

    .ai-chip::after {
        content: "";
        position: absolute;
        inset: -40px;
        background: radial-gradient(120px 60px at 30% 30%, rgba(51,198,255,.22), transparent 60%);
        transform: rotate(12deg);
        animation: aiPulse 2.2s ease-in-out infinite;
        opacity: .85;
        pointer-events: none;
    }

@keyframes aiPulse {
    0%, 100% {
        transform: translateX(-18px) rotate(12deg);
        opacity: .55;
    }

    50% {
        transform: translateX(18px) rotate(12deg);
        opacity: 1;
    }
}

.ai-note {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(34,197,94,.24);
    background: rgba(34,197,94,.09);
    padding: 12px 14px;
}

    .ai-note .k {
        font-weight: 950;
        margin-bottom: 6px;
    }

    .ai-note .v {
        color: rgba(255,255,255,.80);
        font-weight: 800;
        line-height: 1.85;
    }

.ai-sub {
    margin: 6px 0 12px;
    font-weight: 900;
    color: rgba(255,255,255,.80);
    line-height: 1.85;
}

    .ai-sub .muted {
        display: block;
        margin-top: 6px;
        font-weight: 800;
        color: rgba(255,255,255,.55);
        font-size: 12.5px;
    }

.ai-help {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.60);
    font-weight: 800;
}

/* Service picks */
.ai-picks {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 760px) {
    .ai-picks {
        grid-template-columns: 1fr;
    }
}

.ai-pick {
    text-align: start;
    width: 100%;
    border-radius: 18px;
    padding: 14px 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    position: relative;
    overflow: hidden;
}

    .ai-pick:hover {
        transform: translateY(-2px);
        border-color: rgba(51,198,255,.24);
        background: rgba(255,255,255,.08);
    }

    .ai-pick .ai-pick-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .ai-pick b {
        font-size: 14px;
    }

    .ai-pick small {
        display: block;
        margin-top: 8px;
        color: rgba(255,255,255,.65);
        font-weight: 800;
        line-height: 1.8;
    }

.ai-tag {
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 950;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.18);
}

.ai-pick-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    color: rgba(255,255,255,.70);
    font-weight: 900;
}

.ai-check {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.20);
    opacity: .35;
    transform: scale(.94);
    transition: opacity .18s ease, transform .18s ease, background .18s ease, border-color .18s ease;
}

.ai-pick.selected {
    border-color: rgba(34,197,94,.30);
    background: rgba(34,197,94,.08);
}

    .ai-pick.selected .ai-check {
        opacity: 1;
        transform: scale(1);
        background: rgba(34,197,94,.12);
        border-color: rgba(34,197,94,.28);
    }

.ai-selected {
    margin-top: 14px;
}

.ai-bundle {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(51,198,255,.18);
    background: rgba(51,198,255,.08);
    font-weight: 900;
    color: rgba(255,255,255,.82);
    line-height: 1.75;
}

/* Right assistant */
.ai-reg-side {
    position: relative;
}

.ai-side-card {
    position: sticky;
    top: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.14);
    padding: 14px;
    box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.ai-side-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(34,197,94,.80);
    box-shadow: 0 0 0 6px rgba(34,197,94,.12);
}

.ai-side-title {
    font-weight: 950;
}

.ai-side-sub {
    color: rgba(255,255,255,.55);
    font-weight: 800;
    font-size: 12px;
}

.ai-bubble {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    padding: 12px 12px;
    font-weight: 900;
    color: rgba(255,255,255,.85);
    line-height: 1.85;
}

.ai-summary {
    margin-top: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    padding: 12px;
}

.ai-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,.10);
}

    .ai-summary-row:last-child {
        border-bottom: 0;
    }

    .ai-summary-row .k {
        color: rgba(255,255,255,.55);
        font-weight: 900;
        font-size: 12px;
    }

    .ai-summary-row .v {
        font-weight: 950;
        text-align: end;
        color: rgba(255,255,255,.88);
    }

.ai-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34,197,94,.22);
    background: rgba(34,197,94,.10);
    font-weight: 950;
    font-size: 12px;
}

.ai-side-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.65);
    font-weight: 900;
    line-height: 1.9;
}

.btn-spark {
    margin-inline-start: 8px;
    opacity: .85;
}

/* Smooth step transitions */
.step-panel {
    display: none;
    position: relative;
    z-index: 1;
}

    .step-panel.active {
        display: block;
        animation: stepIn .22s ease both;
    }

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast */
.ai-toast {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 9999;
    width: min(420px, calc(100vw - 36px));
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    padding: 12px 12px;
    display: flex;
    align-items: start;
    gap: 10px;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

    .ai-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .ai-toast .ico {
        width: 30px;
        height: 30px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.12);
    }

    .ai-toast .txt {
        flex: 1;
        color: rgba(255,255,255,.88);
        font-weight: 900;
        line-height: 1.7;
    }

        .ai-toast .txt small {
            display: block;
            color: rgba(255,255,255,.62);
            font-weight: 800;
            margin-top: 2px;
        }
