/* =========================================================
           ROOT
        ========================================================= */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --primary-soft: #f5f3ff;
    --background: #f5f7fb;
    --surface: #ffffff;
    --text-main: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --danger: #dc2626;
    --danger-background: #fef2f2;
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-card: 0 30px 70px rgba(15, 23, 42, 0.10), 0 8px 25px rgba(15, 23, 42, 0.04);
    --transition: 0.25s ease;
}


/* =========================================================
           RESET
        ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    min-height: 100%;
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-main);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


button,
input {
    font: inherit;
}


button {
    border: none;
}


/* =========================================================
           PAGE BACKGROUND
        ========================================================== */

.page {
    min-height: 100vh;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient( circle at 10% 10%, rgba(79, 70, 229, 0.08), transparent 30% ), radial-gradient( circle at 90% 90%, rgba(99, 102, 241, 0.07), transparent 30% ), var(--background);
}


/* =========================================================
           BACKGROUND SHAPES
        ========================================================== */

.background-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}


    .background-shape.one {
        width: 350px;
        height: 350px;
        top: -180px;
        right: -100px;
        background: rgba(79, 70, 229, 0.06);
    }


    .background-shape.two {
        width: 300px;
        height: 300px;
        bottom: -150px;
        left: -100px;
        background: rgba(99, 102, 241, 0.06);
    }


/* =========================================================
           MAIN CONTAINER
        ========================================================== */

.registration-container {
    width: 100%;
    max-width: 1050px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    direction: ltr;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    z-index: 1;
}


/* =========================================================
           BRAND PANEL
        ========================================================== */

.visual-panel {
    direction: rtl;
    position: relative;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    overflow: hidden;
    background: linear-gradient( 145deg, #4f46e5 0%, #4338ca 50%, #312e81 100% );
}


    .visual-panel::before {
        content: '';
        position: absolute;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        top: -150px;
        left: -150px;
        background: rgba(255, 255, 255, 0.08);
    }


    .visual-panel::after {
        content: '';
        position: absolute;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        bottom: -120px;
        right: -100px;
        background: rgba(255, 255, 255, 0.06);
    }


/* =========================================================
           BRAND
        ========================================================== */

.brand {
    position: relative;
    z-index: 2;
}


.brand-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--primary);
    background: white;
    font-size: 1.4rem;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


.brand-name {
    margin-bottom: 12px;
    font-size: 1.7rem;
    font-weight: 900;
}


.brand-title {
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.7;
}


.brand-description {
    max-width: 370px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 2;
}


/* =========================================================
           BENEFITS
        ========================================================== */

.benefits {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}


.benefit-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
           FORM PANEL
        ========================================================== */

.form-panel {
    direction: rtl;
    padding: 48px 55px;
    display: flex;
    flex-direction: column;
}


/* =========================================================
           PROGRESS
        ========================================================== */

.progress-container {
    margin-bottom: 45px;
}


.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}


    .progress-info strong {
        color: var(--text-main);
        font-weight: 700;
    }


.progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef0f5;
}


.progress-bar {
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient( 90deg, var(--primary), #6366f1 );
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========================================================
           STEPS
        ========================================================== */

.steps-wrapper {
    flex: 1;
    position: relative;
}


.step {
    display: none;
    animation: stepEnter 0.35s ease forwards;
}


    .step.active {
        display: block;
    }


@keyframes stepEnter {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
           STEP HEADER
        ========================================================== */

.step-header {
    margin-bottom: 32px;
}


.step-title {
    color: var(--text-main);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 8px;
}


.step-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
}


/* =========================================================
           FORM GROUP
        ========================================================== */

.form-group {
    margin-bottom: 22px;
}


label:not(.option-card) {
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
}


/* =========================================================
           INPUT
        ========================================================== */

input[type="text"],
input[type="tel"] {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text-main);
    background: #fafafa;
    font-size: 0.95rem;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}


    input[type="text"]::placeholder,
    input[type="tel"]::placeholder {
        color: #9ca3af;
    }


    input[type="text"]:hover,
    input[type="tel"]:hover {
        border-color: var(--border-dark);
        background: white;
    }


    input[type="text"]:focus,
    input[type="tel"]:focus {
        border-color: var(--primary);
        background: white;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10);
    }


input.input-error {
    border-color: var(--danger) !important;
    background: var(--danger-background) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}


/* =========================================================
           OPTION CARDS
        ========================================================== */

.option-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}


