/* dashboard.css */

/* Page-level override for dashboard/profile pages */
body {
    display: block !important;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-container {
    width: min(96vw, 1400px);
    max-width: 1400px;
    margin: 24px auto;
    padding: 16px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.step-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.step-header--with-back {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.step-header-copy {
    flex: 1;
}

.step-header h2 {
    font-size: 20px;
    color: #333;
}

/* خط 40 فایل dashboard.css */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    padding: 6px 2px;
}

/* === Redesigned platform tiles (compact card grid) === */
.platform-grid--cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 6px 2px 10px;
    margin-bottom: 10px;
    align-items: stretch;
    align-content: start;
}

.platform-tile {
    --tile-radius: 18px;
    position: relative;
    appearance: none;
    border: 2px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: var(--tile-radius);
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    text-align: center;
    color: #0f172a;
    overflow: hidden;
}

.platform-tile:hover:not(.is-disabled) {
    border-color: #2563eb;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.10);
    transform: translateY(-2px);
}

.platform-tile:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.platform-tile.is-selected {
    border-color: #16a34a;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.12);
}

.platform-tile.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background: #f8fafc;
}

.platform-tile.is-coming-soon .platform-tile__icon img,
.platform-tile.is-coming-soon .platform-tile__name {
    filter: grayscale(40%);
}

.platform-tile__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.platform-tile__icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.platform-tile__name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.platform-tile__check {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 160ms ease, transform 160ms ease;
}

.platform-tile.is-selected .platform-tile__check {
    opacity: 1;
    transform: scale(1);
}

.platform-tile__badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.platform-tile__badge--soon {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.platform-tile__badge--down {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
/* === /Redesigned platform tiles === */

/* Channel preview redesign */
.channel-preview-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.channel-preview-card__head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #dbe5f1;
}

.channel-preview-card__title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.channel-preview-card__subtitle {
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
}

.channel-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.channel-preview-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
}

.channel-preview-item__label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
}

.channel-preview-item__value {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.6;
    word-break: break-word;
}

@media (max-width: 640px) {
    .channel-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* این بخش را اضافه کن تا خودِ کارت‌ها هم دیزاین بگیرند */
.platform-card {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.platform-card:hover {
    transform: translateY(-5px);
    border-color: #007aff; /* آبی اپلی */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.platform-card.selected {
    background: #f0f7ff;
    border-color: #007aff;
    position: relative;
}

/* آیکون داخل کارت */
.platform-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}.platform-card span {
    font-size: 14px;
    font-weight: bold;
    color: #444;
}

.platform-card.disabled {
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.platform-card.disabled img,
.platform-card.disabled span {
    filter: grayscale(100%) blur(1px);
    opacity: 0.5;
}

.badge-soon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
    /* Avoid blur/transparency issues on Windows browsers */
}

.method-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.bulk-segment-wrapper {
    margin-bottom: 18px;
}

.bulk-segmented-control {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
}

.bulk-segment-option {
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 14px;
}

.bulk-segment-option.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
}

.method-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: all 0.2s;
}

.method-option.active {
    border-color: #3fbd90;
    color: #3fbd90;
    background: #f1fcf5;
}

.bulk-upload-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.bulk-upload-method-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}

.bulk-upload-method-card--amadast {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
}

.bulk-upload-method-card--excel {
    background: linear-gradient(145deg, #ffffff 0%, #f1fcf5 100%);
}

.bulk-upload-method-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.bulk-upload-method-header h3 {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
}

.bulk-upload-method-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.bulk-upload-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #08b274;
    background: #fff;
}

.bulk-upload-method-icon svg {
    width: 22px;
    height: 22px;
}

.bulk-upload-method-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.bulk-upload-method-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-upload-primary-btn {
    border: none;
    background: #16a34a;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.bulk-upload-primary-btn:hover {
    background: #15803d;
}

.bulk-upload-secondary-link {
    border: 1px solid #9eecc1;
    background: #fff;
    color: #08b274;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
}

.bulk-upload-file-picker {
    margin: 0;
}

.bulk-upload-file-name {
    margin-top: 10px;
    font-size: 12px;
    color: #475569;
}

.bulk-select-all-label {
    font-size: 14px;
    color: #111827;
    margin-left: 8px;
    font-weight: 700;
}

.bulk-preview-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.bulk-preview-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.bulk-preview-table thead th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.bulk-preview-table tbody td {
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 12px;
    font-size: 14px;
    color: #1e293b;
    vertical-align: middle;
}

