
    /* Override button icon padding for better alignment */
    .btn > i {
        padding-left: 0 !important;
    }
    
    body {
        font-family: 'Vazirmatn', sans-serif;
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
        background-attachment: fixed;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        color: #f1f5f9;
    }
    
    /* Prevent FOUC: Hide circular + button by default (will be shown in Step 2 via JS) */
    #step2_add_button_container {
        display: none !important;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    /* Show button with fade-in animation when step 2 is active */
    #step2_add_button_container.show-step2-button {
        display: flex !important;
        opacity: 1;
    }
    
    /* تم تیره حرفه‌ای */
    .card, .card-flush {
        background: rgba(30, 41, 59, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(148, 163, 184, 0.12);
        color: #f1f5f9;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-body.py-3 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* بهبود spacing برای form score gauge */
    #form_score_gauge_card .card-body {
        padding: 1rem 1.5rem;
    }
    
    #form_score_gauge_card h4 {
        font-size: 0.9375rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }
    
    .form-control,
    .form-select,
    .form-control-lg,
    .form-select-lg {
        background: rgba(30, 41, 59, 0.5);
        border: 1.5px solid rgba(148, 163, 184, 0.15);
        border-radius: 8px;
        color: #f1f5f9;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0.75rem 1rem;
    }
    
    .form-control:hover,
    .form-select:hover {
        border-color: rgba(148, 163, 184, 0.25);
        background: rgba(30, 41, 59, 0.6);
    }
    
    .form-control:focus,
    .form-select:focus,
    .form-control-lg:focus,
    .form-select-lg:focus {
        background: rgba(30, 41, 59, 0.7);
        border-color: #3b82f6;
        color: #f1f5f9;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.1);
        outline: none;
    }
    
    .form-control::placeholder,
    .form-select::placeholder {
        color: rgba(148, 163, 184, 0.5);
        opacity: 1;
    }
    
    .form-control:disabled,
    .form-select:disabled {
        background: rgba(30, 41, 59, 0.3);
        border-color: rgba(148, 163, 184, 0.1);
        color: rgba(148, 163, 184, 0.5);
        cursor: not-allowed;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border: none;
        color: white;
        border-radius: 8px;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        letter-spacing: -0.2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
        transform: translateY(-1px);
    }
    
    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    }
    
    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .text-gray-800,
    .text-gray-900 {
        color: #f1f5f9 !important;
    }
    
    .text-muted {
        color: rgba(148, 163, 184, 0.8) !important;
    }
    
    .text-gray-500 {
        color: rgba(148, 163, 184, 0.6) !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #f1f5f9;
        font-weight: 700;
        letter-spacing: -0.5px;
        line-height: 1.3;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }
    
    label {
        color: #f1f5f9;
        font-weight: 600;
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
        letter-spacing: -0.2px;
    }
    
    .form-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .form-label .required::after {
        content: '*';
        color: #ef4444;
        margin-right: 0.25rem;
    }
    
    /* استایل لوگو */
    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5rem 0 0.5rem;
        margin-bottom: 1rem;
        position: relative;
    }
    
    .logo-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        position: relative;
    }
    
    .logo-container img {
        max-height: 60px;
        width: auto;
        height: auto;
    }
    
    /* Mobile Step Title */
    .mobile-step-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #f1f5f9;
        white-space: nowrap;
    }
    
    /* Hide mobile title when empty or display:none */
    .mobile-step-title:empty {
        display: none !important;
    }
    
    @media (max-width: 991px) {
        .logo-container {
            padding: 1rem 0 0.5rem;
        }
        .logo-wrapper {
            gap: 0;
            width: 100%;
        }
        .logo-container img {
            max-height: 50px;
        }
        .mobile-step-title {
            font-size: 1.1rem;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            padding-right: 1rem;
        }
        /* Ensure title is hidden when empty */
        .mobile-step-title:empty {
            display: none !important;
        }
    }
    
    
    /* Step 3 Sub-sections */
    .step3-subsection {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .step3-subsection.d-none {
        display: none !important;
    }
    
    /* Better spacing for form rows */
    .fv-row {
        margin-bottom: 1.5rem;
    }
    
    .fv-row.mb-10 {
        margin-bottom: 2rem;
    }
    
    .fv-row.mb-8 {
        margin-bottom: 1.5rem;
    }
    
    /* Smooth transitions for form elements */
    .fv-row,
    .card,
    .alert {
        animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Step content transitions */
    /* Stepper container - ensure proper height for steps with scrollable content (2, 3, 4, 5) */
    #kt_create_account_stepper:has([data-kt-stepper-element="content"].current:has(.step-content-wrapper)) {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: 100vh;
        height: 100vh;
        overflow: hidden;
        overflow-x: visible; /* Allow horizontal overflow */
    }
    
    /* Stepper form container - apply flexbox for steps with scrollable content (2, 3, 4, 5) */
    #kt_create_account_stepper:has([data-kt-stepper-element="content"].current:has(.step-content-wrapper)) .d-flex.flex-column.flex-lg-row-fluid.px-10 {
        display: flex !important;
        flex-direction: column !important;
        flex: 1;
        min-height: 0;
        overflow: hidden;
        overflow-x: visible; /* Allow horizontal overflow */
        height: 100%;
    }
    
    /* Form wrapper inside stepper - for steps with scrollable content */
    #kt_create_account_stepper:has([data-kt-stepper-element="content"].current:has(.step-content-wrapper)) .d-flex.flex-column.flex-lg-row-fluid.px-10 > .d-flex.flex-center.flex-column.flex-column-fluid {
        display: flex !important;
        flex-direction: column !important;
        flex: 1;
        min-height: 0;
        overflow: hidden;
        overflow-x: visible; /* Allow horizontal overflow */
        height: 100%;
    }
    
    /* Form inner wrapper - for steps with scrollable content */
    #kt_create_account_stepper:has([data-kt-stepper-element="content"].current:has(.step-content-wrapper)) .d-flex.flex-column.flex-lg-row-fluid.px-10 .w-lg-650px {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
        overflow-x: visible; /* Allow horizontal overflow */
        height: 100%;
    }
    
    /* Stepper form wrapper - for steps with scrollable content */
    #kt_create_account_stepper:has([data-kt-stepper-element="content"].current:has(.step-content-wrapper)) #kt_create_account_form,
    #kt_create_account_form.has-scrollable-steps {
        display: flex !important;
        flex-direction: column !important;
        flex: 1;
        min-height: 0;
        overflow: hidden;
        overflow-x: visible; /* Allow horizontal overflow */
        position: relative;
        height: 100%;
    }
    
    /* Ensure buttons container doesn't scroll */
    #kt_create_account_form.has-scrollable-steps > #stepper_buttons_container {
        flex-shrink: 0 !important;
    }
    
    /* Parent container must allow overflow for sticky to work */
    #kt_create_account_stepper:has([data-kt-stepper-element="content"].current:has(.step-content-wrapper)) .d-flex.flex-column.flex-lg-row-fluid.px-10,
    #kt_create_account_stepper:has([data-kt-stepper-element="content"].current:has(.step-content-wrapper)) .d-flex.flex-column.flex-lg-row-fluid.px-10 > .d-flex.flex-center.flex-column.flex-column-fluid,
    #kt_create_account_stepper:has([data-kt-stepper-element="content"].current:has(.step-content-wrapper)) .d-flex.flex-column.flex-lg-row-fluid.px-10 .w-lg-650px {
        overflow: visible !important;
        overflow-x: visible !important; /* Ensure horizontal overflow is visible */
    }
    
    /* Allow overflow for step content wrapper to show absolute positioned elements (like remove buttons) */
    [data-kt-stepper-element="content"].current > .step-content-wrapper {
        overflow-y: auto;
        overflow-x: visible !important;
    }
    
    /* Allow overflow for cash selected cars containers */
    #cash_selected_cars_container,
    #cash_selected_cars_list,
    #selected_cars_container,
    #selected_cars_list {
        overflow: visible !important;
    }
    
    /* Ensure cash selected car items can show absolute positioned remove button */
    .cash-selected-car-minimal {
        overflow: visible !important;
    }
    
    /* Ensure selected car items (step 2) can show absolute positioned remove button */
    .selected-car-item {
        overflow: visible !important;
    }
    
    /* Stepper buttons container - Glassmorphism design with dark blue theme */
    #stepper_buttons_container.sticky-buttons {
        position: sticky !important;
        bottom: 1rem !important;
        z-index: 1000 !important;
        /* Glassmorphism effect - شیشه‌ای شفاف با رنگ آبی تیره بک‌گراند */
        /* استفاده از همان رنگ‌های بک‌گراند: #0f172a و #1e293b */
        background: rgba(30, 41, 59, 0.75) !important; /* #1e293b با شفافیت */
        backdrop-filter: blur(16px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
        /* Rounded corners - لبه‌های گرد */
        border-radius: 20px !important;
        /* Subtle border matching the theme */
        border: 1px solid rgba(148, 163, 184, 0.15) !important; /* همان border کارت‌ها */
        /* Beautiful shadow matching the dark theme */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                    0 2px 8px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        padding: 1.25rem 1.5rem !important;
        margin-top: 1rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    /* Dark mode support - استفاده از همان رنگ‌ها */
    [data-bs-theme="dark"] #stepper_buttons_container.sticky-buttons,
    body.dark-mode #stepper_buttons_container.sticky-buttons,
    .dark #stepper_buttons_container.sticky-buttons {
        background: rgba(30, 41, 59, 0.8) !important; /* کمی تیره‌تر در حالت تاریک */
        border: 1px solid rgba(148, 163, 184, 0.2) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                    0 2px 8px rgba(0, 0, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    }
    
    /* More space on mobile to be above floating button */
    @media (max-width: 991px) {
        #stepper_buttons_container.sticky-buttons {
            bottom: 5rem !important; /* Space above floating button */
            border-radius: 16px !important; /* Slightly smaller radius on mobile */
            padding: 0.75rem 1rem !important; /* Reduced padding for mobile */
            max-width: calc(100% - 1rem) !important; /* Less margin on mobile */
        }
    }
    
    @media (max-width: 991px) {
        #kt_create_account_form > .d-flex.flex-stack.pt-15 {
            padding-top: 1rem !important;
            padding-bottom: 1rem !important;
        }
    }
    
    [data-kt-stepper-element="content"] {
        animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: none; /* Hide all steps by default */
        min-height: 0;
    }
    
    [data-kt-stepper-element="content"].current {
        display: block; /* Default: normal flow */
        min-height: 0;
        flex: 1;
        overflow: hidden; /* Prevent page scroll */
        overflow-x: visible; /* Allow horizontal overflow */
        position: relative;
    }
    
    /* Use flexbox for steps with scrollable content (2, 3, 4, 5) */
    [data-kt-stepper-element="content"].current:has(.step-content-wrapper) {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
        overflow-x: visible; /* Allow horizontal overflow */
    }
    
    /* Step content wrapper - For all steps except Step 1 */
    [data-kt-stepper-element="content"].current > .step-content-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: visible !important;
        display: flex;
        flex-direction: column;
        /* Add padding-bottom to prevent content from scrolling behind sticky buttons */
        padding-bottom: 100px; /* Space for buttons container */
    }
    
    /* Limit scrollable content height so it doesn't overlap with sticky buttons */
    #kt_create_account_form.has-scrollable-steps [data-kt-stepper-element="content"].current > .step-content-wrapper {
        max-height: calc(100vh - 250px); /* Leave space for buttons and other elements */
        padding-bottom: 100px; /* Ensure content doesn't scroll behind buttons */
    }
    
    @media (max-width: 991px) {
        #kt_create_account_form.has-scrollable-steps [data-kt-stepper-element="content"].current > .step-content-wrapper {
            max-height: calc(100vh - 300px); /* More space on mobile for floating button */
            padding-bottom: 120px; /* More space on mobile for buttons and floating button */
        }
    }
    
    /* Step 1 - Keep normal flow (no step-content-wrapper) */
    [data-kt-stepper-element="content"].current:not(:has(.step-content-wrapper)) > .w-100 {
        /* Normal flow - no special styling */
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Smooth step navigation */
    .stepper-item {
        will-change: transform, background-color;
    }
    
    /* Loading states */
    .indicator-progress {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    [data-kt-indicator="on"] .indicator-progress {
        opacity: 1;
    }
    
    [data-kt-indicator="on"] .indicator-label {
        opacity: 0;
    }
    
    /* یکسان‌سازی رنگ‌بندی در تمام المان‌ها */
    .alert {
        border-radius: 10px;
        border-width: 1.5px;
        padding: 1rem 1.25rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .alert-info {
        background-color: rgba(59, 130, 246, 0.12) !important;
        border-color: rgba(59, 130, 246, 0.25) !important;
        color: #60a5fa !important;
    }
    
    .alert-success,
    .bg-light-success {
        background-color: rgba(34, 197, 94, 0.12) !important;
        border-color: rgba(34, 197, 94, 0.25) !important;
        color: #4ade80 !important;
    }
    
    .alert-danger {
        background-color: rgba(239, 68, 68, 0.12) !important;
        border-color: rgba(239, 68, 68, 0.25) !important;
        color: #f87171 !important;
    }
    
    .alert-warning {
        background-color: rgba(234, 179, 8, 0.12) !important;
        border-color: rgba(234, 179, 8, 0.25) !important;
        color: #fbbf24 !important;
    }
    
    .btn-light,
    .btn-light-primary {
        background-color: rgba(30, 41, 59, 0.5) !important;
        border: 1.5px solid rgba(148, 163, 184, 0.2) !important;
        color: #f1f5f9 !important;
        border-radius: 8px;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        letter-spacing: -0.2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn-light:hover,
    .btn-light-primary:hover {
        background-color: rgba(59, 130, 246, 0.15) !important;
        border-color: #3b82f6 !important;
        color: #f1f5f9 !important; /* سفید برای قابل دیدن بودن روی بک‌گراند تیره */
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    }
    
    .btn-light:active,
    .btn-light-primary:active {
        transform: translateY(0);
    }
    
    .btn-light-warning {
        background-color: rgba(234, 179, 8, 0.1) !important;
        border-color: rgba(234, 179, 8, 0.3) !important;
        color: #eab308 !important;
    }
    
    .btn-light-warning:hover {
        background-color: rgba(234, 179, 8, 0.2) !important;
        border-color: #eab308 !important;
        color: #eab308 !important;
    }
    
    .btn-light-danger {
        background-color: rgba(239, 68, 68, 0.1) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
        color: #ef4444 !important;
    }
    
    .btn-light-danger:hover {
        background-color: rgba(239, 68, 68, 0.2) !important;
        border-color: #ef4444 !important;
        color: #ef4444 !important;
    }
    
    /* رنگ‌های متنی */
    .text-gray-500,
    .text-gray-600,
    .text-gray-700,
    .text-gray-800,
    .text-gray-900 {
        color: rgba(148, 163, 184, 0.8) !important;
    }
    
    /* پس‌زمینه‌های روشن */
    .bg-light,
    .bg-light-primary,
    .bg-light-success,
    .bg-light-info,
    .bg-light-warning,
    .bg-light-danger {
        background-color: rgba(30, 41, 59, 0.6) !important;
    }
    
    /* Badge ها */
    .badge-light-primary,
    .badge-light-success,
    .badge-light-info,
    .badge-light-warning,
    .badge-light-danger {
        background-color: rgba(30, 41, 59, 0.6) !important;
        color: #f1f5f9 !important;
    }
    
    .badge-light-primary {
        background-color: rgba(59, 130, 246, 0.2) !important;
        color: #3b82f6 !important;
    }
    
    .badge-light-success {
        background-color: rgba(34, 197, 94, 0.2) !important;
        color: #22c55e !important;
    }
    
    .badge-light-info {
        background-color: rgba(59, 130, 246, 0.2) !important;
        color: #3b82f6 !important;
    }
    
    .badge-light-warning {
        background-color: rgba(234, 179, 8, 0.2) !important;
        color: #eab308 !important;
    }
    
    .badge-light-danger {
        background-color: rgba(239, 68, 68, 0.2) !important;
        color: #ef4444 !important;
    }
    
    /* رنگ‌های اضافی */
    .simple-persian-datepicker-nav-btn {
        color: rgba(148, 163, 184, 0.8);
    }
    
    .simple-persian-datepicker-month-year:hover {
        background-color: rgba(59, 130, 246, 0.2);
    }
    /* صفحه لودینگ حرفه‌ای و زیبا */
    .loading-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        z-index: 99999;
        opacity: 0;
        transform: scale(0.9);
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.4s;
    }

    /* کلاس برای نمایش */
    .loading-container.visible {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }

    /* استایل برای اسپینر حرفه‌ای */
    .loading-spinner-wrapper {
        position: relative;
        width: 80px;
        height: 80px;
        margin-bottom: 30px;
    }

    .spinner {
        width: 80px;
        height: 80px;
        border: 5px solid rgba(255, 255, 255, 0.1);
        border-top: 5px solid #3b82f6;
        border-right: 5px solid #3b82f6;
        border-radius: 50%;
        animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* اسپینر داخلی برای افکت لایه‌ای */
    .spinner-inner {
        width: 60px;
        height: 60px;
        border: 4px solid rgba(255, 255, 255, 0.05);
        border-top: 4px solid rgba(59, 130, 246, 0.6);
        border-radius: 50%;
        animation: spinReverse 1.2s linear infinite;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    /* انیمیشن چرخش */
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @keyframes spinReverse {
        0% { transform: rotate(360deg); }
        100% { transform: rotate(0deg); }
    }

    /* استایل برای متن لودینگ فارسی */
    .loading-text {
        color: #ffffff;
        margin-top: 20px;
        font-size: 20px;
        font-weight: 600;
        font-family: 'Vazirmatn', sans-serif;
        text-align: center;
        direction: rtl;
        letter-spacing: 1px;
        animation: pulse 1.5s ease-in-out infinite;
    }

    /* Form Score Gauge Styles - Minimal Design */
    .form-score-gauge {
        position: relative;
        padding: 10px 0;
    }
    
    .gauge-container {
        position: relative;
        height: 35px;
        margin: 15px 0;
    }
    
    .gauge-bar {
        position: relative;
        width: 100%;
        height: 8px;
        background: linear-gradient(to right, #ef4444 0%, #f97316 25%, #eab308 50%, #22c55e 75%, #22c55e 100%);
        border-radius: 4px;
        overflow: visible;
    }
    
    .gauge-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0%;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .gauge-indicator {
        position: absolute;
        top: 3px;
        left: 0%;
        transform: translateX(-50%);
        transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10;
    }
    
    .gauge-pointer {
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 8px solid #1f2937;
        margin: 0 auto;
    }
    
    .gauge-value {
        background: #1f2937;
        color: #ffffff;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 11px;
        white-space: nowrap;
        margin-top: 2px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }
    
    .gauge-value::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-top: 3px solid #1f2937;
    }
    
    /* انیمیشن ضربان برای متن */
    @keyframes pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.7;
            transform: scale(1.05);
        }
    }

    /* آیکون یا لوگو در صورت نیاز */
    .loading-icon {
        margin-bottom: 20px;
        opacity: 0.9;
    }
    
    /* Mobile Verification Styles */
    .verification-option {
        transition: all 0.3s ease;
        border: 2px solid #e4e6ef !important;
    }
    
    .verification-option:hover {
        border-color: #3b82f6 !important;
        background-color: rgba(59, 130, 246, 0.1);
    }
    
    .verification-option input[type="radio"]:checked ~ .verification-option,
    .verification-option:has(input[type="radio"]:checked) {
        border-color: #3b82f6 !important;
        background-color: rgba(59, 130, 246, 0.1);
    }
    
    .verification-fields {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    #verification_status .alert {
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* Numeric input styling for mobile keypad */
    input[inputmode="numeric"] {
        font-variant-numeric: tabular-nums;
        -moz-appearance: textfield;
    }
    
    /* Prevent default keyboard on mobile when readonly */
    input[inputmode="numeric"][readonly] {
        -webkit-user-select: none;
        user-select: none;
        cursor: pointer;
    }
    
    input[inputmode="none"] {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Hide spinner buttons */
    input[inputmode="numeric"]::-webkit-outer-spin-button,
    input[inputmode="numeric"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    /* Custom Numeric Keypad Styles */
    .numeric-keypad {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 2px solid #1f2937;
        padding: 15px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        z-index: 2000000005 !important; /* Higher than menu button */
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: none;
    }
    
    .numeric-keypad.show {
        transform: translateY(0);
        display: block;
    }
    
    .numeric-keypad-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #1f2937;
    }
    
    .numeric-keypad-header-top {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .numeric-keypad-title {
        font-weight: 600;
        color: #e5e7eb;
        font-size: 14px;
    }
    
    .numeric-keypad-display {
        background: rgba(30, 41, 59, 0.6);
        border: 2px solid #1f2937;
        border-radius: 10px;
        padding: 12px 16px;
        font-size: 20px;
        font-weight: 600;
        color: #e5e7eb;
        text-align: center;
        direction: ltr; /* LTR for numbers */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-variant-numeric: tabular-nums;
        position: relative;
    }
    
    /* Placeholder state - shows Persian text with RTL */
    .numeric-keypad-display.has-placeholder:empty {
        direction: rtl; /* RTL for Persian placeholder text */
    }
    
    .numeric-keypad-display.has-placeholder:empty::before {
        content: attr(data-placeholder);
        color: #94a3b8;
        font-weight: 400;
    }
    
    .numeric-keypad-btn.numeric-keypad-confirm {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #ffffff;
        font-size: 24px;
    }
    
    .numeric-keypad-btn.numeric-keypad-confirm:active {
        background: #2563eb;
        border-color: #2563eb;
        transform: scale(0.95);
    }
    
    .numeric-keypad-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 100%;
        direction: ltr;
        text-align: center;
    }
    
    .numeric-keypad-btn {
        background: rgba(30, 41, 59, 0.6);
        border: 1px solid #1f2937;
        border-radius: 12px;
        padding: 18px;
        font-size: 24px;
        font-weight: 600;
        color: #e5e7eb;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .numeric-keypad-btn:active {
        background: rgba(59, 130, 246, 0.2);
        border-color: #3b82f6;
        transform: scale(0.95);
    }
    
    .numeric-keypad-btn.delete {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.3);
        color: #f87171;
        font-size: 20px;
    }
    
    .numeric-keypad-btn.delete:active {
        background: rgba(239, 68, 68, 0.25);
        border-color: #ef4444;
    }
    
    .numeric-keypad-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 2000000004 !important; /* Higher than menu button */
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .numeric-keypad-overlay.show {
        display: block;
        opacity: 1;
    }
    
    /* Show keypad only on mobile/tablet */
    @media (min-width: 992px) {
        .numeric-keypad,
        .numeric-keypad-overlay {
            display: none !important;
        }
    }
    
    /* Step 1 Inline Keypad Styles (Mobile/Tablet Only) */
    .step1-inline-keypad {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .step1-keypad-container {
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(148, 163, 184, 0.12);
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .step1-keypad-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .step1-keypad-header-top {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .step1-keypad-title {
        font-weight: 600;
        color: #e5e7eb;
        font-size: 14px;
    }
    
    .step1-keypad-display {
        background: rgba(30, 41, 59, 0.8);
        border: 2px solid rgba(148, 163, 184, 0.15);
        border-radius: 12px;
        padding: 16px 20px;
        font-size: 24px;
        font-weight: 600;
        color: #e5e7eb;
        text-align: center;
        direction: ltr;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-variant-numeric: tabular-nums;
        transition: all 0.3s ease;
    }
    
    .step1-keypad-display.has-placeholder:empty {
        direction: rtl;
    }
    
    .step1-keypad-display.has-placeholder:empty::before {
        content: attr(data-placeholder);
        color: rgba(148, 163, 184, 0.6);
        font-weight: 400;
        font-size: 16px;
    }
    
    .step1-keypad-display.shake {
        animation: shake 0.5s;
        border-color: #ef4444;
        background: rgba(239, 68, 68, 0.1);
    }
    
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
        20%, 40%, 60%, 80% { transform: translateX(8px); }
    }
    
    .step1-keypad-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        direction: ltr;
        text-align: center;
    }
    
    .step1-keypad-btn {
        background: rgba(30, 41, 59, 0.8);
        border: 1.5px solid rgba(148, 163, 184, 0.15);
        border-radius: 12px;
        padding: 20px;
        font-size: 24px;
        font-weight: 600;
        color: #e5e7eb;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 64px;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .step1-keypad-btn:active {
        background: rgba(59, 130, 246, 0.2);
        border-color: #3b82f6;
        transform: scale(0.95);
    }
    
    .step1-keypad-btn.step1-keypad-confirm {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #ffffff;
        font-size: 28px;
        /* Position in last row, left column - natural grid flow places it correctly */
    }
    
    .step1-keypad-btn.step1-keypad-confirm:active {
        background: #2563eb;
        border-color: #2563eb;
        transform: scale(0.95);
    }
    
    .step1-keypad-btn.step1-keypad-delete {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.3);
        color: #f87171;
        font-size: 20px;
        /* Position in last row, right column - natural grid flow places it correctly */
    }
    
    .step1-keypad-btn.step1-keypad-delete:active {
        background: rgba(239, 68, 68, 0.25);
        border-color: #ef4444;
    }
    
    /* "0" button is in last row, middle column - natural grid flow places it correctly */
    
    /* Hide inline keypad on desktop */
    @media (min-width: 992px) {
        .step1-inline-keypad {
            display: none !important;
        }
    }
    
    /* Hide phone input, label and validation on mobile/tablet when inline keypad is active */
    @media (max-width: 991px) {
        #mobile_phone.step1-mobile-hidden {
            display: none !important;
        }
        .fv-row.mb-10.step1-phone-hidden label,
        .fv-row.mb-10.step1-phone-hidden .fv-plugins-message-container {
            display: none !important;
        }
        /* Hide OTP input cells on mobile/tablet when inline keypad is active */
        #otp_section_existing.step1-otp-hidden label,
        #otp_section_existing.step1-otp-hidden #otp_inputs_step1,
        #otp_section_existing.step1-otp-hidden .otp-input-container {
            display: none !important;
        }
        /* Keep OTP section visible for timer and result messages, but hide input cells */
        #otp_section_existing.step1-otp-hidden {
            display: block !important;
        }
        #otp_section_existing.step1-otp-hidden #otp_timer_step1,
        #otp_section_existing.step1-otp-hidden #otp_result_step1 {
            display: block !important;
        }
    }
    
    /* Car Selection Modal Styles */
    .car-card {
        border: 2px solid #e4e6ef;
        border-radius: 12px;
        padding: 1rem;
        transition: all 0.3s ease;
        cursor: pointer;
        height: 100%;
        position: relative;
    }
    
    .car-card:hover {
        border-color: #3b82f6;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
        transform: translateY(-2px);
    }
    
    /* Darker color for title (brand name) when car is not selected */
    .car-card h5 {
        color: #f1f5f9;
        font-weight: 600;
    }
    
    .car-card.selected {
        border-color: #3b82f6;
        background-color: rgba(59, 130, 246, 0.1);
    }
    
    .car-card.selected h5,
    .car-card.selected p {
        color: #f1f5f9 !important;
    }
    
    .car-card.selected::after {
        content: "✓";
        position: absolute;
        top: 10px;
        left: 10px;
        background: #3b82f6;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    
    .car-image {
        width: 100%;
        height: 200px;
        object-fit: contain;
        border-radius: 8px;
        background: rgba(30, 41, 59, 0.4);
    }
    
    .car-badge {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    /* Brand Navigation Bar Styles */
    .brand-nav-bar {
        background: rgba(30, 41, 59, 0.6) !important;
        padding: 1.25rem 1.5rem !important;
        border-radius: 12px !important;
        border: 1px solid rgba(148, 163, 184, 0.2) !important;
        position: sticky !important;
        top: 70px !important;
        z-index: 10 !important;
        margin-bottom: 1.5rem !important;
        margin-top: 1rem !important;
        /* فاصله از لبه‌ها در دسکتاپ */
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        max-width: calc(100% - 2rem) !important;
        /* بهبود ظاهر با backdrop filter */
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* در دسکتاپ بزرگ‌تر، فاصله بیشتر و max-width محدود */
    @media (min-width: 992px) {
        .brand-nav-bar {
            max-width: calc(100% - 4rem) !important;
            padding: 1.5rem 2rem !important;
            margin-left: 2rem !important;
            margin-right: 2rem !important;
        }
    }
    
    @media (min-width: 1200px) {
        .brand-nav-bar {
            max-width: 1200px !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
    }
    
    /* Car Selection Inline Container - No flex, just normal flow */
    .car-selection-inline {
        width: 100%;
    }
    
    .car-selection-inline > #cars_loading,
    .car-selection-inline > #brand_navigation_bar,
    .car-selection-inline > #cars_no_results {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 1rem;
        flex-shrink: 0;
        /* Override margin for brand navigation bar to have spacing from edges */
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
    
    @media (min-width: 992px) {
        .car-selection-inline > #brand_navigation_bar {
            margin-left: 2rem !important;
            margin-right: 2rem !important;
        }
    }
    
    @media (min-width: 1200px) {
        .car-selection-inline > #brand_navigation_bar {
            margin-left: auto !important;
            margin-right: auto !important;
            max-width: 1200px !important;
        }
    }
    
    .car-selection-inline > #cars_loading,
    .car-selection-inline > #cars_no_results {
        padding-top: 1rem;
    }
    
    /* Cars Grid Container - No scroll, parent handles it */
    .car-selection-inline > #cars_grid_container {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 1rem;
    }
    
    /* Custom scrollbar styling for all steps with step-content-wrapper */
    [data-kt-stepper-element="content"].current > .step-content-wrapper::-webkit-scrollbar {
        width: 8px;
    }
    
    [data-kt-stepper-element="content"].current > .step-content-wrapper::-webkit-scrollbar-track {
        background: rgba(30, 41, 59, 0.3);
        border-radius: 4px;
    }
    
    [data-kt-stepper-element="content"].current > .step-content-wrapper::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.5);
        border-radius: 4px;
    }
    
    [data-kt-stepper-element="content"].current > .step-content-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(148, 163, 184, 0.7);
    }
    
    .car-selection-inline > .car-modal-search-bar {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1rem;
        flex-shrink: 0;
    }
    
    .car-selection-inline > .active-filters-bar {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 1rem;
        flex-shrink: 0;
    }
    
    .brand-nav-buttons {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .brand-nav-btn {
        padding: 0.5rem 1rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
        background: rgba(30, 41, 59, 0.6);
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.875rem;
        color: #f1f5f9;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .brand-nav-btn:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: #3b82f6;
        color: #3b82f6;
        transform: translateY(-1px);
    }
    
    .brand-nav-btn.active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: white;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    
    /* Mobile Brand Dropdown */
    .brand-nav-mobile {
        width: 100%;
    }
    
    .brand-nav-mobile #toggle_brand_dropdown {
        background: rgba(30, 41, 59, 0.6);
        border: 1px solid rgba(148, 163, 184, 0.2);
        color: #f1f5f9;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .brand-nav-mobile #toggle_brand_dropdown:hover {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(148, 163, 184, 0.4);
    }
    
    .brand-nav-mobile .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .brand-dropdown-menu {
        display: none;
        margin-top: 0.5rem;
        background: rgba(30, 41, 59, 0.8);
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 8px;
        padding: 0.75rem;
        max-height: 300px;
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .brand-dropdown-menu.show {
        display: block;
    }
    
    .brand-nav-buttons-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .brand-nav-buttons-mobile .brand-nav-btn {
        width: 100%;
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    @media (max-width: 768px) {
        .brand-nav-bar {
            top: 60px;
            padding: 0.75rem;
            margin-top: 0.5rem;
            margin-bottom: 1rem;
            /* در موبایل margin چپ و راست کمتر */
            margin-left: 0.5rem;
            margin-right: 0.5rem;
            max-width: calc(100% - 1rem);
        }
        
        .brand-nav-desktop {
            display: none !important;
        }
        
        .brand-nav-mobile {
            display: block !important;
        }
    }
    
    @media (min-width: 769px) {
        .brand-nav-desktop {
            display: flex !important;
        }
        
        .brand-nav-mobile {
            display: none !important;
        }
    }
    
    /* Brand Section Styles */
    .brand-section {
        margin-bottom: 2rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 12px;
        overflow: hidden;
        background: rgba(30, 41, 59, 0.6);
    }
    
    .brand-header {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
        padding: 1rem 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
        border-bottom: 2px solid transparent;
    }
    
    .brand-header:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 41, 59, 0.6) 100%);
        border-bottom-color: #3b82f6;
    }
    
    .brand-header h4 {
        margin: 0;
        color: #f1f5f9;
        font-weight: 600;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .brand-header .car-count {
        color: rgba(148, 163, 184, 0.8);
        font-weight: 500;
        font-size: 0.9rem;
    }
    
    .brand-header .collapse-icon {
        transition: transform 0.3s ease;
        color: rgba(148, 163, 184, 0.8);
        font-size: 1.2rem;
    }
    
    .brand-header[aria-expanded="false"] .collapse-icon {
        transform: rotate(-90deg);
    }
    
    .brand-cars {
        padding: 1.5rem;
    }
    
    .brand-cars .row {
        margin: 0;
    }
    
    .brand-cars.collapse:not(.show) {
        display: none;
    }
    
    .brand-cars.collapsing {
        position: relative;
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease;
    }
    
    /* Total cars count display */
    .total-cars-count {
        background: #f1faff;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        text-align: center;
        color: #181c32;
        font-weight: 600;
        border: 1px solid #e4e6ef;
    }
    
    /* Minimal Selected Car Item */
    .selected-car-item {
        border: 1px solid #22c55e;
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: rgba(30, 41, 59, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        position: relative;
        transition: all 0.3s ease;
    }
    
    .selected-car-item:hover {
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        transform: translateY(-1px);
    }
    
    .selected-car-item h6 {
        color: #f1f5f9 !important;
        font-size: 0.875rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;
    }
    
    .selected-car-item .text-muted {
        color: rgba(148, 163, 184, 0.8) !important;
        font-size: 0.75rem;
        margin: 0;
    }
    
    .selected-car-item .btn-light-danger {
        background-color: rgba(241, 65, 108, 0.15) !important;
        border: 1px solid rgba(241, 65, 108, 0.3) !important;
        color: #f1416c !important;
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.3s ease;
        flex-shrink: 0;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .selected-car-item .btn-light-danger:hover {
        background-color: rgba(241, 65, 108, 0.3) !important;
        border-color: #f1416c !important;
        color: #ffffff !important;
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(241, 65, 108, 0.4);
    }
    
    .selected-car-item .btn-light-danger i {
        font-size: 0.875rem;
    }
    
    .selected-car-image {
        width: 60px;
        height: 60px;
        object-fit: contain;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    /* Mobile optimization for selected cars */
    @media (max-width: 576px) {
        .selected-car-item {
            padding: 0.5rem;
            gap: 0.5rem;
        }
        
        .selected-car-image {
            width: 50px;
            height: 50px;
        }
        
        .selected-car-item h6 {
            font-size: 0.8125rem;
        }
        
        .selected-car-item .text-muted {
            font-size: 0.6875rem;
        }
        
        .selected-car-item .btn-light-danger {
            width: 24px;
            height: 24px;
        }
        
        .selected-car-item .btn-light-danger i {
            font-size: 0.75rem;
        }
    }
    
    
    /* Ensure cars grid doesn't overflow */
    #cars_grid_container {
        margin-bottom: 1rem;
    }
    
    /* Cash Purchase Suggested Cars Container - بدون محدودیت ارتفاع */
    #suggested_cars_cash {
        /* حذف محدودیت ارتفاع و اسکرول */
        overflow: visible;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    
    /* Ensure the cash purchase fields container doesn't push buttons down */
    #cash_purchase_fields {
        display: flex;
        flex-direction: column;
    }
    
    #cash_purchase_fields .fv-row {
        flex-shrink: 0;
    }
    
    #cash_purchase_fields #suggested_cars_cash {
        flex: 0 1 auto;
        /* بدون محدودیت ارتفاع */
    }
    
    /* Cash Purchase Car Cards - Clickable */
    #suggested_cars_cash .car-card-cash {
        border: 2px solid #e4e6ef;
        border-radius: 12px;
        padding: 1rem;
        transition: all 0.3s ease;
        cursor: pointer;
        height: 100%;
        position: relative;
    }
    
    #suggested_cars_cash .car-card-cash:hover {
        border-color: #3b82f6;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
        transform: translateY(-2px);
    }
    
    #suggested_cars_cash .car-card-cash.selected {
        border-color: #3b82f6;
        background-color: rgba(59, 130, 246, 0.1);
    }
    
    #suggested_cars_cash .car-card-cash.selected .card-title {
        color: #f1f5f9 !important;
    }
    
    #suggested_cars_cash .car-card-cash.selected::after {
        content: "✓";
        position: absolute;
        top: 10px;
        left: 10px;
        background: #3b82f6;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 18px;
    }
    
    /* Cash Selected Cars - Minimal Display */
    .cash-selected-car-minimal {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
        background-color: rgba(59, 130, 246, 0.1);
        border: 1px solid #3b82f6;
        border-radius: 8px;
        position: relative;
        min-width: 200px;
    }
    
    .cash-selected-car-minimal img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        border-radius: 6px;
        background: #fff;
    }
    
    .cash-selected-car-minimal .car-info {
        flex: 1;
        min-width: 0;
    }
    
    .cash-selected-car-minimal .car-info h6 {
        font-size: 0.875rem;
        font-weight: 600;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #f1f5f9 !important;
    }
    
    .cash-selected-car-minimal .car-info p {
        font-size: 0.75rem;
        color: rgba(148, 163, 184, 0.8);
        margin: 0;
    }
    
    .cash-selected-car-minimal .btn-remove-cash {
        position: absolute;
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 50%;
        background: #f1416c;
        color: white;
        border: 2px solid white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(241, 65, 108, 0.3);
        z-index: 10;
        line-height: 1;
    }
    
    .cash-selected-car-minimal .btn-remove-cash:hover {
        background: #d9214e;
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(241, 65, 108, 0.5);
        border-color: #fff;
    }
    
    .cash-selected-car-minimal .btn-remove-cash:active {
        transform: scale(1.05);
    }
    
    /* National ID Input Visual Validation Indicator */
    .national-id-input-wrapper {
        position: relative;
    }
    
    .national-id-validation-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1;
    }
    
    .national-id-validation-icon.valid {
        color: #50cd89;
    }
    
    .national-id-validation-icon.invalid {
        color: #f1416c;
    }
    
    .national-id-validation-icon.hidden {
        opacity: 0;
    }
    
    #step3_personal_number {
        padding-left: 2.5rem;
    }
    
    /* Welcome message - absolute positioning */
    #welcome_message_container {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        max-width: 90%;
        width: auto;
        min-width: 300px;
        pointer-events: none;
    }
    
    #welcome_message_container .welcome-message-content {
        background: linear-gradient(135deg, rgba(0, 158, 247, 0.95) 0%, rgba(24, 28, 50, 0.95) 100%);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 12px 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        gap: 12px;
        pointer-events: auto;
    }
    
    #welcome_message_container .welcome-icon {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #welcome_message_container .welcome-text {
        color: #ffffff;
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.4;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Desktop - position at top right to avoid interference with left content */
    @media (min-width: 992px) {
        #welcome_message_container {
            top: 30px;
            left: auto;
            right: 30px;
            transform: none;
            max-width: 400px;
        }
    }
    
    /* Tablet and Mobile - adjust position */
    @media (max-width: 991.98px) {
        #welcome_message_container {
            top: 15px;
            left: 50%;
            transform: translateX(-50%);
            max-width: calc(100% - 30px);
            min-width: auto;
        }
        
        #welcome_message_container .welcome-message-content {
            padding: 10px 14px;
        }
        
        #welcome_message_container .welcome-text {
            font-size: 0.8125rem;
            white-space: normal;
        }
        
        #welcome_message_container .welcome-icon {
            width: 28px;
            height: 28px;
        }
    }
    
    /* Small mobile */
    @media (max-width: 576px) {
        #welcome_message_container {
            top: 10px;
            max-width: calc(100% - 20px);
        }
        
        #welcome_message_container .welcome-message-content {
            padding: 8px 12px;
        }
        
        #welcome_message_container .welcome-text {
            font-size: 0.75rem;
        }
    }
    
    /* Verification Options Styles */
    .verification-option {
        transition: all 0.3s ease;
        border: 2px solid #e4e6ef !important;
        background: transparent;
    }
    
    .verification-option:hover {
        border-color: #009ef7 !important;
        background: #f1faff;
    }
    
    .verification-option:has(input[type="radio"]:checked) {
        border-color: #009ef7 !important;
        background-color: #f1faff !important;
    }
    
    .verification-option:has(input[type="radio"]:checked) .fw-bold {
        color: #181c32 !important;
    }
    
    .verification-option:has(input[type="radio"]:checked) .text-muted {
        color: #7e8299 !important;
    }
    
    .verification-option .symbol {
        flex-shrink: 0;
    }
    
    /* Fix for stepper buttons visibility - override div display:block issue */
    .d-flex.flex-stack.pt-15 {
        display: flex !important;
    }
    
    /* Override stepper CSS rules that hide submit button */
    /* IMPORTANT: Submit button should be hidden in steps 0, 1, 2 (UI steps 1, 2, 3) */
    .stepper [data-kt-stepper-action="submit"].d-none,
    .stepper [data-kt-stepper-action="submit"].hidden,
    button[data-kt-stepper-action="submit"].hidden,
    button[data-kt-stepper-action="submit"].d-none {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    /* On mobile, ensure submit button doesn't take space */
    @media (max-width: 991px) {
        button[data-kt-stepper-action="submit"].d-none,
        button[data-kt-stepper-action="submit"].hidden {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            line-height: 0 !important;
            overflow: hidden !important;
        }
    }
    
    /* Override the stepper default rule that hides submit button - only show when explicitly allowed */
    .stepper [data-kt-stepper-action="submit"]:not(.show):not(.d-inline-block) {
        display: none !important;
    }
    
    /* Only show submit button when it has both show and d-inline-block classes (Step 4 only) */
    .stepper [data-kt-stepper-action="submit"].show.d-inline-block {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure stepper action buttons are always visible when not explicitly hidden */
    button[data-kt-stepper-action="next"]:not(.d-none):not(.hidden) {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Show next button even if stepper tries to hide it */
    .stepper button[data-kt-stepper-action="next"]:not(.d-none):not(.hidden) {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure fade class doesn't hide buttons when show class is present */
    button[data-kt-stepper-action].fade.show {
        opacity: 1 !important;
    }
    
    /* Ensure button container divs are visible */
    .d-flex.flex-stack.pt-15 > div:not(#step2_add_button_container.d-none):not(#step2_add_button_container) {
        display: block !important;
    }
    
    /* CRITICAL: Ensure + button container uses flex when visible (for centering) */
    .d-flex.flex-stack.pt-15 > div#step2_add_button_container:not(.d-none).show-step2-button,
    #stepper_buttons_container #step2_add_button_container:not(.d-none).show-step2-button,
    .d-flex.flex-stack.pt-15 > div#step2_add_button_container.show-step2-button,
    #stepper_buttons_container #step2_add_button_container.show-step2-button {
        display: flex !important;
    }
    
    /* CRITICAL: Hide + button container when it has d-none class - must come after the rule above */
    .d-flex.flex-stack.pt-15 > div#step2_add_button_container.d-none,
    #stepper_buttons_container #step2_add_button_container.d-none,
    #step2_add_button_container.d-none {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        flex: 0 0 0 !important;
    }
    
    .d-flex.flex-stack.pt-15 > div > button[data-kt-stepper-action="next"]:not(.d-none):not(.hidden) {
        display: inline-block !important;
    }
    
    .d-flex.flex-stack.pt-15 > div > button[data-kt-stepper-action="submit"].hidden,
    .d-flex.flex-stack.pt-15 > div > button[data-kt-stepper-action="submit"].d-none {
        display: none !important;
    }
    
    /* CRITICAL: Submit button should ALWAYS be hidden */
    /* Step 4 has its own confirm buttons, Step 5 is success page - no need for submit button */
    button[data-kt-stepper-action="submit"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* OTP Input Cell-by-Cell Styling */
    .otp-input-container {
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: center;
        direction: ltr;
    }
    
    .otp-input {
        width: 60px !important;
        height: 60px !important;
        text-align: center;
        font-size: 24px !important;
        font-weight: 600;
        padding: 0 !important;
        border-radius: 8px;
        border: 2px solid #e4e6ef;
        transition: all 0.2s ease;
    }
    
    .otp-input:focus {
        border-color: #009ef7;
        box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
        outline: none;
    }
    
    .otp-input:invalid {
        border-color: #f1416c;
    }
    
    @media (max-width: 576px) {
        .otp-input {
            width: 50px !important;
            height: 50px !important;
            font-size: 20px !important;
        }
        
        .otp-input-container {
            gap: 6px;
        }
    }




    /* Contact Widget */
    .contact-widget {
        position: fixed;
        bottom: 1.5rem;
        left: 1.5rem;
        z-index: 2000000003 !important; /* Higher than Goftino's z-index */
    }
    
    .contact-trigger {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border: none;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
    }
    
    .contact-trigger i,
    .contact-trigger i * {
        color: #ffffff !important;
        fill: #ffffff !important;
    }
    
    .contact-trigger i .path1,
    .contact-trigger i .path2,
    .contact-trigger i .path3,
    .contact-trigger i .path4 {
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }
    
    .contact-trigger:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    }
    
    .contact-trigger:active {
        transform: scale(0.95);
    }
    
    .contact-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px 24px 0 0;
        padding: 1.5rem;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000000004 !important; /* Higher than Goftino's z-index */
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .contact-menu.show {
        transform: translateY(0);
    }
    
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000000003 !important; /* Higher than Goftino's z-index */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .contact-menu.show ~ .menu-backdrop,
    .menu-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
    
    .menu-content {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1.5rem 1rem;
        background: rgba(30, 41, 59, 0.6);
        border-radius: 12px;
        color: #f1f5f9;
        text-decoration: none;
        transition: all 0.2s ease;
        cursor: pointer;
        min-height: 120px;
    }
    
    .menu-item:last-child {
        margin-bottom: 0;
    }
    
    .menu-item:hover {
        background: rgba(59, 130, 246, 0.2);
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .menu-item i {
        font-size: 48px;
        color: #ffffff !important;
    }
    
    .menu-item i *,
    .menu-item i .path1,
    .menu-item i .path2,
    .menu-item i .path3,
    .menu-item i .path4 {
        color: #ffffff !important;
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }
    
    .menu-item span {
        font-weight: 500;
        font-size: 1rem;
        text-align: center;
        color: #ffffff !important;
    }
    
    @media (max-width: 768px) {
        .menu-content {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
        }
        
        .menu-item {
            padding: 1rem 0.5rem;
            min-height: 100px;
        }
        
        .menu-item i {
            font-size: 24px;
        }
        
        .menu-item span {
            font-size: 0.85rem;
        }
    }
    
    @media (min-width: 769px) {
        .menu-item i {
            font-size: 56px;
        }
        
        .menu-item span {
            font-size: 1.1rem;
        }
        
        .menu-item {
            padding: 2rem 1.5rem;
            min-height: 150px;
        }
    }
    