.option-card {
    min-height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fafafa;
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}


    .option-card:hover {
        border-color: #a5b4fc;
        background: var(--primary-soft);
        transform: translateY(-1px);
    }


    .option-card.selected {
        border-color: var(--primary);
        background: var(--primary-light);
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.08);
    }


.option-title {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
}


.option-card input[type="radio"] {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}


/* =========================================================
           ERROR MESSAGE
        ========================================================== */

.error-msg {
    display: none;
    margin-top: 9px;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.7;
}


/* =========================================================
           BUTTONS
        ========================================================== */

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}


.btn {
    height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
}


    .btn:active {
        transform: scale(0.98);
    }


.btn-primary {
    flex: 1;
    color: white;
    background: linear-gradient( 135deg, var(--primary), #6366f1 );
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.20);
}


    .btn-primary:hover {
        background: linear-gradient( 135deg, var(--primary-dark), var(--primary) );
        box-shadow: 0 10px 25px rgba(79, 70, 229, 0.28);
        transform: translateY(-1px);
    }


.btn-secondary {
    flex: 0 0 110px;
    color: var(--text-secondary);
    background: #f3f4f6;
}


    .btn-secondary:hover {
        color: var(--text-main);
        background: #e5e7eb;
    }


.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}


/* =========================================================
           LOADING
        ========================================================== */

.btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}


.spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
           ERROR ALERT
        ========================================================== */

.submit-error {
    display: none;
    margin-top: 18px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: var(--danger);
    background: var(--danger-background);
    font-size: 0.82rem;
    line-height: 1.8;
    text-align: center;
}


/* =========================================================
           TABLET
        ========================================================== */

@media (max-width: 900px) {


    .page {
        padding: 25px;
    }


    .registration-container {
        max-width: 650px;
        grid-template-columns: 1fr;
        min-height: auto;
    }


    .visual-panel {
        display: none;
    }


    .form-panel {
        padding: 45px;
    }
}


/* =========================================================
           MOBILE
        ========================================================== */

@media (max-width: 600px) {


    .page {
        min-height: 100vh;
        padding: 15px;
        align-items: flex-start;
    }


    .registration-container {
        width: 100%;
        margin-top: 15px;
        border-radius: 22px;
        box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    }


    .form-panel {
        padding: 28px 22px 25px;
    }


    .progress-container {
        margin-bottom: 35px;
    }


    .step-title {
        font-size: 1.4rem;
    }


    .step-subtitle {
        font-size: 0.88rem;
    }


    input[type="text"],
    input[type="tel"] {
        height: 54px;
    }


    .btn {
        height: 54px;
    }


    .btn-secondary {
        flex: 0 0 90px;
    }


}


/* =========================================================
           VERY SMALL SCREENS
        ========================================================== */

@media (max-width: 360px) {


    .page {
        padding: 10px;
    }


    .form-panel {
        padding: 25px 17px 22px;
    }


    .btn-group {
        gap: 8px;
    }


    .btn {
        padding: 0 15px;
    }


    .btn-secondary {
        flex-basis: 80px;
    }
}


/* =========================================================
           ACCESSIBILITY
        ========================================================== */

@media (prefers-reduced-motion: reduce) {


    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   TOAST NOTIFICATIONS
========================================================= */

.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    min-width: 320px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    direction: rtl;
    text-align: right;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.06);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(-30px) scale(0.96);
    animation: toastEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow: hidden;
}


/* =========================================================
   TOAST ICON
========================================================= */

.toast-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
}


/* =========================================================
   TOAST CONTENT
========================================================= */

.toast-content {
    flex: 1;
}

.toast-title {
    margin-bottom: 3px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 800;
}