.bulk-preview-col-check {
    width: 44px;
    text-align: center !important;
}

.bulk-preview-col-product {
    width: auto;
}

.bulk-preview-col-thumb {
    width: 96px;
}

.bulk-preview-col-price {
    width: 1%;
    white-space: nowrap;
}

.bulk-preview-col-inventory {
    width: 1%;
    white-space: nowrap;
    text-align: center !important;
}

.bulk-preview-col-edit {
    width: 1%;
    white-space: nowrap;
    text-align: center !important;
}

.bulk-preview-col-category,
.bulk-preview-col-status {
    width: 1%;
    white-space: nowrap;
    text-align: center !important;
}

.bulk-pagination {
    border-top: 1px solid #e2e8f0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-page-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #08b275;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
}

.bulk-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bulk-page-meta {
    font-size: 13px;
    color: #111827;
    font-weight: 700;
}

.bulk-preview-thumb {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    object-fit: contain;
    background: #f8fafc;
    padding: 2px;
}

.bulk-preview-name {
    font-weight: 800;
    font-size: 20px;
    line-height: 1.7;
    color: #0f172a;
}

.bulk-preview-price {
    font-weight: 800;
    font-size: 18px;
    color: #111827;
}

.bulk-preview-edit-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 20px;
}

.bulk-preview-edit-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.bulk-preview-edit-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.bulk-product-cell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.bulk-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    background: #f8fafc;
}

