        :root {
            --primary: #7179b1;
            --primary-dark: #a6dfdd;
            --secondary: #282828;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --success: #a6dfdd;
            --border-radius: 8px;
            --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            background-color: white;
            box-shadow: var(--box-shadow);
            padding: 1px 0;
            margin-bottom: 30px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 24px;
            font-weight: bold;
            color: var(--primary);
        }
        
        .logo i {
            font-size: 28px;
        }
        
        .steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 40px;
            position: relative;
        }
        
        .steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #e0e0e0;
            z-index: 1;
        }
        
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
            flex: 1;
        }
        
        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #e0e0e0;
            color: var(--gray);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-bottom: 10px;
            transition: all 0.3s ease;
        }
        
        .step.active .step-number {
            background-color: var(--primary);
            color: white;
        }
        
        .step.completed .step-number {
            background-color: var(--success);
            color: white;
        }
        
        .step-label {
            font-size: 14px;
            color: var(--gray);
            font-weight: 500;
            text-align: center;
        }
        
        .step.active .step-label {
            color: var(--primary);
        }
        
        .card {
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 30px;
            margin-bottom: 30px;
        }
        
        .card-title {
            font-size: 22px;
            margin-bottom: 20px;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .card-title i {
            color: var(--primary);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--secondary);
        }
        
        .input-group {
            display: flex;
            gap: 10px;
        }
        
        input[type="text"], input[type="email"], input[type="number"], input[type="tel"], select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 16px;
            transition: border 0.3s;
        }
        
        input:focus, select:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: var(--border-radius);
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background-color: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: var(--primary-dark);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--gray);
            color: var(--gray);
        }
        
        .btn-outline:hover {
            background-color: #f8f9fa;
        }
        
        .btn-next {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
        }
        
        .video-info {
            display: none;
            margin-top: 30px;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .video-banner {
            display: flex;
            gap: 20px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: var(--border-radius);
            padding: 20px;
            border-left: 4px solid var(--primary);
        }
        
        .video-thumbnail {
            width: 240px;
            height: 135px;
            border-radius: var(--border-radius);
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .video-details {
            flex: 1;
        }
        
        .video-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--secondary);
        }
        
        .video-stats {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .stat {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .stat i {
            color: var(--primary);
            width: 20px;
        }
        
        .ad-platforms {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .ad-platform {
            border: 2px solid #e0e0e0;
            border-radius: var(--border-radius);
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .ad-platform:hover {
            border-color: var(--primary);
        }
        
        .ad-platform.selected {
            border-color: var(--primary);
            background-color: rgb(6 255 0 / 5%);
        }
        
        .ad-platform.required {
            border-left: 4px solid var(--primary);
        }
        
        .platform-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .platform-icon {
            font-size: 24px;
            color: var(--primary);
        }
        
        .platform-title {
            font-weight: 600;
            font-size: 18px;
        }
        
        .platform-description {
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 15px;
        }
        
        .platform-required {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: var(--primary);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .campaign-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .campaign-option {
            border: 2px solid #e0e0e0;
            border-radius: var(--border-radius);
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .campaign-option:hover {
            border-color: var(--primary);
        }
        
        .campaign-option.selected {
            border-color: var(--primary);
            background-color: rgb(6 255 0 / 5%);
        }
        
        .option-icon {
            font-size: 32px;
            color: var(--primary);
            margin-bottom: 15px;
        }
        
        .option-title {
            font-weight: 600;
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .option-description {
            font-size: 14px;
            color: var(--gray);
            flex-grow: 1;
            margin-bottom: 10px;
        }
        
        .option-price {
            margin-top: auto;
            font-weight: 600;
            color: var(--primary);
            font-size: 14px;
            background-color: #f8f9fa;
            padding: 8px 12px;
            border-radius: 4px;
        }
        
        .budget-customization {
            margin-top: 30px;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: var(--border-radius);
        }
        
        .budget-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .budget-title {
            font-weight: 600;
            font-size: 18px;
        }
        
        .budget-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: var(--primary);
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        .budget-controls {
            margin-top: 20px;
            animation: fadeIn 0.5s ease;
        }
        
        .budget-slider-container {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 15px 0;
        }
        
        .budget-slider {
            flex: 1;
            -webkit-appearance: none;
            height: 10px;
            background: #e0e0e0;
            border-radius: 5px;
            outline: none;
        }
        
        /* Custom slider thumb and track for red theme */
        .budget-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .budget-slider::-moz-range-thumb {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .budget-slider::-webkit-slider-runnable-track {
            height: 10px;
            background: linear-gradient(to right, #a6dfdd, var(--primary));
            border-radius: 5px;
        }
        
        .budget-slider::-moz-range-track {
            height: 10px;
            background: linear-gradient(to right, #a6dfdd, var(--primary));
            border-radius: 5px;
        }
        
        .budget-value-display {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary);
            min-width: 80px;
            text-align: center;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            background-color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .budget-value-display:hover {
            border-color: var(--primary);
            background-color: rgb(6 255 0 / 5%);
        }
        
        .budget-value-display.editing {
            border-color: var(--primary);
            background-color: white;
            box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
        }
        
        .budget-input {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary);
            width: 100px;
            text-align: center;
            padding: 8px 12px;
            border: 1px solid var(--primary);
            border-radius: var(--border-radius);
            background-color: white;
            outline: none;
        }
        
        .budget-estimates {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .budget-estimate {
            text-align: center;
            padding: 15px;
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        
        .budget-estimate.highlighted {
            border: 2px solid var(--primary);
            background-color: rgb(6 255 0 / 5%);
            transform: scale(1.05);
        }
        
        .estimate-value {
            font-weight: 600;
            font-size: 18px;
            margin-bottom: 5px;
        }
        
        .estimate-label {
            font-size: 14px;
            color: var(--gray);
        }
        
        /* Payment Methods - Updated Design */
        .payment-methods {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .payment-method {
            flex: 1;
            border: 1.5px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 120px;
            position: relative;
            background: linear-gradient(to bottom, white, #fcfcfc);
        }
        
        .payment-method:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        .payment-method.selected {
            border-color: var(--primary);
            background: linear-gradient(to bottom, rgba(255, 0, 0, 0.03), rgb(26 255 0 / 8%));
            box-shadow: 0 0 0 1px var(--primary);
        }
        
        .payment-method.selected::after {
            content: '✓';
            position: absolute;
            top: 8px;
            right: 8px;
            width: 20px;
            height: 20px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .payment-method:active {
            transform: scale(0.98);
        }
        
        .payment-method-icon {
            font-size: 28px;
            margin-bottom: 8px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .card-icon {
            color: #1a1f71;
        }
        
        .paypal-icon {
            color: #003087;
        }
        
        .payment-method-title {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 4px;
            color: var(--secondary);
        }
        
        .payment-method-desc {
            font-size: 12px;
            color: var(--gray);
            line-height: 1.3;
        }
        
        .payment-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }
        
        .payment-form.active {
            display: grid;
        }
        
        .payment-form.hidden {
            display: none;
        }
        
        .paypal-info {
            display: none;
            margin-top: 20px;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: var(--border-radius);
            text-align: center;
        }
        
        .paypal-info.active {
            display: block;
        }
        
        .paypal-logo {
            font-size: 40px;
            color: #003087;
            margin-bottom: 15px;
        }
        
        .form-row {
            grid-column: 1 / -1;
        }
        
        .form-half {
            grid-column: span 1;
        }
        
        .summary {
            background-color: #f8f9fa;
            border-radius: var(--border-radius);
            padding: 20px;
            margin-top: 30px;
        }
        
        .summary-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--secondary);
        }
        
        .summary-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .summary-total {
            display: flex;
            justify-content: space-between;
            padding: 15px 0;
            font-weight: 600;
            font-size: 18px;
            color: var(--secondary);
        }
        
        .original-price {
            text-decoration: line-through;
            color: var(--gray);
            font-size: 16px;
            margin-right: 10px;
        }
        
        .discounted-price {
            color: var(--primary);
            font-weight: 700;
        }
        
        .discount-badge {
            background-color: var(--success);
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 10px;
        }
        
        footer {
            text-align: center;
            margin-top: 50px;
            padding: 20px;
            color: var(--gray);
            font-size: 14px;
        }
        
        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Stripe Elements Styling */
        .StripeElement {
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 16px;
            background-color: white;
            transition: border 0.3s;
            max-width: 700px; /* تحديد أقصى عرض */
            width: 100%; /* جعلها تستجيب للعرض */
        }
        
        .StripeElement--focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 1px var(--primary);
        }
        
        .StripeElement--invalid {
            border-color: #fa755a;
        }
        
        .StripeElement--webkit-autofill {
            background-color: #fefde5 !important;
        }
        
        /* PayPal Button Container */
      
        .paypal-info {
            display: none;
            margin-top: 20px;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: var(--border-radius);
            text-align: center; /* هذه موجودة بالفعل */
        }
        
        .paypal-info.active {
            display: flex; /* تغيير من block إلى flex */
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .paypal-logo {
            font-size: 40px;
            color: #003087;
            margin-bottom: 15px;
        }
        
        #paypal-button-container {
            margin: 20px auto;
            min-height: 55px;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            max-width: 400px; /* تحديد عرض أقصى */
        }      
        
        /* Hidden form for PayPal submission */
        #paypal-form-submit {
            display: none;
        }
        
        /* =========== CUSTOMER INFO FORM 2x2 =========== */
        .customer-info-form {
            margin-top: 20px;
            padding: 25px;
            background-color: #f8f9fa;
            border-radius: var(--border-radius);
            border: 1px solid #e9ecef;
            border-left: 4px solid var(--primary);
        }
        
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .form-grid .form-group {
            margin-bottom: 0;
        }
        
        .form-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        /* =========== COUNTRIES AND LANGUAGES TAGS =========== */
        .tags-container {
            margin-top: 25px;
            padding: 25px;
            background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
            border-radius: var(--border-radius);
            border: 1px solid #e9ecef;
            border-left: 4px solid var(--primary);
        }
        
        .tags-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--secondary);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .tags-title i {
            color: var(--primary);
        }
        
        .tags-description {
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 20px;
            line-height: 1.5;
        }
        
        /* Grid layout for side-by-side arrangement */
        .tags-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .tags-column {
            display: flex;
            flex-direction: column;
        }
        
        /* Grid layout for keywords (بعد اللغات والبلدان) */
        .keywords-full-width {
            grid-column: 1 / -1;
            width: 100%;
            margin-top: 10px;
        }
        
        .tags-input-group {
            position: relative;
            margin-bottom: 20px;
            flex: 1;
        }
        
        .tags-input-wrapper {
            display: flex;
            align-items: center;
            border: 2px solid #dee2e6;
            border-radius: var(--border-radius);
            background: white;
            transition: all 0.3s ease;
            padding-right: 10px;
        }
        
        .tags-input-wrapper:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
        }
        
        .tags-input {
            flex: 1;
            border: none;
            padding: 14px 15px;
            font-size: 16px;
            outline: none;
            border-radius: var(--border-radius);
            background: transparent;
        }
        
        .tags-input::placeholder {
            color: #adb5bd;
        }
        
        .tags-search-icon {
            color: var(--primary);
            font-size: 18px;
            margin-left: 10px;
        }
        
        .tags-suggestions {
            position: absolute;
            top: 30%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: var(--border-radius);
            max-height: 250px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }
        
        .tags-suggestions.active {
            display: block;
        }
        
        .tags-suggestion-item {
            padding: 12px 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #f1f3f5;
        }
        
        .tags-suggestion-item:last-child {
            border-bottom: none;
        }
        
        .tags-suggestion-item:hover {
            background-color: rgba(255, 0, 0, 0.08);
            transform: translateX(3px);
        }
        
        .tags-suggestion-item.selected {
            background-color: rgba(255, 0, 0, 0.15);
            color: var(--primary);
            font-weight: 600;
        }
        
        .tags-suggestion-code {
            font-size: 12px;
            color: var(--gray);
            background: #f1f3f5;
            padding: 3px 8px;
            border-radius: 4px;
            font-family: monospace;
            font-weight: 600;
        }
        
        .tags-suggestion-multiplier {
            font-size: 11px;
            font-weight: 700;
            color: white;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 5px;
        }
        
        .tags-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
            min-height: 60px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: var(--border-radius);
            border: 1px dashed #dee2e6;
        }
        
        .tag-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #7179b142 0%, var(--primary-dark) 100%) ; 
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            animation: fadeIn 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: all 0.2s ease;
            position: relative;
        }
        
        .tag-chip:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
        
        .tag-chip .tag-remove {
            background: rgba(255, 255, 255, 0.3);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 12px;
            font-weight: bold;
        }
        
        .tag-chip .tag-remove:hover {
            background: rgba(255, 255, 255, 0.5);
            transform: scale(1.2);
        }
        
        .tag-chip .tag-flag {
            font-size: 16px;
        }
        
        .tag-chip .tag-language {
            font-size: 16px;
        }
        
        .tag-chip-multiplier {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ffcc00;
            color: #000;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 10px;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .tags-hint {
            font-size: 13px;
            color: var(--gray);
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #f8f9fa;
            border-radius: 6px;
            border-left: 3px solid var(--primary);
        }
        
        .tags-hint i {
            color: var(--primary);
            font-size: 14px;
        }
        
        .tags-count {
            font-weight: 600;
            color: var(--primary);
        }
        
        /* Statistics row below tags */
        .tags-stats {
            display: flex;
            justify-content: space-between;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 2px solid #e9ecef;
        }
        
        .stat-item {
            text-align: center;
            padding: 15px;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            flex: 1;
            margin: 0 10px;
            transition: all 0.3s ease;
        }
        
        .stat-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .stat-item.highlight {
            border: 2px solid var(--primary);
            background: linear-gradient(135deg, rgb(0 255 42 / 14%) 0%, rgba(204, 0, 0, 0.05) 100%);
        }
        
        .stat-icon {
            font-size: 24px;
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 5px;
        }
        
        .stat-label {
            font-size: 14px;
            color: var(--gray);
        }
        
        /* Improved selection for better visibility */
        .country-selected .tags-input-wrapper {
            border-color: #007bff;
            background: rgba(0, 123, 255, 0.02);
        }
        
        .language-selected .tags-input-wrapper {
            border-color: #a6dfdd;
            background: rgba(40, 167, 69, 0.02);
        }
        
        /* Clear all buttons */
        .tags-clear-btn {
            background: transparent;
            border: 1px solid var(--gray);
            color: var(--gray);
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-left: 10px;
        }
        
        .tags-clear-btn:hover {
            background: var(--gray);
            color: white;
        }
        
        .tags-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        /* Price multiplier info - مخفي افتراضياً */
        .multiplier-info {
            background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
            border-radius: var(--border-radius);
            padding: 15px;
            margin-top: 20px;
            border: 1px solid #ffd54f;
            border-left: 4px solid #ff9800;
            display: none; /* مخفي افتراضياً */
        }
        
        .multiplier-info.visible {
            display: block; /* يظهر فقط عندما يكون هناك تضاعف */
        }
        
        .multiplier-title {
            font-size: 16px;
            font-weight: 600;
            color: #e65100;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .multiplier-title i {
            color: #ff9800;
        }
        
        .multiplier-description {
            font-size: 14px;
            color: #5d4037;
            line-height: 1.5;
        }
        
        .multiplier-badge {
            background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin: 0 5px;
        }
        
        /* Current multiplier display - مخفي افتراضياً */
        .current-multiplier {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border-radius: var(--border-radius);
            padding: 15px;
            margin-top: 15px;
            border: 1px solid #4caf50;
            display: none; /* مخفي افتراضياً */
            align-items: center;
            justify-content: space-between;
        }
        
        .current-multiplier.visible {
            display: flex; /* يظهر فقط عندما يكون هناك تضاعف */
        }
        
        .multiplier-label {
            font-size: 15px;
            font-weight: 600;
            color: #1b5e20;
        }
        
        .multiplier-value {
            font-size: 24px;
            font-weight: 700;
            color: #2e7d32;
            background: white;
            padding: 8px 16px;
            border-radius: 20px;
            border: 2px solid #4caf50;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }
        
        .multiplier-impact {
            font-size: 13px;
            color: #388e3c;
            font-style: italic;
        }
        
        /* تحسينات للشاشات الصغيرة */
        @media (max-width: 1200px) {
            .tags-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        @media (max-width: 992px) {
            .tags-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }
            
            .tags-stats {
                flex-wrap: wrap;
                gap: 15px;
            }
            
            .stat-item {
                flex: 0 0 calc(50% - 20px);
                margin: 0;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
        }
        
        @media (max-width: 768px) {
            .tags-container {
                padding: 20px;
            }
            
            .tags-grid {
                gap: 20px;
            }
            
            .tags-input-group {
                margin-bottom: 15px;
            }
            
            .tag-chip {
                padding: 6px 12px;
                font-size: 13px;
            }
            
            .tags-stats {
                flex-direction: column;
            }
            
            .stat-item {
                margin-bottom: 10px;
            }
            
            .tags-chips {
                min-height: 50px;
            }
            
            .customer-info-form {
                padding: 20px;
            }
            
            .multiplier-value {
                font-size: 20px;
                padding: 6px 12px;
            }
        }
        
        .ad-platform .form-group {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .ad-platform .form-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
            vertical-align: middle;
        }
        
        .ad-platform .form-group label {
            margin: 0;
            vertical-align: middle;
            line-height: 1.2;
        }       
        
        #fetch-video {
            white-space: nowrap;
        }
        
        .discount-info {
            margin-top: 10px;
            padding: 10px;
            background-color: #e7f7e7;
            border-radius: var(--border-radius);
            font-size: 14px;
            animation: fadeIn 0.5s ease;
        }
        
        .discount-info i {
            color: var(--success);
            margin-right: 5px;
        }
        
        /* Add this to fix the slider thumb position */
        .budget-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            margin-top: -6px; /* This fixes the vertical position */
        }

        .budget-slider::-moz-range-thumb {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        /* تحسينات إضافية للشاشات المتوسطة */
        @media (max-width: 992px) {
            .payment-methods {
                gap: 10px;
            }
            
            .payment-method {
                padding: 12px 10px;
            }
        }
        
        /* =========== KEYWORDS TAG BOX =========== */
        .tag-box-container {
            margin-top: 10px;
            width: 100%;
        }
        
        .tag-box {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            min-height: 70px;
            padding: 12px;
            background: white;
            border: 2px solid #dee2e6;
            border-radius: var(--border-radius);
            cursor: text;
            transition: all 0.3s ease;
            align-items: center;
            width: 100%;
        }
        
        .tag-box:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
        }
        
        .tag-input {
            flex: 1;
            min-width: 150px;
            border: none;
            outline: none;
            padding: 8px 5px;
            font-size: 16px;
            background: transparent;
        }
        
        .tag-input::placeholder {
            color: #adb5bd;
        }
        
        /* التاغات داخل الـ tag box */
        .tag-box .tag-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(to right, #a6dfdd, #7179b1); /* أحمر رمادي متوسط */
            color: white;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 14px;
            font-weight: 500;
            animation: tagPop 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: all 0.2s ease;
        }
        
        .tag-box .tag-chip:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
        }
        
        .tag-box .tag-chip .tag-remove {
            background: rgba(255, 255, 255, 0.3);
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 11px;
            font-weight: bold;
            margin-left: 2px;
        }
        
        .tag-box .tag-chip .tag-remove:hover {
            background: rgba(255, 255, 255, 0.5);
            transform: scale(1.1);
        }
        
        .tag-box-hint {
            font-size: 13px;
            color: var(--gray);
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #f8f9fa;
            border-radius: 6px;
            border-left: 3px solid var(--primary);
        }
        
        .tag-box-hint i {
            color: var(--primary);
            font-size: 14px;
        }
        
        @keyframes tagPop {
            0% { transform: scale(0.8); opacity: 0; }
            70% { transform: scale(1.05); }
            100% { transform: scale(1); opacity: 1; }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        .keyword-selected .tag-box {
            border-color: #7179b1;
            background: rgba(156, 39, 176, 0.02);
        }
        
        .tag-chip .tag-hashtag {
            font-size: 14px;
        }
        
        .tag-box .tag-chip.new-tag {
            animation: pulse 0.5s ease;
        }

    /* PayPal-style container */
    .paypal-style-container {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 30px;
        margin: 30px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid #e9ecef;
        max-width: 700px; /* نفس حجم حاوية PayPal */
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .paypal-style-container .form-title {
        font-size: 20px;
        font-weight: 600;
        color: #282828;
        margin-bottom: 25px;
        text-align: center;
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 15px;
    }
    
    .paypal-style-container .card-input-container {
        background: white;
        border-radius: 8px;
        padding: 20px;
        border: 1px solid #dee2e6;
        margin-bottom: 25px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .paypal-style-container label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 12px;
        display: block;
    }
    
    .paypal-style-container .pay-btn {
        background: linear-gradient(135deg, #7179b1 0%, #73cc00  100%);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 16px 30px;
        font-size: 17px;
        font-weight: 600;
        width: 100%;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
    }
    
    .paypal-style-container .pay-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 0, 0, 0.2);
        background: linear-gradient(135deg, #73cc00 0%, #5fa800  100%);
    }
    
    .paypal-style-container .pay-btn:active {
        transform: translateY(0);
    }
    
    .paypal-style-container .pay-btn i {
        font-size: 18px;
    }
    
    .payment-security-note {
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
        color: #6c757d;
        padding: 10px;
        background: #e9ecef;
        border-radius: 6px;
    }
    
    .payment-security-note i {
        color: #17ff00;
        margin-right: 8px;
    }
    
    /* جعل حاوية PayPal أكبر وأكثر تشابهاً */
    .paypal-info {
        background: #f8f9fa !important;
        border-radius: 12px !important;
        padding: 30px !important;
        border: 1px solid #e9ecef !important;
        max-width: 700px !important;
        margin: 30px auto !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }
    
    .paypal-info .paypal-logo {
        font-size: 45px;
        color: #003087;
        margin-bottom: 20px;
    }
    
    .paypal-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
        color: #282828;
    }
    
    .paypal-info p {
        color: #6c757d;
        margin-bottom: 25px;
    }
    
    
/* Stripe Card Form */
.payment-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* حاوية البطاقة - إظهار فقط عندما تحتوي على class active */
#card-form {
    width: 100%;
    display: none;
    justify-content: center;
}

#card-form.active {
    display: flex;
}

/* حاوية PayPal */
.paypal-info {
    width: 100%;
    display: none;
    justify-content: center;
}

.paypal-info.active {
    display: flex;
}

/* جعل الحاويات في المنتصف */
.payment-container, .paypal-payment-container {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 40px;
    margin: 30px auto;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    max-width: 720px;
    width: 100%;
    position: relative;
}    
    
/* تحسين حاوية عنصر البطاقة */
#card-element {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 16px;
    transition: border 0.3s;
    min-height: 45px;
    width: 100%;
}

#card-element.StripeElement--focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

#card-element.StripeElement--invalid {
    border-color: #fa755a;
}

#card-element.StripeElement--complete {
    border-color: var(--success);
}

@media (max-width: 992px) {
    .tags-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tags-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* تعديلات لصور الأعلام فقط */
.flag-img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.flag-in-suggestion {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

.suggestion-content {
    display: flex;
    align-items: center;
}
  
  
  
/* تحسينات للهواتف */
@media (max-width: 768px) {
    .budget-value-display {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        font-size: 20px; /* حجم خط أكبر للهواتف */
    }
    
    .budget-input {
        font-size: 20px !important;
        height: 50px;
        width: 150px !important;
        max-width: 80%;
        text-align: center;
    }
    
    .budget-slider {
        height: 12px; /* مسار أسهل للمس */
    }
    
    .budget-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        margin-top: -8px;
    }
}  
 
 
/* يطبق فقط على الهواتف */
@media (max-width: 768px) {
  body {
    transform: scale(0.8);      /* درجة التصغير */
    transform-origin: top left; /* نقطة البداية */
    width: 125%;                /* تعويض التصغير */
  }
}

/* Mobile - Smaller image, details stay on side */
@media (max-width: 768px) {
    .video-banner {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px;
        gap: 12px;
    }
    
    .video-thumbnail {
        width: 320px;
        height: 158px;
        flex-shrink: 0;
    }
    
    .video-details {
        flex: 1;
        min-width: 200px;
    }
    
    .video-title {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .video-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    
    .stat i {
        font-size: 12px;
        width: 16px;
    }
    
    .stat span {
        font-size: 11px;
        flex: 1;
        text-align: left;
    }
}  


footer {
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    font-family: Arial, sans-serif;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.footer-links span {
    margin: 0 6px;
    color: #666;
}

.footer-copy {
    font-size: 13px;
    color: #777;
}






/* إذا أصبحت الصفحة طويلة بما يكفي للتمرير → فعّل تأثير الظهور التدريجي */
@media (min-height: 400px) {

  @scroll-timeline scroll-end-timeline {
    source: auto;
    orientation: block;
  }

  /* إلغاء التثبيت عند وجود Scroll */
  body {
    padding-bottom: 140px; /* لتفادي التداخل مع محتوى الصفحة */
  }

  body:has(footer) footer {
    position: static;       /* يصبح جزءًا من الصفحة وليس ثابتًا */
    transform: translateY(100%);
    opacity: 0;

    animation: showFooter 0.8s ease-out both;
    animation-timeline: scroll-end-timeline;
    animation-range: 90% 100%;
  }
}


/* حركة الظهور */
@keyframes showFooter {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

















/* إضافة المتغيرات الأساسية */
:root {
    --primary: #7179b1;
    --primary-dark: #a6dfdd;
    --secondary: #282828;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --success: #a6dfdd;
    --warning: #ffc107;
    --info: #17a2b8;
    --border-radius: 12px;
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    font-size: 35px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* إضافة مساحة للبادي حتى لا يختفي المحتوى تحت النافبار */
.main-content {
    padding-top: 80px;
}

/* Responsive للموبايل */
@media (max-width: 992px) {
    .nav-links {
        /*display: none;*/
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}