.toast-message {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.toast-close {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #9ca3af;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .toast-close:hover {
        color: var(--text-main);
        background: #f3f4f6;
    }


/* =========================================================
   SUCCESS
========================================================= */

.toast-success {
    border-right: 4px solid var(--success);
}

    .toast-success .toast-icon {
        color: var(--success);
        background: var(--success-light);
    }


/* =========================================================
   ERROR
========================================================= */

.toast-error {
    border-right: 4px solid var(--danger);
}

    .toast-error .toast-icon {
        color: var(--danger);
        background: var(--danger-background);
    }


/* =========================================================
   WARNING
========================================================= */

.toast-warning {
    border-right: 4px solid #f59e0b;
}

    .toast-warning .toast-icon {
        color: #d97706;
        background: #fffbeb;
    }


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes toastEnter {

    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


.toast.toast-exit {
    animation: toastExit 0.3s ease forwards;
}


@keyframes toastExit {

    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(-30px) scale(0.96);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .toast-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }


    .toast {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

/*.btn-group + .video-guide-container {
    margin-top: 25px;
    text-align: center;
}
*/
.btn-group + .video-guide-container {
    margin-top: 25px;
    display: flex;
    justify-content: flex-start; /* ????? ?????? ?? ???? ?? ???? Flex */
}
/* =========================================================
   STEP 5 - VIP ACCESS (Purple Theme)
   ??? ????? ????? ????
========================================================= */

#step5 {
    direction: rtl;
    text-align: right;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

#step5.active {
    animation: none;
}

    /* ????? ? ??????? ????? ???? */
    #step5 .step-header {
        margin-bottom: 28px;
        text-align: right;
    }

    #step5 .step-title {
        color: var(--text-main);
        font-size: 1.45rem;
        line-height: 1.8;
        margin-bottom: 10px;
    }

    #step5 .step-subtitle {
        color: var(--text-muted);
        font-size: 0.9rem;
        line-height: 2;
        margin-bottom: 4px;
    }

    /* ????? ????? */
    #step5 > .step-title {
        margin-bottom: 18px;
        font-size: 1.15rem;
        font-weight: 800;
    }

    /* ????? */
    #step5 .video-container {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-bottom: 26px;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: #fafafa;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }

        #step5 .panel-guide-video {
            display: block;
            width: 100%;
            height: 100%;
            background: #000;
            object-fit: contain;
        }

        #step5 .enable-video-sound {
            position: absolute;
            z-index: 2;
            left: 14px;
            bottom: 48px;
            min-height: 38px;
            padding: 8px 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 0;
            border-radius: 999px;
            max-width: calc(100% - 28px);
            color: white;
            background: var(--primary);
            font-family: inherit;
            font-size: 0.78rem;
            font-weight: 800;
            line-height: 1.4;
            cursor: pointer;
            box-shadow: 0 6px 18px rgba(49, 46, 129, 0.32);
            transition: transform var(--transition), background-color var(--transition), opacity var(--transition);
        }

        #step5 .enable-video-sound:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        #step5 .enable-video-sound:focus-visible {
            outline: 3px solid rgba(255, 255, 255, 0.9);
            outline-offset: 2px;
        }

        #step5 .enable-video-sound.is-hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        #step5 .enable-video-sound__icon {
            font-size: 0.9rem;
        }

    /* ?? ???? ?????? */
    #step5 .steps-container {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 26px;
    }

    #step5 .step-box {
        min-height: 92px;
        padding: 14px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        background: #fafafa;
        font-size: 0.78rem;
        line-height: 1.8;
        text-align: center;
        transition: border-color var(--transition), background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    }

        #step5 .step-box:hover {
            border-color: var(--primary);
            background: #f8f7ff; /* ???????? ????? ???? ???? ?? ???? */
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(79, 70, 229, 0.08);
        }

    #step5 .step-number {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 50%;
        color: white;
        background: var(--primary);
        font-size: 0.85rem;
        font-weight: 800;
    }

    /* ????? (??? ???????? ???? ????? ???? ? ????? ???? ?????) */
    #step5 .warning-box {
        width: 100%;
        margin-bottom: 22px;
        padding: 14px 16px;
        border-right: 4px solid var(--primary);
        border-radius: 8px;
        color: #4f46e5; /* ??????? ?? ??? ???? ???? ??? */
        background: #f3f2ff; /* ???????? ????? ???? */
        font-size: 0.82rem;
        line-height: 2;
        text-align: right;
    }

        #step5 .warning-box strong {
            color: #3b31d9;
            font-weight: 800;
        }

    /* ???? ??? */
    #step5 .submit-error {
        margin-top: 0;
        margin-bottom: 16px;
    }

    /* ??? ????? ????? btn-group ???? ??? ?? Step 5 */
    #step5 .btn-group {
        display: block;
        margin-top: 0;
    }

    /* ???? ???? ?? ??? */
    #step5 .docked-btn-container {
        width: 100%;
    }

    #step5 .cta-button {
        width: 100%;
        min-height: 60px;
        padding: 14px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        color: white;
        background: var(--primary);
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.7;
        text-align: center;
        text-decoration: none;
        box-shadow: none;
        transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    }

        #step5 .cta-button:hover {
            color: white;
            background: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
        }

        #step5 .cta-button:active {
            transform: scale(0.99);
        }