.bulk-product-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bulk-product-title {
    display: block;
    font-weight: 900;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bulk-product-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bulk-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bulk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bulk-chip strong {
    font-weight: 900;
    color: #0f172a;
}

@media (max-width: 640px) {
    .bulk-product-cell {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px;
    }

    .bulk-product-thumb {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .bulk-product-title {
        font-size: 14px;
    }

    .bulk-product-desc {
        display: none;
    }

    .bulk-preview-edit-btn {
        width: 44px;
        height: 44px;
    }
}

.bulk-row-selected {
    background: #f0fdf4;
}

.bulk-sticky-action-bar {
    position: sticky;
    bottom: 14px;
    margin-top: 14px;
    border: 1px solid #bbf7d0;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.bulk-sticky-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bulk-sticky-selected {
    font-size: 13px;
    font-weight: 700;
    color: #166534;
}

.bulk-sticky-delete-btn {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.bulk-sticky-delete-btn:hover {
    background: #fecaca;
}

.bulk-sticky-confirm-btn {
    border: none;
    background: #16a34a;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.bulk-sticky-confirm-btn:hover {
    background: #15803d;
}

@media (max-width: 900px) {
    .bulk-upload-layout {
        grid-template-columns: 1fr;
    }
}

/* --- اصلاح کارت اصلی ورودی --- */
.single-entry-card {
    border: 1px solid var(--shipping-border);
    border-radius: 20px; /* گردتر و مدرن‌تر */
    background: #ffffff;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); /* سایه بسیار ملایم اپل استایل */
}

/* --- طراحی جدید باکس آپلود (Dropzone) --- */
.file-upload-rtl {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.file-upload-rtl:hover {
    border-color: var(--shipping-accent);
    background: var(--shipping-accent-soft);
}

/* افزودن یک آیکون مجازی قبل از متن (در HTML هم اضافه شود یا از این طریق) */
.file-upload-rtl::before {
    content: '↑'; /* می‌توانید با SVG جایگزین کنید */
    font-size: 24px;
    color: var(--shipping-accent);
    background: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.file-upload-rtl__button {
    font-weight: var(--kimia-weight-subtitle);
    color: var(--shipping-ink);
    font-size: 0.95rem;
}

/* --- نوار عملیات و دکمه افزودن (برجسته شده) --- */
.manual-actions-bar {
    background: var(--shipping-accent-soft); /* رنگ ملایم پس‌زمینه برای تفکیک */
    border: 1px solid var(--shipping-accent);
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.manual-add-btn {
    background: var(--shipping-accent) !important;
    color: #fff !important;
    border: none;
    font-family: var(--kimia-font-family);
    font-weight: var(--kimia-weight-subtitle);
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(18, 128, 92, 0.25);
    transition: all 0.2s;
}

.manual-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(18, 128, 92, 0.35);
}

.manual-actions-hint {
    font-size: 13.5px;
    color: var(--shipping-ink);
    opacity: 0.8;
    max-width: 60%;
    line-height: 1.5;
}

/* --- جدول لیست محصولات (ارتقا یافته) --- */
.manual-list-wrapper {
    overflow-x: auto;
    border: 1px solid var(--shipping-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.manual-list-table {
    width: 100%;
    border-collapse: separate; /* برای حفظ شعاع گوشه‌ها */
    border-spacing: 0;
    text-align: right;
}

.manual-list-table thead {
    background: #f9fafb;
}

.manual-list-table th {
    padding: 16px;
    font-weight: var(--kimia-weight-subtitle);
    color: var(--shipping-subtle);
    font-size: 14px;
    border-bottom: 1px solid var(--shipping-border);
}

.manual-list-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--shipping-ink);
    vertical-align: middle;
}

/* تصاویر داخل جدول */
.manual-inline-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover; /* تغییر از contain به cover برای ظاهر بهتر */
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.manual-inline-image:hover {
    transform: scale(1.1);
}

/* دکمه‌های ویرایش و حذف */
.manual-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.manual-icon-btn:hover {
    background: #f8fafc;
    border-color: var(--shipping-accent);
    color: var(--shipping-accent);
}

.manual-icon-btn.delete:hover {
    background: var(--shipping-error-bg);
    border-color: #fecaca;
    color: var(--shipping-error-text);
}



/* لیبل بالای باکس */
.field-label {
    display: block;
    margin-bottom: 12px;
    font-weight: var(--kimia-weight-subtitle);
    color: var(--shipping-ink);
}

/* باکس اصلی آپلود */
/* باکس اصلی آپلود */
.custom-upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    background-color: #f9fafb;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    margin-top: 8px;
}

.custom-upload-box:hover {
    border-color: var(--shipping-accent);
    background-color: var(--shipping-accent-soft);
}

/* محتوای داخل باکس */
.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.upload-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shipping-accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.custom-upload-box:hover .upload-icon-wrapper {
    background: var(--shipping-accent);
    color: #fff;
}

.upload-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-text {
    font-weight: var(--kimia-weight-subtitle);
    color: var(--shipping-ink);
    font-size: 1rem;
}

.main-text .highlight {
    color: var(--shipping-accent);
    text-decoration: underline;
}

.sub-text {
    font-size: 0.85rem;
    color: var(--shipping-subtle);
}

/* پیش‌نمایش عکس‌ها بعد از انتخاب */
.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.image-previews img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--shipping-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bulk-edit-modal-content {
    width: min(98vw, 1600px);
    max-width: 1600px;
    max-height: 96vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.bulk-edit-title {
    margin: 2px 46px 16px 0;
    color: #0f172a;
    font-size: 42px;
    font-weight: 800;
}

.bulk-edit-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.bulk-edit-top-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 240px 200px;
    gap: 10px;
}

.bulk-edit-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bulk-edit-image-item {
    position: relative;
    width: 152px;
    height: 112px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #fff;
}

.bulk-edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
}

.bulk-edit-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #1ca54e;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    font-weight: 700;
}

.bulk-edit-add-image {
    width: 152px;
    height: 112px;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
    background: #fafafa;
    color: #475569;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bulk-edit-add-image .plus {
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
}

.bulk-edit-add-image .txt {
    font-size: 14px;
    margin-top: 6px;
}

.bulk-edit-price-wrap {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    overflow: hidden;
}

.bulk-edit-price-currency {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #d1d5db;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
}

#bulk-edit-price,
#bulk-edit-inventory,
#bulk-edit-name,
#bulk-edit-desc {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    min-height: 56px;
    font-size: 18px;
    font-weight: 600;
}

#bulk-edit-price {
    border: none;
    min-height: 54px;
    text-align: center;
}

#bulk-edit-inventory {
    text-align: center;
}

#bulk-edit-desc {
    min-height: 150px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
}

#bulk-edit-name:focus,
#bulk-edit-desc:focus,
.bulk-edit-price-wrap:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

#bulk-edit-save {
    width: auto;
    flex: 1 1 320px;
    border-radius: 14px;
    background: #1ca54e;
    color: #000000;
    font-size: 22px;
    font-weight: 800;
    padding: 14px 20px;
}

#bulk-edit-cancel {
    border-radius: 14px;
    min-width: 150px;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
}

.bulk-edit-modal-content--windows {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 20px !important;
}

@media (max-width: 780px) {
    .single-meta-grid {
        grid-template-columns: 1fr;
    }

    .bulk-edit-top-row {
        grid-template-columns: 1fr;
    }

    .bulk-edit-title {
        font-size: 30px;
    }

    .bulk-edit-image-item,
    .bulk-edit-add-image {
        width: 120px;
        height: 92px;
    }
}

