:root {
  --mobile-nav-height: 72px;
}
body {
  font-family: "Vazirmatn", sans-serif;
  background: #09051a;
  color: #fff;
}

/* ==========================
   Dashboard
========================== */

.dashboard-page {
  background: #09051a;
  min-height: 100vh;
}

.dashboard-content {
  padding: 35px;
  padding-bottom: 95px;
}

.welcome {
  font-size: 28px;
  font-weight: 700;
}

/* ==========================
   Sidebar
========================== */

.sidebar {
  background: #120b2b;
  min-height: 100vh;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.logo span {
  color: #ff9800;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.25s;
}

.menu-link:hover,
.menu-link.active {
  background: #ff9800;
  color: #fff;
}

/* ==========================
   Dashboard Cards
========================== */

.dashboard-card,
.stat-card {
  background: #171126;
  border: 1px solid #30254b;
  border-radius: 18px;
  transition: 0.25s;
}

.dashboard-card:hover,
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.stat-card {
  padding: 25px;
  height: 100%;
}

.stat-title {
  color: #999;
  font-size: 14px;
}

.stat-number {
  font-size: 34px;
  font-weight: bold;
  margin: 15px 0;
}

/* ==========================
   Orders
========================== */

.orders-box {
  background: #171126;
  border-radius: 20px;
  overflow: hidden;
}

.order-head {
  color: #777;
  border-bottom: 1px solid #30254b;
}

.order-row {
  border-bottom: 1px solid #30254b;
}

.order-row:last-child {
  border-bottom: none;
}

.status {
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 12px;
}

.status.new {
  background: #063b37;
  color: #00e5a8;
}

.status.pending {
  background: #4b3510;
  color: #ffc107;
}

.status.done {
  background: #2d2147;
  color: #d3b5ff;
}

.success {
  color: #00e5a8;
}

.warning {
  color: #ffc107;
}

.price {
  color: #ffb300;
  font-size: 20px;
  font-weight: bold;
}

/* ==========================
   Forms
========================== */

.form-label {
  color: #bbb;
}

.form-control,
.form-select {
  background: #0f0b1f;
  border: 1px solid #30254b;
  color: #fff;
}

.form-control:focus,
.form-select:focus {
  background: #0f0b1f;
  color: #fff;
  border-color: #ff9800;
  box-shadow: none;
}

.form-control::placeholder {
  color: #777;
}

.input-group-text {
  background: #120b2b;
  color: #999;
  border: 1px solid #30254b;
}

.dropdown-menu {
  background: #171126;
  border: 1px solid #30254b;
}

.dropdown-item {
  color: #ddd;
}

.dropdown-item:hover {
  background: #24183d;
  color: #fff;
}

.img-thumbnail {
  background: #120b2b;
  border: 1px solid #30254b;
  border-radius: 14px;
}

/* ==========================
   Product Cards
========================== */

.product-card {
  overflow: hidden;
  flex-direction: column;
}

.product-image {
  height: 240px;
  background: #0f0b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s;
}

.product-card:hover img {
  transform: scale(1.05);
}

.no-image {
  color: #555;
  font-size: 60px;
}

.product-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.product-desc {
  color: #9d9db2;
  min-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.badge-stock {
  background: #1d5e35;
  color: #fff;
}

.card-footer {
  background: transparent;
  border-top: 1px solid #30254b;
}

/* ==========================
   Search
========================== */

.search-box .form-control {
  background: #120b2b;
}

.search-box .input-group-text {
  background: #120b2b;
}

/* ==========================
   Mobile Bottom Navigation
========================== */

.mobile-nav {
  position: fixed;
  bottom: 0;
  top: unset;
  left: 0;
  right: 0;
  height: 72px;
  background: #171126;
  border-top: 1px solid #30254b;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.35);
}

.mobile-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #888;
  font-size: 12px;
}

.mobile-nav a i {
  display: block;
  font-size: 22px;
}

.mobile-nav a.active {
  color: #ff9800;
}

.mobile-nav a.mobile-center {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  max-width: 62px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  background: #24183d;
  color: #ffb340;
  margin-top: -28px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mobile-nav a.mobile-center.active {
  background: #ff9800;
  color: #171126 !important;
  box-shadow: 0 10px 25px rgba(255, 152, 0, 0.45);
}

.mobile-nav a.mobile-center.active i {
  display: block;
  color: #171126 !important;
  line-height: 1;
}

.mobile-center span {
  display: none;
}

.mobile-center i {
  font-size: 28px !important;
}
.shop-type-card {
  cursor: pointer;
  transition: 0.25s;
  position: relative;
}

.shop-type-card:hover {
  border-color: #ff9800;
  transform: translateY(-4px);
}

.shop-type-card.selected {
  border: 2px solid #ff9800;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.18);
}

.shop-type-card h4 {
  font-size: 44px;
  margin-bottom: 15px;
}

.shop-type-card h5 {
  color: #fff;
  font-weight: 700;
}

.shop-type-card small {
  color: #9b9baf;
}

.shop-type-card .check {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff9800;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.big-logo {
  max-height: 70px;
}

textarea.form-control {
  resize: none;
}
.shop-category-card {
  cursor: pointer;

  transition: 0.25s;

  position: relative;
}

.shop-category-card:hover {
  transform: translateY(-6px);

  border-color: #ff9800;
}

.shop-category-card.selected {
  border: 2px solid #ff9800;

  box-shadow: 0 0 20px rgba(255, 152, 0, 0.18);
}

.category-icon {
  width: 82px;

  height: 82px;

  margin: auto;

  border-radius: 20px;

  background: #24183d;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 42px;
}

.shop-category-card h5 {
  font-weight: 700;
}

.shop-category-card p {
  line-height: 1.7;
}

.shop-category-card .check {
  position: absolute;

  top: 14px;

  left: 14px;

  width: 30px;

  height: 30px;

  border-radius: 50%;

  background: #ff9800;

  color: #fff;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 16px;
}
.mobile-product-card {
  padding: 15px;
  border-radius: 18px;
}

.mobile-product-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.mobile-product-image img,
.mobile-product-image .no-image {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.mobile-product-image .no-image {
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 30px;
}

.mobile-product-title {
  color: white;
  font-size: 15px;
  font-weight: 700;
}

.mobile-product-desc {
  color: #9ca3af;
  font-size: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-price {
  color: #ffc107;
  font-weight: bold;
  font-size: 14px;
}

.mobile-price small {
  color: #aaa;
  font-size: 11px;
}
.social-icon {
  width: 24px;
}

.mobile-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-product-actions .btn {
  border-radius: 12px;
  padding: 8px;
}
.mobile-nav a.active {
  color: #ff9800 !important;
}

.mobile-nav a.active i {
  color: #ff9800 !important;
}

/* The primary action has an orange surface, so its icon must stay dark. */
.mobile-nav a.mobile-center.active i {
  color: #171126 !important;
}
.ltr {
  direction: ltr;
  text-align: left;
}

.shop-link-card {
  overflow: hidden;
}

.shop-url {
  background: #111827;

  border-radius: 12px;

  padding: 12px;

  font-size: 14px;

  color: #fff;
}

.link-card {
  cursor: pointer;

  transition: 0.2s;
}

.link-card:hover {
  transform: translateY(-3px);
}

.link-url {
  direction: ltr;

  text-align: left;

  background: #111827;

  padding: 10px;

  border-radius: 10px;

  font-size: 13px;

  color: #ddd;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.copy-hint {
  color: #f0ad00;

  font-size: 12px;
}

@media (max-width: 576px) {
  .shop-url {
    font-size: 12px;

    padding: 10px;
  }

  .link-url {
    font-size: 12px;
  }

  .link-card h6 {
    font-size: 14px;
  }
}
.link-type-card {
  background: #1f2937;

  border: 1px solid #374151;

  border-radius: 16px;

  padding: 20px;

  display: flex;

  align-items: center;

  gap: 15px;

  cursor: pointer;

  transition: 0.2s;
}

.link-type-card:hover,
.link-type-card.active {
  border-color: #ffc107;

  transform: translateY(-3px);
}

.link-type-icon {
  font-size: 35px;
}

.product-select-card {
  background: #1f2937;

  border-radius: 15px;

  padding: 12px;

  cursor: pointer;

  border: 2px solid transparent;
}

.product-select-card img {
  width: 100%;

  height: 120px;

  object-fit: cover;

  border-radius: 10px;
}

.product-select-card.selected {
  border-color: #ffc107;
}
.link-target-card {
  background: #1f2937;

  border: 2px solid transparent;

  border-radius: 16px;

  padding: 22px;

  cursor: pointer;

  text-align: center;

  transition: 0.25s;

  height: 100%;
}

.link-target-card i {
  font-size: 34px;

  color: #ffc107;

  display: block;

  margin-bottom: 12px;
}

.link-target-card.active {
  border-color: #ffc107;

  background: #2d3748;

  transform: translateY(-2px);
}

.select-product-card {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 14px;

  background: #1f2937;

  border: 2px solid transparent;

  border-radius: 14px;

  cursor: pointer;

  transition: 0.25s;
}

.select-product-card:hover {
  border-color: #555;
}

.select-product-card.selected {
  border-color: #ffc107;

  background: #2d3748;
}

.select-product-card img {
  width: 70px;

  height: 70px;

  object-fit: cover;

  border-radius: 12px;
}

.no-image {
  width: 70px;

  height: 70px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #2f3745;

  border-radius: 12px;
}

.category-card {
  padding: 18px;

  background: #1f2937;

  border-radius: 14px;

  cursor: pointer;

  border: 2px solid transparent;

  transition: 0.25s;

  text-align: center;
}

.category-card.selected {
  border-color: #ffc107;

  background: #2d3748;
}
.channel-card {
  background: #1f2937;

  border: 2px solid transparent;

  border-radius: 16px;

  padding: 15px;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 12px;

  transition: 0.2s;
}

.channel-card.selected {
  border-color: #ffc107;

  background: #2b3545;
}

.social-icon {
  width: 35px;
  height: 35px;
}
.social-icon-small {
  width: 24px;
  height: 24px;
}
/* ==========================
   Responsive
========================== */

@media (min-width: 992px) {
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 20px;
  }
  .page-content {
    padding-bottom: calc(var(--mobile-nav-height) + 24px);
  }
  .welcome {
    font-size: 22px;
  }
}

/* ==========================
   ویژگی‌های محصول
   ویژگی‌ها از قبل تعریف شده‌اند؛ فروشنده فقط انتخاب
   می‌کند. دکمه‌ها عمداً بزرگ‌اند تا روی موبایل قابل
   لمس باشند (حداقل ۴۴ پیکسل).
========================== */

.attribute-row {
  padding: 14px 0;
  border-bottom: 1px solid #241b3d;
}

.attribute-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.attribute-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attribute-chip {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 100px;
  background: #1f1733;
  border: 1px solid #30254b;
  color: #cfc7e6;
  font-size: 0.9rem;
  transition: 0.18s;
}

.attribute-chip:hover {
  border-color: #ffc107;
  color: #fff;
}

.attribute-chip.active {
  background: #ffc107;
  border-color: #ffc107;
  color: #111827;
  font-weight: 700;
}

.attribute-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attribute-color {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #30254b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: 0.18s;
}

.attribute-color:hover {
  transform: scale(1.08);
}

.attribute-color.active {
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

/* --- افزودن و حذف مقدار توسط فروشنده --- */

.attribute-chip-wrap,
.attribute-color-wrap {
  position: relative;
  display: inline-flex;
}

.attribute-color-wrap {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.attribute-option-label {
  font-size: 11px;
  color: #9c93b8;
  max-width: 60px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* دکمه حذف: روی موبایل همیشه دیده می‌شود،
   روی دسکتاپ فقط هنگام hover */
.attribute-remove {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

@media (hover: hover) {
  .attribute-remove {
    opacity: 0;
    transition: opacity 0.15s;
  }

  .attribute-chip-wrap:hover .attribute-remove,
  .attribute-color-wrap:hover .attribute-remove {
    opacity: 1;
  }
}

.attribute-add {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 100px;
  background: transparent;
  border: 1px dashed #4a3d6b;
  color: #ffc107;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.18s;
}

.attribute-add:hover {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.08);
}

.attribute-new {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.attribute-new .form-control {
  flex: 1;
  min-width: 140px;
  background: #1f1733;
  border-color: #30254b;
  color: #fff;
}

.attribute-new .form-control:focus {
  background: #1f1733;
  border-color: #ffc107;
  color: #fff;
  box-shadow: none;
}

.attribute-new .form-control-color {
  flex: 0 0 48px;
  min-width: 48px;
  padding: 4px;
}

/* ==========================
   سازنده فرم سفارش سفارشی
========================== */

.builder-field {
  background: #1a1430;
  border: 1px solid #30254b;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.builder-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.builder-field-head:hover {
  background: #1f1733;
}

.builder-field-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.92rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-field-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.builder-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #30254b;
  background: transparent;
  color: #cfc7e6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}

.builder-icon-btn:hover:not(:disabled) {
  border-color: #ffc107;
  color: #fff;
}

.builder-icon-btn:disabled {
  opacity: 0.3;
}

.builder-field-body {
  padding: 0 16px 16px;
  border-top: 1px solid #241b3d;
  padding-top: 16px;
}

.builder-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.builder-option .form-control {
  flex: 1;
  min-width: 0;
}

.builder-option-price {
  flex: 0 0 160px;
  max-width: 160px;
}

.builder-add-bar {
  border-top: 1px dashed #30254b;
  padding-top: 16px;
  margin-top: 16px;
}

/* ورودی‌های داخل سازنده فرم با تم تیره هماهنگ شوند */
.builder-field-body .form-control,
.builder-field-body .form-select {
  background: #120b2b;
  border-color: #30254b;
  color: #fff;
}

.builder-field-body .form-control:focus,
.builder-field-body .form-select:focus {
  background: #120b2b;
  border-color: #ffc107;
  color: #fff;
  box-shadow: none;
}

.builder-field-body .form-control::placeholder {
  color: #6b6285;
}

@media (max-width: 575px) {
  .builder-option {
    flex-wrap: wrap;
  }

  .builder-option-price {
    flex: 1;
    max-width: none;
  }
}

/* =====================================================
   مدیریت سفارش
   ===================================================== */

.order-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c6a80;
  pointer-events: none;
}

/* ---------- تب وضعیت ---------- */
.status-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.status-tabs::-webkit-scrollbar {
  height: 4px;
}

.status-tabs::-webkit-scrollbar-thumb {
  background: #30254b;
  border-radius: 4px;
}

.status-tab {
  flex-shrink: 0;
  background: #1a1430;
  border: 1px solid #30254b;
  color: #a9a6c0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s;
}

.status-tab:hover {
  border-color: var(--gold-500, #d4a53a);
  color: #fff;
}

.status-tab.active {
  background: var(--gold-500, #d4a53a);
  border-color: var(--gold-500, #d4a53a);
  color: #1a1430;
  font-weight: 700;
}

.status-tab-count {
  display: inline-block;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  margin-inline-start: 4px;
}

.status-tab:not(.active) .status-tab-count {
  background: #30254b;
  color: #fff;
}
/* ---------- نشان وضعیت ---------- */
.badge-status {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-status-new {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.badge-status-review {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}

.badge-status-wait {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}

.badge-status-ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.badge-status-progress {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}

.badge-status-done {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.badge-status-cancel {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ---------- کارت سفارش در لیست ----------
   نام عمداً order-list-item است نه order-row، چون
   .order-row از قبل برای جدول داشبورد استفاده می‌شود. */
.order-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1430;
  border: 1px solid #30254b;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

/* Product inventory mode and variant editor */
.inventory-mode {
  padding: 16px;
  border: 1px solid #30254b;
  border-radius: 8px;
  background: #171126;
}
.inventory-mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.inventory-mode-option {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: right;
  color: #cfc7e6;
  background: #1f1733;
  border: 1px solid #3a2d57;
  border-radius: 8px;
}
.inventory-mode-option > i:first-child {
  font-size: 22px;
  color: #9c93b8;
}
.inventory-mode-option span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.inventory-mode-option small {
  color: #8f87a6;
  font-size: 11px;
}
.inventory-mode-option .inventory-mode-check {
  visibility: hidden;
  color: #ffc107;
}
.inventory-mode-option.active {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.08);
  color: #fff;
}
.inventory-mode-option.active .inventory-mode-check {
  visibility: visible;
}
.variant-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.variant-step > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #ffc107;
  color: #171126;
  font-weight: 800;
}
.variant-step div {
  display: flex;
  flex-direction: column;
}
.variant-step small {
  color: #9189a8;
  font-size: 11px;
}
.variant-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.variant-option {
  padding: 7px 11px;
  border: 1px solid #42345f;
  border-radius: 7px;
  background: #1d162e;
  color: #bbb3ce;
}
.variant-option.active {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
  color: #fff;
}
.variant-option i {
  margin-left: 4px;
}
.variant-bulk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 7px;
  background: #171126;
}
.variant-bulk label {
  color: #bcb4cf;
  font-size: 12px;
}
.variant-bulk .form-control {
  width: 120px;
}
.variant-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bcb4cf;
  font-size: 12px;
  white-space: nowrap;
}
.table-responsive .table input.form-control-sm {
  min-width: 90px;
}

@media (max-width: 575px) {
  .inventory-mode-options {
    grid-template-columns: 1fr;
  }
  .inventory-mode-option {
    min-height: 64px;
  }
  .variant-bulk {
    align-items: center;
  }
  .variant-bulk label {
    width: 64px;
  }
  .variant-bulk .form-control {
    flex: 1;
    width: auto;
  }
  .variant-builder .table {
    min-width: 0;
  }
  .variant-builder .table thead {
    display: none;
  }
  .variant-builder .table tbody,
  .variant-builder .table tr,
  .variant-builder .table td {
    display: block;
    width: 100%;
  }
  .variant-builder .table tr {
    padding: 12px 0;
    border-bottom: 1px solid #30254b;
  }
  .variant-builder .table td {
    padding: 4px 0;
    border: 0;
  }
  .variant-builder .table td:first-child {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    padding-bottom: 8px;
  }
  .variant-builder .table td:nth-child(2)::before {
    content: "قیمت";
    display: block;
    color: #9c93b8;
    font-size: 11px;
    margin-bottom: 3px;
  }
  .variant-builder .table td:nth-child(3)::before {
    content: "موجودی";
    display: block;
    color: #9c93b8;
    font-size: 11px;
    margin-bottom: 3px;
  }
  .variant-builder .table td:nth-child(4)::before {
    content: "وضعیت";
    display: block;
    color: #9c93b8;
    font-size: 11px;
    margin-bottom: 3px;
  }
}

.order-list-item:hover {
  border-color: var(--gold-500, #d4a53a);
  transform: translateY(-1px);
}

.order-list-item-main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(180px, 1fr);
  align-items: center;
  column-gap: 16px;
}

.order-list-item-main > .d-flex {
  grid-column: 1 / -1;
  margin-bottom: 4px !important;
}

.order-code {
  font-family: monospace;
  font-size: 13px;
  color: var(--gold-500, #d4a53a);
  letter-spacing: 0.5px;
}

.order-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #241c40;
  border: 1px solid #30254b;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  color: #a9a6c0;
}

.order-list-item-customer {
  color: #fff;
  font-size: 14px;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-list-item-customer i {
  color: #6c6a80;
  margin-inline-end: 4px;
}

.order-list-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: #6c6a80;
}

.order-list-item-meta i {
  margin-inline-end: 3px;
}

.order-list-item-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.order-list-item-price {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: end;
}

.order-list-item-price small {
  display: block;
  color: #6c6a80;
  font-size: 11px;
  font-weight: 400;
}
/* ---------- جزئیات سفارش ---------- */
.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #241b3d;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item-image {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #241c40;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c6a80;
  font-size: 20px;
  flex-shrink: 0;
}

.detail-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-answer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #241b3d;
}

.detail-answer:last-child {
  border-bottom: none;
}

.detail-answer-label {
  color: #6c6a80;
  font-size: 13px;
  flex-shrink: 0;
}

.detail-answer-value {
  color: #fff;
  font-size: 13px;
  text-align: end;
}

.detail-price {
  color: var(--gold-500, #d4a53a);
  font-size: 26px;
  font-weight: 800;
}

.detail-price small {
  color: #6c6a80;
  font-size: 14px;
  font-weight: 400;
  margin-inline-start: 4px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  color: #6c6a80;
}

.detail-row a {
  text-decoration: none;
}

/* ---------- انتخابگر وضعیت ---------- */
.status-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pick {
  background: #1f1733;
  border: 1px solid #30254b;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: #a9a6c0;
  transition: all 0.2s;
}

.status-pick:hover:not(:disabled) {
  border-color: var(--gold-500, #d4a53a);
  color: #fff;
}

.status-pick.active {
  background: var(--gold-500, #d4a53a);
  border-color: var(--gold-500, #d4a53a);
  color: #1a1430;
  font-weight: 700;
}

.status-pick:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- تاریخچه ---------- */
.detail-history {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}

.detail-history:not(:last-child)::before {
  content: "";
  position: absolute;
  right: 5px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: #241c40;
}

.detail-history-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500, #d4a53a);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

/* ---------- موبایل ---------- */
@media (max-width: 575px) {
  .order-list-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 9px 10px;
  }

  .order-list-item-main {
    width: 100%;
    display: block;
  }

  .order-list-item-main > .d-flex {
    margin-bottom: 5px !important;
  }

  .order-list-item-customer {
    margin-bottom: 4px;
  }

  .order-list-item-side {
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid #241b3d;
  }

  .order-list-item-price {
    text-align: start;
  }
}

/* ---------- گزارش کانال در داشبورد ---------- */
.channel-stat {
  margin-bottom: 14px;
}

.channel-stat:last-child {
  margin-bottom: 0;
}

.channel-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.channel-stat-bar {
  height: 6px;
  background: #241c40;
  border-radius: 999px;
  overflow: hidden;
}

.channel-stat-fill {
  height: 100%;
  background: var(--gold-500, #d4a53a);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ---------- ردیف سفارش در داشبورد ---------- */
.dashboard-order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #30254b;
  text-decoration: none;
  transition: background 0.2s;
}

.dashboard-order-row:last-child {
  border-bottom: none;
}

.dashboard-order-row:hover {
  background: #1f1733;
}

.order-link-create-page {
  max-width: 1180px;
  margin-inline: auto;
}
.link-create-panel > .dashboard-card {
  background: #151c26;
  border: 1px solid #344050;
  box-shadow: none;
}
.link-target-card,
.category-card,
.channel-card,
.product-select-card {
  min-height: 100%;
  border-radius: 8px;
}
.link-target-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.link-create-actions .btn {
  border-radius: 8px;
  font-weight: 700;
}
@media (max-width: 767px) {
  .order-link-create-page {
    padding-bottom: 96px !important;
  }
  .link-create-actions {
    position: sticky;
    bottom: 72px;
    z-index: 20;
    padding-top: 12px;
    background: linear-gradient(to top, #111827 70%, transparent);
  }
  .product-select-card img,
  .product-select-card .no-image {
    height: 96px;
  }
}

/* =====================================================
   Phase 6 seller shell, navigation and settings
   ===================================================== */

.seller-shell {
  min-height: 100vh;
  background: #09051a;
}

.seller-sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: 248px;
  padding: 20px 14px;
  background: #101720;
  border-inline-end: 1px solid #273241;
  flex-direction: column;
  z-index: 1020;
  overflow-y: auto;
  overflow-x: hidden;
}

.seller-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
}

.seller-brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
}

.seller-brand strong,
.seller-brand small {
  display: block;
}

.seller-brand strong {
  color: #fff;
  font-size: 18px;
}

.seller-brand small {
  color: #8d86a3;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-nav-list {
  display: grid;
  gap: 5px;
  width: inherit;
  background-color: #101720;
  position: static;
}

.seller-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 7px;
  color: #aeb8c5;
  text-decoration: none;
  transition: 0.18s ease;
}

.seller-nav-link i {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.seller-nav-link:hover,
.seller-nav-link.active {
  color: #fff;
  background: #1c2734;
}

.seller-nav-link.active {
  box-shadow: inset -3px 0 #d4a53a;
}

.seller-nav-link.active i {
  color: #e3b94f;
}

.seller-nav-divider {
  height: 1px;
  background: #30254b;
  margin: 16px 8px;
}

.seller-logout {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 12px;
}

.seller-main {
  min-width: 0;
  padding: 32px;
  padding-bottom: 104px;
}

@media (min-width: 992px) {
  .seller-main {
    margin-inline-start: 248px;
    padding-bottom: 40px;
  }

  .seller-mobile-header,
  .seller-offcanvas {
    display: none !important;
  }
}

.seller-mobile-header {
  position: sticky;
  top: 0;
  z-index: 1015;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(16, 23, 32, 0.97);
  border-bottom: 1px solid #273241;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.seller-icon-button,
.seller-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #334152;
  border-radius: 7px;
  background: #18222d;
  color: #e6edf5;
}

.seller-icon-button:hover,
.seller-avatar:hover {
  border-color: #d4a53a;
  color: #e3b94f;
  background: #1c2734;
}

.seller-icon-button i {
  font-size: 23px;
}

.seller-mobile-title {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.seller-mobile-title strong,
.seller-mobile-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-mobile-title strong {
  color: #fff;
}
.seller-mobile-title small {
  color: #8d86a3;
  font-size: 11px;
}

.seller-offcanvas {
  --bs-offcanvas-bg: #101720;
  --bs-offcanvas-color: #fff;
  --bs-offcanvas-border-color: #273241;
  width: min(82vw, 304px) !important;
  max-width: 304px;
  background: #101720;
  color: #fff;
  z-index: 1055;
  pointer-events: auto;
  border-inline-end: 1px solid #273241 !important;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.38);
}

.seller-offcanvas .offcanvas-header,
.seller-offcanvas .offcanvas-body {
  background: #101720 !important;
  color: #fff !important;
}

@media (min-width: 992px) {
  .seller-sidebar {
    display: flex !important;
    right: 0;
    left: auto;
  }
  .seller-main {
    margin-right: 248px !important;
    margin-left: 0 !important;
    width: -webkit-fill-available;
  }
  .seller-mobile-header,
  .seller-offcanvas,
  .offcanvas-backdrop {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .seller-sidebar {
    display: none !important;
  }
  .seller-main {
    margin: 0 !important;
  }
}

.seller-offcanvas .offcanvas-header {
  min-height: 68px;
  padding: 12px 14px;
  border-bottom: 1px solid #273241;
}
.seller-offcanvas .offcanvas-body {
  padding: 12px;
  overflow-y: auto;
}
.seller-offcanvas .seller-nav-list {
  gap: 3px;
}
.seller-offcanvas .seller-nav-link {
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.seller-offcanvas .seller-nav-link i {
  font-size: 17px;
}
.seller-offcanvas .seller-logout {
  min-height: 40px;
  border-radius: 7px;
  font-size: 13px;
}
.seller-offcanvas-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seller-offcanvas-brand img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
}
.seller-offcanvas-brand > div {
  min-width: 0;
}
.seller-offcanvas-brand h5,
.seller-offcanvas-brand small {
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seller-offcanvas-brand h5 {
  font-size: 15px;
  margin: 0 0 2px;
}

.seller-offcanvas .offcanvas-body,
.seller-offcanvas .seller-nav-link,
.seller-offcanvas .seller-logout {
  pointer-events: auto;
}

.seller-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.seller-page-head h1 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 5px;
}

.seller-page-head p {
  color: #8d86a3;
  margin: 0;
}

.profile-page .seller-page-head {
  margin-bottom: 18px;
}
.profile-page .seller-page-head h1 {
  font-size: 25px;
}
.profile-page .seller-page-head p {
  font-size: 13px;
}
.profile-page .seller-form-card {
  padding: 22px;
}
.profile-page .section-title {
  gap: 10px;
  margin-bottom: 16px;
}
.profile-page .section-title h2 {
  font-size: 17px;
}
.profile-page .section-title small,
.profile-page .form-label {
  font-size: 12px;
}
.profile-page .form-control {
  min-height: 42px;
  font-size: 14px;
}
.profile-page .btn {
  font-size: 13px;
}

.seller-receipt + .seller-receipt {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.seller-receipt-image {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #111820;
  color: #ffc107;
  text-align: center;
  text-decoration: none;
}
.seller-receipt-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
}
.seller-receipt-image span {
  display: block;
  padding: 9px;
  font-size: 12px;
}

.seller-loading {
  min-height: 240px;
  display: grid;
  place-items: center;
}

.seller-form-card {
  padding: clamp(20px, 3vw, 30px);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-title > i,
.section-title > div.d-flex > i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
  font-size: 20px;
}

.section-title h2 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 3px;
}

.section-title small {
  color: #8d86a3;
}

.section-title-actions {
  justify-content: space-between;
  flex-wrap: wrap;
}

.otp-field {
  letter-spacing: 12px;
  font-size: 22px;
}

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

.settings-span-2 {
  grid-column: span 2;
}

.shop-logo-editor {
  display: grid;
  gap: 18px;
}

.shop-logo-preview {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid #40345d;
  background: #0f0b1f;
  color: #6c6a80;
  font-size: 42px;
}

.shop-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.setting-note,
.empty-inline {
  padding: 13px 15px;
  border: 1px solid #30254b;
  border-radius: 12px;
  background: #120b2b;
  color: #8d86a3;
  font-size: 13px;
}

.channel-editor {
  display: grid;
  grid-template-columns: 150px 1fr minmax(220px, 2fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #30254b;
}

.channel-editor:last-child {
  border-bottom: 0;
}

.settings-save-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}
.settings-save-bar .btn {
  min-width: 150px;
  padding: 9px 16px;
}
.settings-page .seller-page-head {
  margin-bottom: 18px;
}
.settings-page .settings-grid {
  gap: 14px;
}
.settings-page .seller-form-card {
  padding: 18px;
}
.settings-page .section-title {
  gap: 10px;
  margin-bottom: 16px;
}
.settings-page .section-title > i,
.settings-page .section-title > div.d-flex > i {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 17px;
}
.settings-page .section-title h2 {
  font-size: 16px;
}
.settings-page .section-title small {
  font-size: 12px;
  line-height: 1.6;
}
.settings-page .form-label {
  font-size: 13px;
  margin-bottom: 5px;
}
.settings-page .form-control,
.settings-page .form-select,
.settings-page .input-group-text {
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.settings-page textarea.form-control {
  min-height: 88px;
}
.settings-page .shop-logo-preview {
  width: 96px;
  height: 96px;
  border-radius: 18px;
}

.feature-unavailable {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 38px 22px;
  border: 1px dashed #4b3d66;
  border-radius: 22px;
  background: #171126;
}

.feature-unavailable > i {
  font-size: 48px;
  color: #ffc107;
}

.feature-unavailable h2 {
  color: #fff;
  font-size: 21px;
  margin: 18px 0 8px;
}

.feature-unavailable p {
  max-width: 600px;
  color: #8d86a3;
}

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

.customer-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.customer-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffc107;
  color: #22182e;
  font-size: 22px;
  font-weight: 800;
}

.customer-card-main {
  min-width: 0;
  flex: 1;
}
.customer-card-main h2 {
  color: #fff;
  font-size: 16px;
  margin: 0;
}
.customer-card-main a {
  color: #f5c75c;
  font-size: 13px;
}
.customer-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #8d86a3;
  font-size: 12px;
}
.customer-metrics strong {
  color: #fff;
}

.phone-link-list {
  display: grid;
  gap: 12px;
}
.phone-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}
.phone-link-main {
  min-width: 0;
}
.phone-link-main > .d-flex > strong {
  color: #fff;
  font-size: 17px;
}
.phone-link-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #8d86a3;
  font-size: 12px;
}

.report-channel {
  margin-bottom: 20px;
}
.report-channel .channel-stat-head {
  color: #fff;
}
.report-channel .channel-stat-head span {
  color: #8d86a3;
  font-size: 13px;
}

.subscription-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1d1535, #171126);
}

.subscription-hero h2 {
  color: #fff;
  margin: 14px 0 5px;
}
.subscription-hero p {
  color: #a9a6c0;
  margin: 0;
}
.subscription-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}
.subscription-status-trialing,
.subscription-status-trial {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}
.subscription-status-active {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}
.subscription-status-expired,
.subscription-status-cancelled {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.subscription-status-past_due,
.subscription-status-pending_payment {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
}
.subscription-status-suspended {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
}

.subscription-usage {
  display: flex;
  gap: 12px;
}
.subscription-usage > div {
  min-width: 120px;
  padding: 18px;
  text-align: center;
  border: 1px solid #3a2e52;
  border-radius: 16px;
  background: rgba(9, 5, 26, 0.45);
}
.subscription-usage span,
.subscription-usage strong {
  display: block;
}
.subscription-usage span {
  color: #8d86a3;
  font-size: 12px;
}
.subscription-usage strong {
  color: #fff;
  font-size: 25px;
  margin-top: 5px;
}

.subscription-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 20px 0;
  padding-bottom: 5px;
}

.subscription-tabs button {
  flex-shrink: 0;
  border: 1px solid #30254b;
  border-radius: 999px;
  background: #171126;
  color: #a9a6c0;
  padding: 9px 18px;
}

.subscription-tabs button.active {
  background: #ffc107;
  color: #171126;
  border-color: #ffc107;
  font-weight: 800;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #120b2b;
  color: #a9a6c0;
}
.feature-row strong {
  color: #fff;
}

.responsive-data-list {
  display: grid;
}
.data-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #30254b;
  color: #ddd;
}
.data-head {
  color: #8d86a3;
  font-size: 12px;
}
.subscription-history-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}
.subscription-history-item strong,
.subscription-history-item small {
  display: block;
}
.subscription-history-item strong {
  color: #fff;
}
.subscription-history-item small {
  color: #8d86a3;
  margin-top: 3px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
}
.pricing-card h2 {
  color: #fff;
  font-size: 24px;
}
.pricing-card > p {
  color: #8d86a3;
  min-height: 54px;
}
.pricing-current {
  border-color: #ffc107;
}
.pricing-current-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  color: #171126;
  background: #ffc107;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.pricing-amount {
  margin: 16px 0 22px;
}
.pricing-amount strong {
  display: block;
  color: #ffc107;
  font-size: 30px;
}
.pricing-amount span {
  color: #8d86a3;
}
.pricing-features {
  display: grid;
  gap: 10px;
  flex: 1;
  margin-bottom: 24px;
}
.pricing-features > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: #a9a6c0;
}
.pricing-features strong {
  color: #fff;
  font-size: 12px;
}

.shipping-report {
  max-width: 1400px;
  margin: auto;
  padding: 24px;
  color: #1d2433;
}

/* =========================
   TOOLBAR
========================= */

.shipping-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.shipping-toolbar h4 {
  margin: 0;
  color: #fff;
}

.shipping-toolbar small {
  color: #98a2b3;
}

.shipping-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shipping-toolbar-actions .form-select {
  width: auto;
}

/* =========================
   LOADING / EMPTY
========================= */

.shipping-loading,
.shipping-empty {
  text-align: center;
  padding: 60px;
  color: #98a2b3;
}

/* =========================
   ORDERS
========================= */

.shipping-orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =========================
   SINGLE ORDER ROW
========================= */

.shipping-order {
  background: #fff;

  border: 1px solid #dfe3e8;

  border-radius: 8px;

  min-height: 92px;

  display: grid;

  grid-template-columns:
    110px
    1.05fr
    1.05fr
    2fr
    120px
    120px
    48px;

  align-items: stretch;

  overflow: hidden;

  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.shipping-order:hover {
  border-color: #b8bec7;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

/* =========================
   COLUMNS
========================= */

.shipping-order > div {
  padding: 10px 12px;

  border-left: 1px solid #e8eaed;

  display: flex;

  flex-direction: column;

  justify-content: center;

  min-width: 0;
}

/* آخرین ستون */

.shipping-order > div:last-child {
  border-left: none;
}

/* =========================
   ORDER NUMBER
========================= */

.order-number {
  align-items: center;

  text-align: center;

  background: #f8f9fa;
}

.order-number small {
  font-size: 11px;

  color: #8a919b;

  margin-bottom: 4px;
}

.order-number strong {
  font-size: 14px;

  color: #1d2433;
}

/* =========================
   COLUMN TITLE
========================= */

.column-title {
  font-size: 11px;

  color: #8a919b;

  margin-bottom: 4px;

  display: flex;

  flex-direction: row !important;

  align-items: center;

  gap: 5px;
}

.column-title i {
  font-size: 12px;
}

/* =========================
   CONTENT
========================= */

.shipping-order strong {
  font-size: 13px;

  color: #1d2433;
}

.shipping-order div {
  font-size: 12px;

  line-height: 1.7;
}

.ltr-text {
  direction: ltr;

  text-align: right;
}

.order-address > div:not(.column-title) {
  line-height: 1.6;
}

.postal-code {
  margin-top: 3px;

  color: #667085;
}

/* =========================
   ORDER INFO
========================= */

.order-info {
  align-items: center;

  text-align: center;
}

.order-channel {
  align-items: center;

  text-align: center;
}

.order-channel strong {
  font-size: 12px;
}

/* =========================
   ACTION
========================= */

.order-action {
  align-items: center;

  justify-content: center !important;
}

.order-action .btn {
  width: 34px;

  height: 34px;

  padding: 0;

  display: flex;

  align-items: center;

  justify-content: center;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1100px) {
  .shipping-order {
    grid-template-columns:
      90px
      1fr
      1fr
      1.5fr
      90px
      90px
      45px;
  }
}

@media (max-width: 767px) {
  .shipping-report {
    padding: 12px;
  }

  .shipping-toolbar {
    align-items: stretch;

    flex-direction: column;
  }

  .shipping-toolbar-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;
  }

  .shipping-toolbar-actions .form-select {
    width: 100%;
  }

  /*
       در موبایل ردیف تبدیل به کارت
       می‌شود تا خوانایی حفظ شود
    */

  .shipping-order {
    display: grid;

    grid-template-columns: 1fr 1fr;

    min-height: auto;
  }

  .shipping-order > div {
    border-left: 1px solid #e8eaed;

    border-bottom: 1px solid #e8eaed;
  }

  .order-number {
    grid-column: 1 / -1;

    flex-direction: row !important;

    justify-content: space-between !important;

    align-items: center !important;

    text-align: right;

    gap: 10px;
  }

  .order-address {
    grid-column: 1 / -1;
  }

  .order-action {
    grid-column: 1 / -1;

    flex-direction: row !important;

    justify-content: flex-start !important;
  }
}

/* =========================
   PRINT
========================= */

@media print {
  @page {
    size: A4 landscape;

    margin: 8mm;
  }

  body {
    background: #fff !important;
  }

  .seller-shell,
  .mobile-bottom-nav,
  .app-toast,
  .shipping-toolbar {
    display: none !important;
  }

  .shipping-report {
    display: block !important;

    max-width: none !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #111 !important;
  }

  .shipping-orders {
    display: flex !important;

    flex-direction: column !important;

    gap: 2mm !important;
  }

  .shipping-order {
    display: grid !important;

    grid-template-columns:
      25mm
      35mm
      35mm
      1fr
      28mm
      28mm
      10mm !important;

    min-height: 28mm !important;

    max-height: 35mm !important;

    border: 1px solid #111 !important;

    border-radius: 2mm !important;

    page-break-inside: avoid !important;

    break-inside: avoid !important;

    box-shadow: none !important;
  }

  .shipping-order > div {
    padding: 2mm !important;

    border-left: 1px solid #aaa !important;
  }

  .shipping-order:hover {
    box-shadow: none !important;
  }

  .shipping-order strong {
    font-size: 10pt !important;
  }

  .shipping-order div {
    font-size: 8pt !important;

    line-height: 1.4 !important;
  }

  .column-title {
    font-size: 7pt !important;

    margin-bottom: 1mm !important;
  }

  .order-number strong {
    font-size: 9pt !important;
  }

  .order-action {
    display: none !important;
  }

  /*
       هر 8 سفارش یک صفحه جدید
       قابل تغییر است
    */

  .shipping-order:nth-child(8n) {
    page-break-after: always;
  }
}
@media (max-width: 991px) {
  .seller-main {
    padding: 22px 16px 112px;
  }

  .dashboard-content {
    padding: 22px 16px 112px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-span-2 {
    grid-column: auto;
  }
  .channel-editor {
    grid-template-columns: 1fr 1fr;
  }
  .channel-editor input[dir="ltr"] {
    grid-column: 1 / -1;
  }
  .subscription-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .subscription-usage {
    width: 100%;
  }
  .subscription-usage > div {
    flex: 1;
  }
}

@media (max-width: 575px) {
  .seller-page-head {
    align-items: stretch;
  }
  .seller-page-head > .btn {
    width: 100%;
  }
  .seller-form-card {
    padding: 18px;
  }
  .section-title {
    align-items: flex-start;
  }
  .section-title-actions {
    display: block;
  }
  .section-title-actions > .btn {
    width: 100%;
    margin-top: 14px;
  }
  .channel-editor {
    grid-template-columns: 1fr;
  }
  .channel-editor input[dir="ltr"] {
    grid-column: auto;
  }
  .customer-grid {
    grid-template-columns: 1fr;
  }
  .customer-card {
    align-items: flex-start;
  }
  .phone-link-card {
    align-items: stretch;
    flex-direction: column;
  }
  .phone-link-card > .btn {
    width: 100%;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .subscription-usage {
    flex-direction: column;
  }
  .data-head {
    display: none;
  }
  .data-row {
    grid-template-columns: 1fr;
    padding: 15px 0;
  }
  .data-row span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .data-row span::before {
    content: attr(data-label);
    color: #8d86a3;
  }
}
.report-filter-bar {
  background: #171126;
  border: 1px solid #30254b;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}
.report-presets,
.report-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.report-presets button,
.report-tabs button {
  border: 1px solid #40345d;
  border-radius: 7px;
  background: #120b2b;
  padding: 8px 13px;
  white-space: nowrap;
  color: #aaa6bd;
}
.report-presets button.active {
  background: #ffc107;
  color: #211800;
  border-color: #ffc107;
}
.report-custom-range {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}
.report-custom-range label {
  font-size: 12px;
  color: #aaa6bd;
}
.report-tabs {
  margin-bottom: 18px;
  border-bottom: 1px solid #30254b;
}
.report-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
}
.report-tabs button.active {
  color: #ffc107;
  background: transparent;
  border-bottom-color: #ffc107;
}
.report-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.report-kpis.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-kpi,
.report-panel {
  background: #171126;
  border: 1px solid #30254b;
  border-radius: 8px;
  padding: 16px;
  color: #e8e5ef;
}
.report-kpi span {
  display: block;
  color: #9994ac;
  font-size: 13px;
  margin-bottom: 8px;
}
.report-kpi strong {
  font-size: 22px;
  color: #fff;
}
.report-kpi small {
  display: block;
  color: #8d86a3;
  margin-top: 4px;
}
.report-panel h2 {
  font-size: 17px;
  color: #fff;
  margin: 0 0 16px;
}
.report-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.report-panel-head .form-select {
  width: 190px;
}
.report-bar-row {
  margin-bottom: 13px;
}
.report-bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.report-bar {
  height: 8px;
  background: #30254b;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.report-bar i {
  display: block;
  height: 100%;
  background: #ffc107;
}
.report-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.report-table {
  min-width: 760px;
  vertical-align: middle;
  color: #e8e5ef;
}
.report-table th {
  font-size: 12px;
  color: #9994ac;
  white-space: nowrap;
  border-color: #30254b;
}
.report-table td {
  white-space: nowrap;
  color: #e8e5ef;
  border-color: #30254b;
}
.report-table td small {
  display: block;
  color: #8d86a3;
}
.report-note {
  background: #211b31;
  border-right: 3px solid #ffc107;
  padding: 10px 12px;
  margin: 12px 0 0;
  font-size: 12px;
  color: #b9b4c8;
}
.report-empty {
  text-align: center;
  color: #8d86a3;
  padding: 25px;
}
@media (max-width: 767px) {
  .report-kpis,
  .report-kpis.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-kpi {
    padding: 12px;
  }
  .report-kpi strong {
    font-size: 18px;
  }
  .report-custom-range {
    align-items: stretch;
    flex-direction: column;
  }
  .report-custom-range .btn {
    width: 100%;
  }
  .report-panel {
    padding: 12px;
  }
  .report-panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .report-panel-head .form-select {
    width: 100%;
  }
}
.report-range-label {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}