/* =========================================================
   STEP 5 - TABLET
========================================================= */

@media (max-width: 700px) {
    #step5 .steps-container {
        gap: 8px;
    }

    #step5 .step-box {
        padding: 12px 7px;
        font-size: 0.73rem;
    }
}


/* =========================================================
   STEP 5 - MOBILE
========================================================= */

@media (max-width: 600px) {
    #step5 .step-header {
        margin-bottom: 22px;
    }

    #step5 .step-title {
        font-size: 1.25rem;
    }

    #step5 > .step-title {
        font-size: 1rem;
    }

    #step5 .step-subtitle {
        font-size: 0.82rem;
    }

    #step5 .video-container {
        margin-bottom: 20px;
    }

        #step5 .enable-video-sound {
            left: 10px;
            bottom: 44px;
            min-height: 34px;
            padding: 7px 11px;
            font-size: 0.7rem;
        }

    #step5 .steps-container {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }

    #step5 .step-box {
        min-height: 64px;
        padding: 10px 14px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        font-size: 0.8rem;
        text-align: right;
    }

    #step5 .step-number {
        width: 30px;
        height: 30px;
    }

    #step5 .warning-box {
        margin-bottom: 18px;
        padding: 12px 13px;
        font-size: 0.76rem;
    }

    #step5 .cta-button {
        min-height: 56px;
        padding: 12px 14px;
        font-size: 0.88rem;
    }
}


/* =========================================================
   STEP 5 - SUCCESS ONBOARDING
========================================================= */

#step5 .step5-success-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: var(--radius-md);
    background: var(--primary-soft);
}

#step5 .step5-success-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    color: white;
    background: var(--primary);
    font-size: 1.35rem;
    font-weight: 900;
}

#step5 .step5-success-header .step-title {
    margin-bottom: 6px;
    color: var(--primary-dark);
}

#step5 .step5-success-header .step-title:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.28);
    outline-offset: 4px;
    border-radius: 4px;
}

#step5 .step5-success-header .step-subtitle {
    margin: 0;
}

#step5 .step5-welcome {
    margin-top: 6px;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.9;
}

#step5 .step5-section-title {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.8;
}

#step5 .step5-path {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

#step5 .step5-path-card {
    min-width: 0;
    min-height: 104px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: #fafafa;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
}

#step5 .step5-path-number {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: white;
    background: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
}

#step5 .step5-reminder {
    width: 100%;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-right: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--primary-light);
    font-size: 0.82rem;
    line-height: 2;
}

#step5 .step5-reminder strong {
    color: var(--primary-dark);
    font-weight: 800;
}

#step5 .step5-cta {
    position: fixed;
    z-index: 30;
    left: calc(50% + min(236px, calc(22.5vw - 18px)));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(468px, calc(55vw - 154px));
    min-height: 58px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    color: white;
    background: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(49, 46, 129, 0.28);
    transform: translateX(-50%);
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

#step5 .step5-cta:hover {
    color: white;
    background: var(--primary-dark);
    transform: translate(-50%, -1px);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
}

#step5 .step5-cta:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.3);
    outline-offset: 3px;
}

#step5 .step5-cta:active {
    transform: translateX(-50%) scale(0.99);
}

@media (max-width: 900px) {
    #step5 .step5-cta {
        left: 50%;
        width: min(560px, calc(100vw - 140px));
    }
}

@media (max-width: 600px) {
    #step5 .step5-success-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    #step5 .step5-success-icon {
        width: 40px;
        height: 40px;
    }

    #step5 .step5-path {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 18px;
    }

    #step5 .step5-path-card {
        min-height: 64px;
        padding: 10px 14px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: right;
    }

    #step5 .step5-reminder {
        margin-bottom: 18px;
        padding: 12px 13px;
        font-size: 0.76rem;
    }

    #step5 .step5-cta {
        width: calc(100vw - 74px);
        min-height: 56px;
        padding-right: 14px;
        padding-left: 14px;
        font-size: 0.88rem;
    }
}

@media (max-width: 360px) {
    #step5 {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

    #step5 .step5-cta {
        width: calc(100vw - 54px);
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    #step5 .step5-success-header {
        padding: 14px;
    }

    #step5 .enable-video-sound {
        left: 8px;
        max-width: calc(100% - 16px);
        padding-inline: 10px;
    }
}