.single-entry-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.single-entry-head p {
    margin: 8px 0 16px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
}

.single-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.single-help-text {
    color: #64748b;
    font-size: 12px;
}

.file-upload-rtl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    border: 2px dashed #93c5fd;
    background: #eff6ff;
    border-radius: 12px;
    padding: 30px 12px;
    min-height: 140px;
    text-align: center;
    transition: all 0.3s;
}

.file-upload-rtl:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
}

.file-upload-rtl__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0ea5e9;
    color: #fff;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.file-upload-rtl__button:hover {
    background: #0284c7;
}

.file-upload-rtl__hint {
    font-size: 12px;
    color: #1e3a8a;
    font-weight: 600;
}

.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
}

.preview-box {
    width: 100%;
    height: 88px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #fff;
}

.preview-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.preview-loading-spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    animation: kimia-spin 0.9s linear infinite;
}

@keyframes kimia-spin {
    to {
        transform: rotate(360deg);
    }
}

.import-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.import-source-card {
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.import-source-card h3 {
    margin: 0 0 10px;
    color: #222;
    font-size: 16px;
}

.import-source-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.9;
}

.import-source-card--excel {
    border-color: #dbeafe;
    background: #f8fbff;
}

.import-source-card--amadast {
    border-color: #dcfce7;
    background: #f4fff8;
}

.import-source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.excel-sample-link {
    text-decoration: none;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
}

.excel-file-picker,
.amadast-connect-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.excel-file-picker {
    background: #1976d2;
}

.amadast-connect-btn {
    background: #2e7d32;
}

.excel-file-name {
    margin-top: 12px;
    font-size: 12px;
    color: #37474f;
    font-weight: 700;
}

.amadast-products-panel {
    margin: 18px 0;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    padding: 14px;
}

.amadast-products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.amadast-products-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #1f2937;
}

.amadast-products-meta span {
    color: #111827;
    font-size: 12px;
}

.amadast-products-actions {
    display: flex;
    gap: 8px;
}

.amadast-products-empty {
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.amadast-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.amadast-inline-uploading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 12px;
    margin-bottom: 8px;
}

.amadast-product-card {
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
}

.amadast-product-card.is-selected {
    border-color: #16a34a;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.18);
    background: #f0fdf4;
}

.amadast-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.amadast-select-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #111827;
}

.amadast-card-id {
    font-size: 11px;
    color: #64748b;
}

.amadast-field {
    margin-bottom: 9px;
}

.amadast-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #08b275;
}

.amadast-field-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.amadast-input {
    width: 100%;
    border: 1px solid #dbe1e8;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
}

.amadast-input:focus {
    outline: none;
    border-color: #3fbd90;
}

.amadast-desc {
    min-height: 68px;
    resize: vertical;
}

.amadast-image-count {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #475569;
}

