/* =====================================================
   معالج إضافة منتج - Wizard CSS
   RTL, Arabic, متوافق مع المتصفحات الحديثة
   ===================================================== */

/* === الحاوية الرئيسية === */
.hwk-wizard-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

/* === شريط التقدم === */
.hwk-wizard-progress {
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 0;
}
.hwk-wizard-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}
.hwk-wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}
.hwk-wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    transition: all .3s ease;
    position: relative;
}
.hwk-wizard-step-indicator.active .hwk-wizard-step-circle {
    background: var(--hwk-primary, #1f3b57);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(31,59,87,.2);
}
.hwk-wizard-step-indicator.completed .hwk-wizard-step-circle {
    background: #16a34a;
    color: #fff;
}
.hwk-wizard-step-indicator.completed .hwk-wizard-step-num { display: none; }
.hwk-wizard-step-indicator:not(.completed) .hwk-wizard-step-check { display: none; }
.hwk-wizard-step-label {
    font-size: 12px;
    color: #6b7280;
    max-width: 80px;
    line-height: 1.3;
}
.hwk-wizard-step-indicator.active .hwk-wizard-step-label,
.hwk-wizard-step-indicator.completed .hwk-wizard-step-label {
    color: var(--hwk-primary, #1f3b57);
    font-weight: 600;
}
/* الخط الأفقي أسفل الترقيم تمت إزالته بناءً على طلب المستخدم */
.hwk-wizard-progress-track,
.hwk-wizard-progress-track *,
.hwk-wizard-progress-fill {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    background: transparent !important;
    border: none !important;
    opacity: 0 !important;
}
/* ضمان عدم ظهور أي خط أفقي خلف دوائر الترقيم */
.hwk-wizard-progress::before,
.hwk-wizard-progress::after,
.hwk-wizard-progress-bar::before,
.hwk-wizard-progress-bar::after {
    display: none !important;
    content: none !important;
}

/* === شريط الرصيد === */
.hwk-wizard-balance-bar {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.hwk-wizard-balance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
}
.hwk-wizard-balance-item i {
    color: var(--hwk-primary, #1f3b57);
}
.hwk-wizard-balance-item strong {
    color: var(--hwk-primary, #1f3b57);
}
.hwk-wizard-reward {
    margin-right: auto;
    color: #16a34a !important;
}
.hwk-wizard-reward i,
.hwk-wizard-reward strong {
    color: #16a34a !important;
}

/* === حاوية الخطوات === */
.hwk-wizard-steps-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.hwk-wizard-step {
    display: none;
    animation: hwkFadeIn .3s ease;
}
.hwk-wizard-step.active-step {
    display: block;
}
@keyframes hwkFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === رأس الخطوة === */
.hwk-wizard-step-header {
    padding: 24px 24px 0;
}
.hwk-wizard-step-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--hwk-primary, #1f3b57);
}
.hwk-wizard-step-header h2 i {
    margin-left: 8px;
    color: var(--hwk-accent, #ff9f1c);
}
.hwk-wizard-step-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}
.hwk-wizard-step-body {
    padding: 20px 24px 24px;
}

/* === الحقول === */
.hwk-wizard-field {
    margin-bottom: 20px;
}
.hwk-wizard-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}
.hwk-wizard-label i {
    color: var(--hwk-accent, #ff9f1c);
    font-size: 14px;
}
.hwk-required {
    color: #dc2626;
}
.hwk-wizard-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
.hwk-wizard-badge {
    display: inline-block;
    background: var(--hwk-accent, #ff9f1c);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 8px;
}
.hwk-wizard-field input[type="text"],
.hwk-wizard-field input[type="url"],
.hwk-wizard-field input[type="number"],
.hwk-wizard-field textarea,
.hwk-wizard-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: #1e293b;
    box-sizing: border-box;
}
.hwk-wizard-field input:focus,
.hwk-wizard-field textarea:focus,
.hwk-wizard-field select:focus {
    outline: none;
    border-color: var(--hwk-primary, #1f3b57);
    box-shadow: 0 0 0 3px rgba(31,59,87,.1);
}
.hwk-wizard-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* === صف حقول === */
.hwk-wizard-field-row {
    display: flex;
    gap: 16px;
}
.hwk-wizard-field-half {
    flex: 1;
}
@media (max-width: 600px) {
    .hwk-wizard-field-row {
        flex-direction: column;
        gap: 0;
    }
}

/* === وصف + مساعد ذكي === */
.hwk-wizard-desc-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.hwk-wizard-desc-main {
    flex: 1;
}
.hwk-ai-helper-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px;
    min-width: 160px;
    text-align: center;
}
.hwk-ai-helper-title {
    font-weight: 700;
    font-size: 13px;
    color: #0369a1;
    margin-bottom: 12px;
}
.hwk-ai-helper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #0369a1;
    transition: all .2s;
}
.hwk-ai-helper-btn:hover {
    background: #0369a1;
    color: #fff;
    border-color: #0369a1;
}
.hwk-ai-btn-icon {
    font-size: 14px;
}
@media (max-width: 600px) {
    .hwk-wizard-desc-row {
        flex-direction: column;
    }
}
.hwk-wizard-char-count {
    text-align: left;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    direction: ltr;
}

/* === أسباب المقايضة === */
.hwk-wizard-reasons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hwk-wizard-reason-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.hwk-wizard-reason-chip input[type="radio"] {
    display: none;
}
.hwk-wizard-reason-chip span {
    display: block;
    padding: 8px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    font-size: 13px;
    color: #475569;
    transition: all .2s;
}
.hwk-wizard-reason-chip input:checked + span {
    border-color: var(--hwk-primary, #1f3b57);
    background: var(--hwk-primary, #1f3b57);
    color: #fff;
}
.hwk-wizard-reason-chip:hover span {
    border-color: var(--hwk-primary, #1f3b57);
}
.hwk-wizard-custom-reason input {
    margin-top: 8px;
}

/* === الكلمات المفتاحية === */
.hwk-wizard-keywords-wrap {
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 12px;
}
.hwk-wizard-keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 10px;
}
.hwk-kw-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--hwk-primary, #1f3b57);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}
.hwk-kw-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}
.hwk-kw-remove:hover {
    color: #fff;
}
.hwk-wizard-keywords-input-wrap {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.hwk-wizard-keywords-input-wrap input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Tajawal', sans-serif;
}
.hwk-wizard-keywords-input-wrap input:focus {
    outline: none;
    border-color: var(--hwk-primary, #1f3b57);
}
.hwk-wizard-btn-sm {
    padding: 6px 14px;
    background: var(--hwk-accent, #ff9f1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .2s;
}
.hwk-wizard-btn-sm:hover {
    opacity: .85;
}

/* === منطقة رفع الصور === */
.hwk-wizard-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    position: relative;
}
.hwk-wizard-upload-area:hover,
.hwk-wizard-upload-area.drag-over {
    border-color: var(--hwk-primary, #1f3b57);
    background: #f8fafc;
}
.hwk-wizard-upload-area.drag-over {
    border-color: var(--hwk-accent, #ff9f1c);
    background: rgba(255,159,28,.06);
    transform: scale(1.005);
}
.hwk-wizard-upload-placeholder i {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 8px;
    transition: color .2s;
}
.hwk-wizard-upload-area:hover .hwk-wizard-upload-placeholder i,
.hwk-wizard-upload-area.drag-over .hwk-wizard-upload-placeholder i {
    color: var(--hwk-accent, #ff9f1c);
}
.hwk-wizard-upload-placeholder p {
    margin: 4px 0;
    font-size: 14px;
    color: #64748b;
}
.hwk-wizard-upload-placeholder small {
    color: #94a3b8;
    font-size: 12px;
}
.hwk-wizard-upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--hwk-primary, #1f3b57);
    font-size: 14px;
}
.hwk-upload-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--hwk-primary, #1f3b57);
    border-radius: 50%;
    animation: hwkSpin .7s linear infinite;
}
@keyframes hwkSpin {
    to { transform: rotate(360deg); }
}

/* === معرض الصور === */
.hwk-wizard-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.hwk-wizard-gallery:empty {
    display: none;
}
.hwk-wizard-gallery-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f8fafc;
    animation: hwkFadeIn .3s ease;
}
.hwk-wizard-gallery-item:first-child {
    border-color: var(--hwk-accent, #ff9f1c);
    box-shadow: 0 0 0 3px rgba(255,159,28,.15);
}
.hwk-wizard-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hwk-wizard-gallery-item .hwk-gallery-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--hwk-accent, #ff9f1c);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.hwk-wizard-gallery-item .hwk-gallery-remove {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220,38,38,.9);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity .2s, background .2s;
}
.hwk-wizard-gallery-item:hover .hwk-gallery-remove,
.hwk-wizard-gallery-item .hwk-gallery-remove:focus {
    opacity: 1;
}
.hwk-wizard-gallery-item .hwk-gallery-remove:hover {
    background: rgba(220,38,38,1);
}
.hwk-wizard-gallery-counter {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}
.hwk-wizard-gallery-counter strong {
    color: var(--hwk-primary, #1f3b57);
}
.hwk-wizard-gallery-item .hwk-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hwk-primary, #1f3b57);
    font-size: 24px;
    background: #f1f5f9;
}
.hwk-wizard-gallery-item.hwk-gallery-uploading {
    opacity: 0.7;
    border-color: var(--hwk-accent, #ff9f1c) !important;
}
.hwk-wizard-camera-btn-wrap {
    margin-top: 12px;
}

/* === نتائج فحص الصور === */
.hwk-wizard-image-checks {
    margin-top: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px;
}
.hwk-wizard-image-checks h4 {
    margin: 0 0 10px;
    color: #16a34a;
    font-size: 14px;
}

/* === حالات المنتج (بطاقات) === */
.hwk-wizard-conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.hwk-wizard-condition-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
    position: relative;
}
.hwk-wizard-condition-card:hover {
    border-color: #94a3b8;
}
.hwk-wizard-condition-card input {
    display: none;
}
.hwk-wizard-condition-card.selected {
    border-color: var(--hwk-primary, #1f3b57);
    background: #f8fafc;
}
.hwk-wizard-condition-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.hwk-cond-excellent .hwk-wizard-condition-icon { background: #dcfce7; color: #16a34a; }
.hwk-cond-very-good .hwk-wizard-condition-icon { background: #dbeafe; color: #2563eb; }
.hwk-cond-good .hwk-wizard-condition-icon { background: #fef3c7; color: #d97706; }
.hwk-cond-acceptable .hwk-wizard-condition-icon { background: #ffedd5; color: #ea580c; }
.hwk-cond-for-parts .hwk-wizard-condition-icon { background: #fee2e2; color: #dc2626; }
.hwk-wizard-condition-info h4 {
    margin: 0 0 2px;
    font-size: 14px;
    color: #1e293b;
}
.hwk-wizard-condition-info p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
.hwk-wizard-condition-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity .2s;
}
.hwk-wizard-condition-card.selected .hwk-wizard-condition-badge {
    opacity: 1;
}
.hwk-wizard-quality-indicator {
    margin-top: 16px;
}
.hwk-wizard-quality-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}
.hwk-wizard-quality-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.hwk-wizard-quality-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .5s ease, background .3s;
}

/* === ملحقات المنتج === */
.hwk-wizard-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.hwk-wizard-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.hwk-wizard-notice-info i {
    color: #2563eb;
    margin-top: 2px;
}
.hwk-wizard-accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.hwk-wizard-accessory-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    position: relative;
}
.hwk-wizard-accessory-card:hover {
    border-color: #94a3b8;
}
.hwk-wizard-accessory-card input {
    display: none;
}
.hwk-wizard-accessory-card.selected {
    border-color: var(--hwk-primary, #1f3b57);
    background: #f0f9ff;
}
.hwk-wizard-accessory-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hwk-primary, #1f3b57);
    font-size: 14px;
}
.hwk-wizard-accessory-label {
    font-size: 13px;
    color: #334155;
}
.hwk-wizard-accessory-check {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hwk-primary, #1f3b57);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    opacity: 0;
    transition: opacity .2s;
}
.hwk-wizard-accessory-card.selected .hwk-wizard-accessory-check {
    opacity: 1;
}
.hwk-wizard-custom-acc-wrap {
    display: flex;
    gap: 8px;
}
.hwk-wizard-custom-acc-wrap input {
    flex: 1;
}
.hwk-wizard-btn-accent-sm {
    padding: 8px 16px;
    background: var(--hwk-accent, #ff9f1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.hwk-wizard-btn-accent-sm:hover {
    opacity: .85;
}
.hwk-wizard-custom-acc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.hwk-wizard-accessories-summary {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
}
.hwk-wizard-accessories-summary strong {
    color: var(--hwk-primary, #1f3b57);
}

/* === أنواع المقايضة === */
.hwk-wizard-exchange-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.hwk-wizard-exchange-type-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
}
.hwk-wizard-exchange-type-card:hover {
    border-color: #94a3b8;
}
.hwk-wizard-exchange-type-card input {
    display: none;
}
.hwk-wizard-exchange-type-card.selected {
    border-color: var(--hwk-primary, #1f3b57);
    background: #f8fafc;
}
.hwk-wizard-ext-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--hwk-primary, #1f3b57), #334155);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.hwk-wizard-ext-info h4 {
    margin: 0 0 2px;
    font-size: 14px;
    color: #1e293b;
}
.hwk-wizard-ext-info p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* === مرونة المقايضة === */
.hwk-wizard-flexibility-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hwk-wizard-flex-chip {
    display: inline-flex;
    cursor: pointer;
}
.hwk-wizard-flex-chip input { display: none; }
.hwk-wizard-flex-chip span {
    display: block;
    padding: 10px 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
    transition: all .2s;
}
.hwk-wizard-flex-chip input:checked + span {
    border-color: var(--hwk-primary, #1f3b57);
    background: var(--hwk-primary, #1f3b57);
    color: #fff;
}

/* === موقع التسليم === */
.hwk-wizard-location-row {
    display: flex;
    gap: 12px;
}
.hwk-wizard-loc-field {
    flex: 1;
}
@media (max-width: 600px) {
    .hwk-wizard-location-row {
        flex-direction: column;
        gap: 0;
    }
}

/* === طرق التسليم === */
.hwk-wizard-delivery-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hwk-wizard-delivery-card {
    cursor: pointer;
}
.hwk-wizard-delivery-card input { display: none; }
.hwk-wizard-delivery-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
    transition: all .2s;
}
.hwk-wizard-delivery-card input:checked + span {
    border-color: var(--hwk-primary, #1f3b57);
    background: var(--hwk-primary, #1f3b57);
    color: #fff;
}

/* === أزرار الخطوات === */
.hwk-wizard-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 24px;
    gap: 12px;
}
.hwk-wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.hwk-wizard-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.hwk-wizard-btn-next {
    background: var(--hwk-primary, #1f3b57);
    color: #fff;
    margin-right: auto;
}
.hwk-wizard-btn-next:hover:not(:disabled) {
    background: #152d45;
}
.hwk-wizard-btn-prev {
    background: #f1f5f9;
    color: #475569;
}
.hwk-wizard-btn-prev:hover {
    background: #e2e8f0;
}
.hwk-wizard-btn-outline {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #475569;
}
.hwk-wizard-btn-outline-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.hwk-wizard-btn-submit {
    background: var(--hwk-accent, #ff9f1c);
    color: #fff;
    font-size: 16px;
    padding: 14px 36px;
}
.hwk-wizard-btn-submit:hover:not(:disabled) {
    background: #e88f0a;
}

/* === بطاقة مراجعة المنتج === */
.hwk-wizard-review-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.hwk-wizard-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.hwk-wizard-review-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}
.hwk-wizard-review-meta {
    display: flex;
    gap: 12px;
}
.hwk-wizard-review-points {
    background: var(--hwk-accent, #ff9f1c);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.hwk-wizard-review-condition {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.hwk-wizard-review-image {
    height: 200px;
    overflow: hidden;
}
.hwk-wizard-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hwk-wizard-review-body {
    padding: 16px 20px;
}
.hwk-wizard-review-body p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}
.hwk-wizard-review-details {
    padding: 0 20px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.hwk-wizard-review-detail-item {
    font-size: 13px;
    color: #64748b;
}
.hwk-wizard-review-detail-item strong {
    color: #334155;
}

/* === تحليل جودة الإعلان === */
.hwk-wizard-quality-analysis {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.hwk-wizard-quality-analysis h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--hwk-primary, #1f3b57);
}
.hwk-wizard-quality-analysis h3 i {
    margin-left: 8px;
    color: var(--hwk-accent, #ff9f1c);
}
.hwk-wizard-quality-score {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}
.hwk-wizard-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hwk-wizard-score-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--hwk-primary, #1f3b57);
    line-height: 1;
}
.hwk-wizard-score-label {
    font-size: 10px;
    color: #94a3b8;
}
.hwk-wizard-score-grade {
    font-size: 18px;
    color: #d97706;
}
.hwk-wizard-score-grade i {
    margin-left: 4px;
}
.hwk-wizard-quality-feedback {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .hwk-wizard-quality-feedback {
        grid-template-columns: 1fr;
    }
}
.hwk-wizard-strengths,
.hwk-wizard-improvements {
    padding: 12px 16px;
    border-radius: 10px;
}
.hwk-wizard-strengths {
    background: #f0fdf4;
}
.hwk-wizard-improvements {
    background: #fffbeb;
}
.hwk-wizard-strengths h4,
.hwk-wizard-improvements h4 {
    margin: 0 0 8px;
    font-size: 14px;
}
.hwk-wizard-strengths ul,
.hwk-wizard-improvements ul {
    margin: 0;
    padding-right: 18px;
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
}

/* === تعهد الإرسال === */
.hwk-wizard-pledge {
    margin-top: 20px;
}
.hwk-wizard-pledge-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.hwk-wizard-pledge-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--hwk-primary, #1f3b57);
    flex-shrink: 0;
}
.hwk-wizard-pledge-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}
.hwk-wizard-pledge-text i {
    color: #dc2626;
    margin-top: 2px;
}

/* === نتيجة الإرسال === */
.hwk-wizard-result {
    margin-top: 24px;
}
.hwk-wizard-result-success {
    text-align: center;
    padding: 40px 20px;
}
.hwk-wizard-result-success i {
    font-size: 48px;
    color: #16a34a;
    margin-bottom: 16px;
}
.hwk-wizard-result-success h3 {
    color: #16a34a;
    margin-bottom: 8px;
}
.hwk-wizard-result-success p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* === تسجيل الدخول مطلوب === */
.hwk-wizard-login-req {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}
.hwk-wizard-login-card {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.hwk-wizard-login-card i {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 16px;
}
.hwk-wizard-login-card h3 {
    margin-bottom: 16px;
    color: #334155;
}
.hwk-wizard-login-card .hwk-wizard-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--hwk-primary, #1f3b57);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.hwk-wizard-login-card .hwk-wizard-btn-primary:hover {
    background: #152d45;
    color: #fff;
}

/* === تنبيهات === */
.hwk-wizard-field-error input,
.hwk-wizard-field-error textarea,
.hwk-wizard-field-error select {
    border-color: #dc2626 !important;
}
.hwk-wizard-error-msg {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* === مرونة المقايضة (بنفس نمط طريقة التسليم - hwk-wizard-delivery-card) === */
/* منطقة الملاحظات تحت أزرار المرونة */
.hwk-wizard-field .hwk-wizard-delivery-grid + input[type="hidden"] + textarea,
.hwk-wizard-field .hwk-wizard-flex-grid + input[type="hidden"] + textarea {
    width: 100%;
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    direction: rtl;
    transition: border-color .2s, box-shadow .2s;
}
.hwk-wizard-field .hwk-wizard-delivery-grid + input[type="hidden"] + textarea:focus,
.hwk-wizard-field .hwk-wizard-flex-grid + input[type="hidden"] + textarea:focus {
    outline: none;
    border-color: var(--hwk-primary, #1f3b57);
    box-shadow: 0 0 0 3px rgba(31,59,87,.1);
}

/* === نطاق النقاط (أُخفي بناءً على طلب المستخدم) === */
.hwk-points-range-note {
    display: none !important;
}

/* === تحسينات عامة === */
.hwk-wizard-keywords-input-wrap {
    display: flex;
    gap: 8px;
}
.hwk-wizard-btn-sm {
    white-space: nowrap;
    flex-shrink: 0;
}
#hwkSuggestKeywords.loading {
    opacity: 0.6;
    pointer-events: none;
}
.hwk-wizard-btn-sm .fa-spinner {
    margin-left: 4px;
}
