/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 30, .7);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal-overlay.active {
    display: flex
}

.modal {
    background: #fff;
    border-radius: 28px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .4);
    animation: modalIn .3s ease
}

@keyframes modalIn {
    from {
        transform: scale(.95) translateY(20px);
        opacity: 0
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1
    }
}

.modal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr
}

.modal-left {
    background: linear-gradient(160deg, #001d3f, #0d0540);
    padding: 2.5rem;
    border-radius: 28px 0 0 28px;
    position: relative;
    overflow: hidden
}

.modal-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 1, 174, .6), transparent)
}

.modal-left-content {
    position: relative;
    z-index: 2
}

.modal-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 8px
}

.modal-plan-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.5rem
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1
}

.modal-price sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, .6)
}

.modal-price-note {
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    margin-top: .25rem;
    margin-bottom: 1rem
}

.modal-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem
}

.modal-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .75)
}

.modal-features li::before {
    content: '✓';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(74, 222, 128, .2);
    color: #4ade80;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0
}

.modal-trust {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: 1.5rem
}

.modal-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .45)
}

.modal-right {
    padding: 2.5rem
}

.modal-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem
}

.progress-step {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: var(--blue)
}

.progress-step.inactive {
    background: #e5e7eb
}

.modal-progress-label {
    font-size: .78rem;
    color: var(--text-muted);
    margin-left: 8px;
    white-space: nowrap
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #666;
    transition: all .2s;
    z-index: 10
}

.modal-close:hover {
    background: rgba(0, 0, 0, .1)
}

.form-group {
    margin-bottom: 1.25rem
}

.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: .5rem
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: .93rem;
    color: var(--dark);
    transition: border-color .2s;
    outline: none;
    background: #fff
}

.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 72, 212, .1)
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer
}

.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, var(--orange), #ff6b2b);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 15px;

    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: .5rem;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(255, 142, 85, .35)
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 142, 85, .45)
}

.form-trust {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap
}

.form-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: var(--text-muted)
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .25rem
}

.modal-subtitle {
    font-size: .87rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.55
}



/* ── MODAL SHELL ── */
.ms-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 30, .72);
    backdrop-filter: blur(10px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.ms-overlay.active {
    display: flex
}

.ms-modal {
    background: #fff;
    border-radius: 28px;
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
    animation: msIn .32s cubic-bezier(.22, .68, 0, 1.2)
}

@keyframes msIn {
    from {
        transform: scale(.94) translateY(24px);
        opacity: 0
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1
    }
}

.ms-modal.step-anim {
    animation: stepSlide .28s cubic-bezier(.4, 0, .2, 1)
}

@keyframes stepSlide {
    from {
        opacity: 0;
        transform: translateX(24px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* ── LAYOUT ── */
.ms-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    flex: 1;
    overflow: hidden;
    min-height: 0
}

.ms-sidebar {
    background: linear-gradient(160deg, #001d3f 0%, #0d0540 100%);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    flex-shrink: 0
}

.ms-sidebar::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 1, 174, .55), transparent);
    pointer-events: none
}

.ms-sidebar::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 72, 212, .4), transparent);
    pointer-events: none
}

.ms-sidebar-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%
}

.ms-logo {

    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.75rem
}

.ms-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3901ae, #3b48d4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

/* ── STEP NAV (sidebar) ── */
.ms-steps-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1
}

.ms-step-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background .2s;
    cursor: default
}

.ms-step-nav-item.active {
    background: rgba(255, 255, 255, .1)
}

.ms-step-nav-item.done {
    opacity: .75
}

.ms-step-nav-item.upcoming {
    opacity: .38
}

.ms-step-nav-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: .78rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all .3s
}

.ms-step-nav-item.active .ms-step-nav-dot {
    background: linear-gradient(135deg, #ff8e55, #ff6b2b);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 142, 85, .4)
}

.ms-step-nav-item.done .ms-step-nav-dot {
    background: rgba(74, 222, 128, .15);
    border: 1px solid rgba(74, 222, 128, .3);
    color: #4ade80;
    font-size: .9rem
}

.ms-step-nav-item.upcoming .ms-step-nav-dot {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .4)
}

.ms-step-nav-text h5 {

    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1px
}

.ms-step-nav-text p {
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);

}

.ms-step-nav-connector {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .1);
    margin-left: 27px
}

/* ── PLAN MINI CARD ── */
.ms-plan-mini {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-top: auto
}

.ms-plan-mini-label {
    font-size: .67rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .4);
    font-weight: 600;

    margin-bottom: .35rem
}

.ms-plan-mini-price {

    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1
}

.ms-plan-mini-price sub {
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
    font-weight: 400
}

.ms-plan-mini-note {
    font-size: .72rem;
    color: rgba(255, 255, 255, .4);
    margin-top: .2rem;

}

.ms-plan-mini-members {
    margin-top: .6rem;
    font-size: .75rem;
    color: rgba(255, 255, 255, .6);

}

.ms-plan-mini-members span {
    color: #fd99bb;
    font-weight: 600
}