.amadast-images {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 128px;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.amadast-image-chip {
    position: relative;
    display: block;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: #eff6ff;
    width: 128px;
    height: 128px;
    scroll-snap-align: start;
    overflow: hidden;
}

.amadast-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.amadast-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amadast-remove-image {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.amadast-no-image {
    border: 1px dashed #fb7185;
    border-radius: 8px;
    background: #ffe4e6;
    color: #be123c;
    padding: 7px 8px;
    font-size: 12px;
}

.amadast-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    background: linear-gradient(135deg, #3fbd90 0%, #08b274 100%);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(8, 178, 116, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amadast-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(8, 178, 116, 0.36);
}

.amadast-upload-btn input {
    display: none;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #bbb;
    border-radius: 8px;
    background: #f9f9f9;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.bulk-upload-box {
    border: 2px dashed #3fbd90;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f1fcf5;
    margin-bottom: 20px;
    position: relative;
    transition: background 0.3s;
}

.bulk-upload-box:hover {
    background: #bef2d4;
}

.bulk-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sample-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4caf50;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.validation-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    text-align: right;
}

.validation-result.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.validation-result.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.d-none {
    display: none !important;
}

.text-danger {
    color: #d32f2f;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.btn-primary {
    border: 1px solid #9eecc1;
    background: #00c09a15;
    color: #00c09a;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #00c09a25;
    border-color: #7fdfb6;
    color: #08b274;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    border: 1px solid #d7dee8;
    background: #f8fafc;
    color: #334155;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1fcf5;
    border-color: #9eecc1;
    color: #08b274;
    transform: translateY(-1px);
}

.btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.bulk-row-checkbox,
#bulk-select-all,
.amadast-select {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #9eecc1;
    border-radius: 8px;
    background: #ffffff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-row-checkbox::before,
#bulk-select-all::before,
.amadast-select::before {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform 0.15s ease;
}

.bulk-row-checkbox:checked,
#bulk-select-all:checked,
.amadast-select:checked {
    background: #3fbd90;
    border-color: #3fbd90;
}

.bulk-row-checkbox:checked::before,
#bulk-select-all:checked::before,
.amadast-select:checked::before {
    transform: rotate(-45deg) scale(1);
}

.bulk-row-checkbox:focus-visible,
#bulk-select-all:focus-visible,
.amadast-select:focus-visible {
    outline: 2px solid #7fdfb6;
    outline-offset: 2px;
}

.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.preview-box {
    position: relative;
    width: 100%;
    height: 88px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.12);
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.preview-box .delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff5252;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0 0 2px 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content:not(.bulk-edit-modal-content) {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: min(92vw, 500px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fafafa;
    color: #666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-x:hover {
    background: #f1f1f1;
    color: #333;
    border-color: #ddd;
}

.connection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #f1e4df;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    padding-right: 20px;
}

.connection-item::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #d9d9d9;
}

.connection-item.is-connected::before {
    background: #2e7d32;
}

.connection-item.is-disconnected::before {
    background: #cfcfcf;
}

.connection-item:hover {
    border-color: #bef2d4;
    box-shadow: 0 6px 14px rgba(8, 178, 116, 0.08);
    transform: translateY(-1px);
}

.connection-title {
    font-weight: 700;
    color: #222;
    font-size: 15px;
}

.connection-item-right {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    min-width: 150px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.connections-shell {
    display: grid;
    gap: 14px;
}

.connections-list {
    display: grid;
    gap: 10px;
}

.connection-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.connection-meta-chip {
    font-size: 11px;
    color: #6b6b6b;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 999px;
    padding: 4px 8px;
    line-height: 1;
}

.connection-channel-chip {
    background: #f1fcf5;
    color: #08b274;
    border-color: #9eecc1;
}

.connection-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8f4;
    border: 1px solid #ffe7de;
    flex-shrink: 0;
}

.connection-icon-wrap img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.connection-subtitle {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 3px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-pill-connected {
    background: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-pill-disconnected {
    background: #fff2f1;
    color: #c62828;
    border: 1px solid #ffd1cd;
}

.btn-disconnect-link {
    border: 1px solid #ffd6d2;
    background: #fff5f5;
    color: #b42318;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 12px;
    transition: all 0.2s ease;
}

.btn-disconnect-link:hover {
    border-color: #ffb8b1;
    background: #ffeceb;
    color: #8f1d14;
}

.btn-connect-inline {
    width: auto;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #3fbd90;
    background: #3fbd90;
    color: #fff;
    box-shadow: 0 4px 10px rgba(8, 178, 116, 0.2);
    transition: all 0.2s ease;
}

.btn-connect-inline:hover {
    background: #08b274;
    border-color: #08b274;
    box-shadow: 0 6px 14px rgba(8, 178, 116, 0.28);
    transform: translateY(-1px);
}

.btn-change-channel-link {
    border: 1px solid #cfe0ff;
    background: #f4f8ff;
    color: #1e4fae;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 12px;
    transition: all 0.2s ease;
}

.btn-change-channel-link:hover {
    border-color: #b7d0ff;
    background: #e9f1ff;
    color: #163f8d;
}

.connection-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.connection-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.status-connected {
    background: #e6f4ea;
    color: #2e7d32;
}

.status-disconnected {
    background: #ffebee;
    color: #c62828;
}

.step3-summary-box {
    background: linear-gradient(180deg, #fff7f3 0%, #ffffff 100%);
    border: 1px solid #ffd8cc;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.step3-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.step3-summary-item {
    background: #fff;
    border: 1px solid #ffe3da;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    color: #08b275;
    line-height: 1.8;
}

.step3-summary-item strong {
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

.step3-platforms-box {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}

.step3-platforms-title {
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

.step3-platforms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.step3-platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef6ff;
    border: 1px solid #d8e8ff;
    color: #0f4aa3;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.step3-products-box,
.step3-progress-box {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}

.step3-products-title {
    font-size: 15px;
    margin-bottom: 10px;
    color: #1e293b;
}

.step3-products-list {
    display: grid;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-left: 4px;
}

.step3-product-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    background: #fbfdff;
}

.step3-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #dbeafe;
    background: #f1f5f9;
}

.step3-product-meta {
    min-width: 0;
}

.step3-product-name {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step3-product-desc {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

.step3-product-badge {
    font-size: 11px;
    font-weight: 700;
    color: #08b275;
    background: #eef2ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 4px 8px;
}

.step3-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step3-progress-head h3 {
    font-size: 15px;
    color: #1e293b;
    margin: 0;
}

#step3-progress-meta {
    font-size: 12px;
    color: #64748b;
}

.step3-progress-track {
    height: 10px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
    margin-bottom: 12px;
}

.step3-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0ea5e9 0%, #22c55e 100%);
    transition: width 0.25s ease;
}

.step3-progress-timeline {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding-left: 4px;
}

.step3-progress-grid {
    display: grid;
    gap: 10px;
}

.step3-progress-product {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
}

.step3-progress-product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.step3-progress-product-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.step3-progress-overall {
    font-size: 11px;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
}

.step3-progress-overall.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.step3-progress-overall.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.step3-progress-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step3-platform-state {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
    min-width: 150px;
}

.step3-platform-state-name {
    font-size: 11px;
    color: #08b275;
    font-weight: 700;
}

.step3-platform-state-status {
    font-size: 11px;
    margin-top: 3px;
    color: #64748b;
}

.step3-platform-state.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.step3-platform-state.is-success .step3-platform-state-status {
    color: #166534;
}

.step3-platform-state.is-error {
    border-color: #fecaca;
    background: #fef2f2;
}

.step3-platform-state.is-error .step3-platform-state-status {
    color: #991b1b;
}

.step3-timeline-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 10px;
}

.step3-timeline-item.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.step3-timeline-item.is-error {
    border-color: #fecaca;
    background: #fef2f2;
}

.step3-timeline-title {
    font-size: 12px;
    color: #0f172a;
    font-weight: 700;
}

.step3-timeline-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.7;
}

.step3-platform-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.home-platform-card {
    width: 150px;
    min-width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.my-products-modal-content {
    width: min(96vw, 1200px);
    max-width: 1200px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.my-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.my-products-head h3 {
    margin: 0;
    color: #0f172a;
}

.my-products-subtitle {
    color: #64748b;
    font-size: 13px;
    margin: 10px 0;
}

.my-products-actions {
    margin-bottom: 10px;
}

.my-products-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: auto;
}

.my-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.my-products-table th,
.my-products-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 9px 10px;
    text-align: right;
    vertical-align: top;
}

.my-products-table th {
    background: #f8fafc;
    color: #08b275;
    font-weight: 700;
    position: sticky;
    top: 0;
}

.my-products-empty {
    text-align: center !important;
    color: #64748b;
    padding: 20px 10px !important;
}

.my-products-status {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.my-products-status.is-pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.my-products-status.is-success {
    background: #ecfdf5;
    color: #166534;
}

.my-products-status.is-failed {
    background: #fef2f2;
    color: #991b1b;
}

.my-products-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.my-products-images a {
    font-size: 11px;
    color: #2563eb;
    text-decoration: none;
}

.home-platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.home-platform-soon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 0;
    text-align: center;
}

.home-platform-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 10px;
}

.home-platform-card.is-soon .home-platform-body {
    padding-top: 22px;
}

.home-platform-logo-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-platform-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.home-platform-name {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
}

.home-platform-muted {
    filter: grayscale(1);
    opacity: 0.5;
}

.btn-profile-nav,
.btn-back-dashboard,
.btn-back-home {
    border: 1px solid #9eecc1;
    background: #f1fcf5;
    color: #08b274;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-profile-nav {
    padding: 10px 18px;
}

.btn-back-dashboard {
    padding: 9px 16px;
}

.btn-back-home {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
}

.btn-profile-nav:hover,
.btn-back-dashboard:hover,
.btn-back-home:hover {
    background: #08b274;
    border-color: #08b274;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-profile-nav:active,
.btn-back-dashboard:active,
.btn-back-home:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .dashboard-container {
        width: 100%;
        margin: 12px auto;
        padding: 10px;
    }

    .card {
        padding: 16px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 12px;
    }

    .platform-grid--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .method-selector {
        flex-direction: column;
        gap: 10px;
    }

    .actions {
        flex-direction: column;
    }

    .actions button {
        width: 100% !important;
    }

    .connection-item-right {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .dashboard-container {
        margin: 8px auto;
        padding: 8px;
    }

    .card {
        padding: 14px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bulk-upload-method-actions {
        flex-direction: column;
    }

    .bulk-upload-method-actions .bulk-upload-primary-btn,
    .bulk-upload-method-actions .bulk-upload-secondary-link {
        width: 100%;
        text-align: center;
        min-height: 44px;
    }

    .manual-list-table {
        min-width: 560px;
        font-size: 14px;
    }

    .manual-inline-image {
        width: 68px;
        height: 68px;
    }

    .manual-icon-btn {
        width: 44px;
        height: 44px;
    }

    .bulk-edit-title {
        font-size: 24px;
        margin: 2px 0 12px;
    }

    .bulk-edit-modal-content {
        padding: 14px;
        border-radius: 16px;
    }

    #bulk-edit-save {
        font-size: 18px;
        padding: 12px 16px;
    }

    #bulk-edit-cancel {
        font-size: 16px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-grid--cards {
        grid-template-columns: 1fr;
    }

    .bulk-preview-table,
    .manual-list-table {
        min-width: 520px;
    }

    .bulk-edit-title {
        font-size: 20px;
    }

    .bulk-edit-image-item,
    .bulk-edit-add-image {
        width: 100px;
        height: 76px;
    }

    #bulk-edit-price,
    #bulk-edit-name,
    #bulk-edit-desc {
        font-size: 15px;
        min-height: 48px;
    }

    #bulk-edit-desc {
        min-height: 120px;
    }

    .step-header--with-back {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-back-home {
        width: fit-content;
    }
}

/* --- Step 2: import source grid --- */
.import-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

@media (min-width: 640px) {
    .import-source-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
}

@media (min-width: 900px) {
    .import-source-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.import-source-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    min-height: 132px;
}

.import-source-card:hover:not(.import-source-card--disabled) {
    border-color: #08b274;
    box-shadow: 0 8px 24px rgba(8, 178, 116, 0.12);
    transform: translateY(-2px);
}

.import-source-card--selected {
    border-color: #08b274;
    background: linear-gradient(180deg, #f1fcf7 0%, #ffffff 55%);
    box-shadow: 0 6px 20px rgba(8, 178, 116, 0.18);
}

.import-source-card--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.import-source-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.import-source-card__icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    object-position: center;
    margin-inline: auto;
    display: block;
}

.import-source-grid.import-source-strip .import-source-card__icon-wrap {
    margin-inline: auto;
}

.import-source-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 100%;
    align-items: center;
}