/* ── CONTENT AREA ── */
.ms-content {
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.ms-header {
    padding: 1.5rem 2rem 0;
    flex-shrink: 0
}

.ms-progress-bar-wrap {
    height: 3px;
    background: #f0f2f8;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    overflow: hidden
}

.ms-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3901ae, #3b48d4);
    border-radius: 2px;
    transition: width .5s cubic-bezier(.4, 0, .2, 1)
}

.ms-step-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3b48d4;

    margin-bottom: .3rem
}

.ms-content-title {

    font-size: 1.3rem;
    font-weight: 800;
    color: #001d3f;
    letter-spacing: -.02em;
    margin-bottom: .2rem
}

.ms-content-sub {
    font-size: .85rem;
    color: #6b7a99;
    ;
    line-height: 1.55;
    margin-bottom: .25rem
}

.ms-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .05);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #6b7a99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10
}

.ms-close:hover {
    background: rgba(0, 0, 0, .1);
    color: #001d3f
}

/* ── SCROLLABLE STEP BODY ── */
.ms-step-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem 1.5rem
}

.ms-step-body::-webkit-scrollbar {
    width: 4px
}

.ms-step-body::-webkit-scrollbar-thumb {
    background: #e0e4f0;
    border-radius: 2px
}

/* ── FOOTER ── */
.ms-footer {
    padding: 1rem 2rem 1.5rem;
    flex-shrink: 0;
    border-top: 1px solid #f0f2f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.ms-back-btn {
    background: none;
    border: 1.5px solid #e0e4f0;
    border-radius: 12px;
    padding: 11px 22px;

    font-size: .88rem;
    font-weight: 700;
    color: #6b7a99;
    cursor: pointer;
    transition: all .2s
}

.ms-back-btn:hover {
    border-color: #3b48d4;
    color: #3b48d4
}

.ms-next-btn {
    background: linear-gradient(135deg, #ff8e55, #ff6b2b);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 32px;

    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 24px rgba(255, 142, 85, .3)
}

.ms-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(255, 142, 85, .4)
}

.ms-trust-strip {
    display: flex;
    gap: 1.25rem;
    align-items: center
}

.ms-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .73rem;
    color: #9aa3b8;

}

/* ── FORM ELEMENTS ── */
.fg {
    margin-bottom: 1.1rem
}

.fg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.fl {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #001d3f;
    margin-bottom: .4rem;
}

.fi {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e8f0;
    border-radius: 11px;
    ;
    font-size: .92rem;
    color: #001d3f;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    background: #fff
}

.fi:focus {
    border-color: #3b48d4;
    box-shadow: 0 0 0 3px rgba(59, 72, 212, .1)
}

.fi-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer
}

/* ── STEP 1: DETAILS ── */
.s1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

/* ── STEP 2: OTP ── */
.otp-illustration {
    text-align: center;
    padding: 1rem 0 1.5rem
}

.otp-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff1ff, #e8ecff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative
}

.otp-icon-wrap::after {
    content: '🔒';
    font-size: .85rem;
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12)
}

.otp-phone-display {
    font-size: .88rem;
    color: #6b7a99;
    margin-bottom: .25rem;

}

.otp-phone-display strong {
    color: #001d3f;
    font-weight: 600
}

.otp-change {
    font-size: .78rem;
    color: #3b48d4;
    cursor: pointer;
    text-decoration: underline;
    ;
    background: none;
    border: none
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1.5rem 0
}

.otp-box {
    width: 52px;
    height: 60px;
    border: 2px solid #e5e8f0;
    border-radius: 12px;

    font-size: 1.6rem;
    font-weight: 800;
    color: #001d3f;
    text-align: center;
    outline: none;
    transition: all .2s;
    background: #fff
}

.otp-box:focus {
    border-color: #3b48d4;
    box-shadow: 0 0 0 3px rgba(59, 72, 212, .1);
    background: #f8f9ff
}

.otp-box.filled {
    border-color: #3b48d4;
    background: #f8f9ff
}

.otp-resend {
    text-align: center;
    font-size: .82rem;
    color: #9aa3b8;

}

.otp-resend-btn {
    color: #3b48d4;
    cursor: pointer;
    font-weight: 600;
    background: none;
    border: none;
    ;
    font-size: .82rem
}

.otp-resend-btn:disabled {
    color: #9aa3b8;
    cursor: default
}

.otp-timer {
    color: #3b48d4;
    font-weight: 700
}

/* ── STEP 3: FAMILY ── */
.family-upsell {
    background: linear-gradient(135deg, #f8f0ff, #fff0f8);
    border: 1.5px solid #e8d5ff;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem
}

.family-upsell-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px
}

.family-upsell h5 {

    font-size: .9rem;
    font-weight: 800;
    color: #3901ae;
    margin-bottom: 3px
}

.family-upsell p {
    font-size: .8rem;
    color: #6b7a99;
    line-height: 1.5;

}

.family-upsell-price {
    display: inline-block;
    background: #3901ae;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    margin-top: .4rem;
}

.family-add-form {
    background: #f8f9fd;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem
}

.family-add-form .fg-row {
    grid-template-columns: 1fr 1fr auto
}