.import-source-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.import-source-card__subtitle {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.import-source-panel {
    margin-top: 4px;
}

.import-stub-panel {
    margin-top: 8px;
}

.import-stub-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    background: #fafafa;
}

.import-stub-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}

.import-stub-note {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.7;
}

.import-stub-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    opacity: 0.85;
}

/* --- Shared wizard shells (steps 1,2,3) --- */
.card--wizard {
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.wizard-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.wizard-topbar__main {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.wizard-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 6px;
}

.wizard-main-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.32;
}

.wizard-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.75;
}

.wizard-step-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.wizard-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.wizard-section-label__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    flex-shrink: 0;
}

.platform-grid--wizard {
    margin-top: 4px;
}

.wizard-back-btn {
    border-radius: 12px;
    font-weight: 800;
}

.wizard-actions {
    margin-top: 18px;
    justify-content: flex-start;
}

.wizard-btn-next {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    border-radius: 14px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 22px rgba(8, 178, 116, 0.22);
}

.step3-shell-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
}

/* --- Step 2 redesign (مبدأ محصولات) --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.card--step2 {
    border-radius: 20px;
    overflow: hidden;
}

.step2-top-bar {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.step2-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    font-family: inherit;
    flex-shrink: 0;
}

.step2-guide-btn:hover {
    border-color: #08b274;
    color: #08b274;
    background: #f0fdf4;
}

.step2-guide-btn__icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.step2-top-bar__main {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.step2-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 14px;
    margin-bottom: 6px;
}

.step2-main-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.step2-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.step2-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.step2-source-strip-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.step2-source-strip-label__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3fbd90;
    flex-shrink: 0;
}

/* نوار افقی مبدأها — RTL: اولین آیتم DOM سمت راست (فعال‌ها ابتدای آرایه مرتب‌شده) */
.import-source-grid.import-source-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0 0 20px;
    padding: 4px 2px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    direction: rtl;
}