.add-member-btn {
    background: linear-gradient(135deg, #3901ae, #3b48d4);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;

    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    align-self: end;
    margin-bottom: 0;
    transition: all .2s
}

.add-member-btn:hover {
    opacity: .9;
    transform: translateY(-1px)
}

.family-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.family-list-empty {
    text-align: center;
    padding: 1.5rem;
    color: #9aa3b8;
    font-size: .85rem;
    ;
    background: #fafbff;
    border-radius: 12px;
    border: 1.5px dashed #e0e4f0
}

.family-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e8ecf8;
    border-radius: 12px;
    padding: .75rem 1rem;
    animation: memberIn .25s ease
}

@keyframes memberIn {
    from {
        opacity: 0;
        transform: translateX(-10px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.fmi-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.fmi-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff1ff, #dde2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: #3b48d4;

    flex-shrink: 0
}

.fmi-info h5 {

    font-size: .85rem;
    font-weight: 700;
    color: #001d3f;
    margin-bottom: 1px
}

.fmi-info p {
    font-size: .75rem;
    color: #9aa3b8;

}

.fmi-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9aa3b8;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 6px;
    transition: all .2s;
    line-height: 1
}

.fmi-remove:hover {
    color: #ef4444;
    background: #fff1f0
}

.family-shield-visual {
    text-align: center;
    padding: .5rem 0 1rem
}

.family-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    height: 60px
}

.fn-center {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3901ae, #3b48d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(57, 1, 174, .3);
    position: relative;
    z-index: 2
}

.fn-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e8ecf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    margin: 0 -4px;
    transition: all .3s
}

.fn-node.active {
    border-color: #3b48d4;
    background: #eff1ff
}

.fn-line {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #3901ae, #3b48d4);
    opacity: .25
}

/* ── STEP 4: SUMMARY ── */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px
}

.summary-card {
    background: #f8f9fd;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid #eef0f8
}

.summary-card-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #9aa3b8;
    font-weight: 700;

    margin-bottom: .6rem
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
    border-bottom: 1px solid #f0f2f8;
    font-size: .83rem;

}

.summary-row:last-child {
    border-bottom: none
}

.summary-row-label {
    color: #6b7a99
}

.summary-row-val {
    font-weight: 600;
    color: #001d3f;
}

.summary-members-list {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.sml-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    ;
    color: #001d3f
}

.sml-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b48d4;
    flex-shrink: 0
}

.summary-pricing {
    background: linear-gradient(135deg, #001d3f, #0d0540);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 14px
}

.sp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    ;
    font-size: .85rem;
    padding: .35rem 0
}

.sp-row-label {
    color: rgba(255, 255, 255, .55)
}

.sp-row-val {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
}

.sp-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: .4rem 0
}

.sp-total-label {
    color: #fff;
    font-weight: 700;

    font-size: .95rem
}

.sp-total-val {
    font-style: italic;
    font-size: 1.4rem;
    color: #ff8e55
}

.summary-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.st-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f8f4;
    border: 1px solid #c6e8d6;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: .73rem;
    color: #065f46;
    ;
    font-weight: 500
}

.st-badge svg {
    flex-shrink: 0
}

/* ── SUCCESS SCREEN ── */
.success-screen {
    text-align: center;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px
}

.success-anim {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    animation: successPop .5s cubic-bezier(.22, .68, 0, 1.4)
}

@keyframes successPop {
    from {
        transform: scale(0);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.success-screen h2 {

    font-size: 1.6rem;
    font-weight: 800;
    color: #001d3f;
    margin-bottom: .5rem;
    letter-spacing: -.02em
}

.success-screen p {
    font-size: .9rem;
    color: #6b7a99;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 320px;

}

.success-details {
    background: #f8f9fd;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    width: 100%;
    max-width: 340px;
    margin-bottom: 1.5rem;
    text-align: left
}

.sd-row {
    display: flex;
    justify-content: space-between;
    font-size: .83rem;
    padding: .3rem 0;

}

.sd-row:not(:last-child) {
    border-bottom: 1px solid #eef0f8
}

.sd-label {
    color: #9aa3b8
}

.sd-val {
    font-weight: 600;
    color: #001d3f;
}

.success-cta {
    background: linear-gradient(135deg, #ff8e55, #ff6b2b);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 32px;

    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 142, 85, .3)
}

/* ── RESPONSIVE ── */
@media(max-width:700px) {
    .ms-body {
        grid-template-columns: 1fr
    }

    .ms-sidebar {
        display: none
    }

    .ms-modal {
        border-radius: 20px;
        max-height: 96vh
    }

    .ms-step-body {
        padding: .75rem 1.25rem 1rem
    }

    .ms-header {
        padding: 1.1rem 1.25rem 0
    }

    .ms-footer {
        padding: .75rem 1.25rem 1.25rem
    }

    .s1-grid,
    .fg-row {
        grid-template-columns: 1fr
    }

    .summary-grid {
        grid-template-columns: 1fr
    }

    .otp-box {
        width: 44px;
        height: 54px;
        font-size: 1.4rem
    }

    .family-add-form .fg-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto
    }

    .add-member-btn {
        grid-column: 1/-1
    }
}