.import-source-grid.import-source-strip .import-source-card {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 170px;
    scroll-snap-align: start;
    min-height: 168px;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.import-source-card__check {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #08b274;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(8, 178, 116, 0.35);
    z-index: 2;
}

.import-source-card__check[hidden] {
    display: none !important;
}

.import-source-card__footer {
    margin-top: auto;
    width: 100%;
    align-self: stretch;
    padding-top: 8px;
    display: flex;
    justify-content: center;
}

.import-source-card__status {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    line-height: 1.2;
}

.import-source-card__status--connected {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.import-source-card__status--ready {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.import-source-card__status--connectable {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.import-source-card__status--soon {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.import-source-card__text {
    flex: 1;
    justify-content: center;
}

.step2-product-panel-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.step2-product-panel-head__text {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.step2-dynamic-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.step2-dynamic-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.step2-selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    color: #047857;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.step2-source-fetch-wrap {
    margin: 0 0 14px;
    display: flex;
    justify-content: flex-start;
}

.step2-source-fetch-btn {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #08b274 0%, #0ea769 100%);
    color: #fff;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(8, 178, 116, 0.26);
}

.step2-source-fetch-btn:hover {
    filter: brightness(1.04);
}

.bulk-preview-panel {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    overflow: hidden;
    margin-top: 8px;
}

.bulk-preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bulk-preview-toolbar__search {
    position: relative;
    flex: 1 1 200px;
    min-width: 0;
}

.bulk-preview-search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
}

.bulk-preview-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
}

.bulk-preview-search-input:focus {
    outline: none;
    border-color: #08b274;
    box-shadow: 0 0 0 3px rgba(8, 178, 116, 0.15);
}

.bulk-preview-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 1 auto;
}

.bulk-preview-select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    color: #334155;
    min-width: 140px;
}

.bulk-preview-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bulk-preview-panel .bulk-preview-table-wrap {
    margin: 0;
    border: none;
    border-radius: 0;
}

.bulk-preview-table .bulk-preview-col-price,
.bulk-preview-table .bulk-preview-col-inventory {
    white-space: nowrap;
    font-size: 13px;
    color: #334155;
}

.bulk-preview-table .bulk-preview-col-category {
    font-size: 12px;
    color: #94a3b8;
}

.bulk-preview-empty-filter {
    text-align: center;
    padding: 28px 16px;
    color: #64748b;
    font-size: 14px;
}

.bulk-preview-stock-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.bulk-preview-stock-pill--ok {
    background: #dcfce7;
    color: #166534;
}

.bulk-preview-stock-pill--no {
    background: #ffe4e6;
    color: #be123c;
}

.bulk-product-cell .bulk-product-chips {
    display: none;
}

.step2-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.step2-btn-back {
    min-width: 120px;
    padding: 12px 22px !important;
    border-radius: 14px !important;
}

.step2-btn-continue {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    box-shadow: 0 8px 24px rgba(8, 178, 116, 0.25);
    background: linear-gradient(135deg, #08b274 0%, #0ea769 100%) !important;
    border-color: #0ea769 !important;
}

.step2-btn-continue__icon {
    flex-shrink: 0;
}

.step2-btn-continue:disabled {
    opacity: 0.5 !important;
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    box-shadow: none;
    cursor: not-allowed;
}

/* نوار پایین: همیشه قابل مشاهده هنگام انتخاب */
#bulk-sticky-action-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 16px;
    z-index: 11000;
    width: min(860px, calc(100% - 24px));
    margin-inline: auto;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}

.step2-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.step2-guide-modal.d-none {
    display: none !important;
}

.step2-guide-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.step2-guide-modal__panel {
    position: relative;
    z-index: 1;
    max-width: 440px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 24px 24px 20px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    text-align: right;
}

.step2-guide-modal__close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    font-family: inherit;
}

.step2-guide-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.step2-guide-modal__title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    padding-inline-end: 36px;
}

.step2-guide-modal__list {
    margin: 0;
    padding-inline-start: 20px;
    font-size: 14px;
    color: #475569;
    line-height: 1.85;
}

.step2-guide-modal__list li {
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .wizard-topbar {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .wizard-title-row {
        justify-content: flex-start;
    }

    .wizard-main-title,
    .wizard-subtitle {
        text-align: right;
    }

    .wizard-actions {
        justify-content: stretch;
    }

    .wizard-btn-next {
        width: 100%;
        justify-content: center;
    }

    .step2-product-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .step2-selected-pill {
        justify-content: center;
    }

    .step2-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .step2-btn-continue,
    .step2-btn-back {
        width: auto;
        justify-content: center;
    }

    #bulk-sticky-action-bar {
        width: calc(100% - 16px);
        bottom: 8px;
    }
}
