/* ============================================================
   سوق سيدي عيسى - ملف CSS الرئيسي
   مبني وفق المعايير العالمية لتصميم الويب (W3C / Material Design / Apple HIG / WCAG):
   - الخط الأساسي: 16px (1rem) لمنع تكبير iOS التلقائي وضمان القراءة المريحة
   - النطاق الطباعي (Type Scale): قياسي ومنظم بنسب متناسقة
   - شبكة الهوامش والمسافات (Spacing System): قاعدة 8pt القياسية عالمياً (4px, 8px, 16px, 24px, 32px)
   - إمكانية الوصول: أزرار وأهداف لمس 44x44px كحد أدنى للموبايل
   ============================================================ */

:root {
  /* نظام الألوان المتناسق */
  --primary: #123D32;
  --primary-dark: #0a261f;
  --primary-light: #1b5345;
  --secondary: #E8B86D;
  --secondary-hover: #dca759;
  --bg: #F4F6F4;
  --card-bg: #FFFFFF;
  --text-main: #18231F;
  --text-secondary: #57635e;
  --text-muted: #7d8b84;
  --border-color: #E0E6E2;
  --border-focus: #123D32;

  /* نصف قطر الحواف (Radii) */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 50px;

  /* الظلال المريحة (Elevation) */
  --shadow-xs: 0 1px 2px rgba(18, 61, 50, 0.05);
  --shadow-sm: 0 2px 6px rgba(18, 61, 50, 0.07);
  --shadow-md: 0 6px 18px rgba(18, 61, 50, 0.09);
  --shadow-lg: 0 12px 28px rgba(18, 61, 50, 0.12);

  /* نظام المسافات القياسي (8pt Spacing Grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
}

/* ============================================================
   إعدادات الصفحة والخط العام (Global Typography)
   المعيار العالمي: 16px للمتصفح (100% / 1rem)
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  font-size: 16px;
  /* المعيار العالمي القياسي للأجهزة المكتبية والمحمولة */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  margin: 0;
  padding: 0;
  /* إزالة أي فراغ عام حول الصفحة ومنع التمرير الأفقي في الهواتف */
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  padding-bottom: 60px;
  /* مساحة شريط التنقل السفلي في الهاتف فقط */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* منع خروج عناصر Bootstrap row ذات الحواف السالبة عن العرض في الشاشات الصغيرة */
.row {
  --bs-gutter-x: 1rem;
  margin-left: 0;
  margin-right: 0;
}

.row>* {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
    /* بدون أي فراغ سفلي نهائياً في سطح المكتب */
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   الحاوية الرئيسية للمحتوى (Site Wrapper Boxed)
   تقليل المسافة العلوية والسفلية بين الأقسام إلى 5px فقط
   ============================================================ */
.site-wrapper {
  max-width: 1360px;
  width: 100%;
  flex-grow: 1;
  margin: 0 auto;
  padding: 5px 8px;
  /* مسافة 5 بيكسل بين الهيدر والمحتوى ومسافات متناسقة */
  overflow-x: clip;
}

@media (min-width: 768px) {
  .site-wrapper {
    padding: 5px 16px;
  }
}

@media (min-width: 1200px) {
  .site-wrapper {
    padding: 5px 20px;
  }
}

/* ============================================================
   ترويسة الموقع بأسلوب واد كنيس (Ouedkniss Header Style)
   كامل عرض الشاشة 100% مع عناصر داخلية Boxed (1360px)
   ملتصق بالأعلى تماماً (0 فراغ) ومسافة 5px عن العنصر تحته
   ============================================================ */
.ok-header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 6px 0;
  margin-top: 0;
  margin-bottom: 0px;
  /* مسافة 5 بيكسل تماماً بين الهيدر والعنصر الذي تحته */
  border-radius: 0;
  /* كامل العرض بدون حواف مستديرة خارجية */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* حاوية عناصر الهيدر الداخلية Boxed */
.ok-header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .ok-header-container {
    padding: 0 20px;
  }
}

.ok-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 1. الجزء الأيمن في RTL: زر القائمة + الأعلام + اللوجو */
.ok-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ok-menu-toggle-btn {
  background: none;
  border: none;
  color: #1f2937;
  font-size: 1.35rem;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ok-menu-toggle-btn:hover {
  background-color: #f3f4f6;
  color: var(--primary);
}

.ok-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* أعلام الجزائر وفلسطين المزدوجة المتلاصقة */
.ok-flags-pair {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  line-height: 0;
}

.ok-flag-item {
  display: block;
  height: 16px;
  width: auto;
}

/* الشعار المزدوج SA بأسلوب QX الأيقوني في واد كنيس */
.ok-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.ok-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr !important;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0px;
  user-select: none;
}

.ok-badge-s {
  color: #f59e0b;
  /* اللون البرتقالي/الذهبي المشرق مثل حرف O في واد كنيس */
  position: relative;
  z-index: 2;
  font-size: 2rem;
}

.ok-badge-a {
  color: #2563eb;
  /* اللون الأزرق السماوي مثل حرف K في واد كنيس */
  margin-left: -5px;
  position: relative;
  z-index: 1;
  font-size: 2rem;
}

.ok-logo-text {
  display: flex;
  flex-direction: column;
}

.ok-text-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* 2. الجزء الأوسط: شريط البحث البيضاوي الرمادي الفاتح مع أيقونة برتقالية */
.ok-header-search {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  display: none;
}

@media (min-width: 768px) {
  .ok-header-search {
    display: block;
  }
}

.ok-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f1f3f5;
  border: 1px solid transparent;
  border-radius: 9999px;
  /* شكل بيضاوي مستدير كلياً */
  padding: 2px 8px 2px 18px;
  transition: all 0.2s ease;
}

.ok-search-form:focus-within {
  background-color: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.ok-search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #1f2937;
  outline: none;
  font-family: inherit;
  direction: rtl;
}

.ok-search-input::placeholder {
  color: #9ca3af;
  font-size: 0.9rem;
}

.ok-search-btn {
  background: none;
  border: none;
  color: #f97316;
  /* أيقونة البحث البرتقالية المميزة تماماً كما في الصورة */
  font-size: 1.15rem;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.ok-search-btn:hover {
  transform: scale(1.1);
}

/* 3. الجزء الأيسر في RTL: الأيقونات التفاعلية */
.ok-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .ok-header-actions {
    gap: 5px;
  }

  .ok-header-actions .ok-action-btn,
  .ok-header-actions .ok-menu-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    color: #1f2937;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.ok-action-btn {
  color: #1f2937;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ok-action-btn:hover {
  background-color: #f3f4f6;
  color: #f59e0b;
}

.ok-action-btn.active {
  color: var(--primary);
}

/* شريط البحث في الموبايل */
.ok-header-mobile-search {
  margin-top: 6px;
  padding-top: 6px;
}

/* ============================================================
   شريط التصنيفات (Categories Bar)
   ============================================================ */
.categories-bar-wrapper {
  margin-bottom: 22px;
  position: relative;
}

.categories-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: #c4d1cb transparent;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  white-space: nowrap;
}

.categories-bar::-webkit-scrollbar {
  height: 5px;
}

.categories-bar::-webkit-scrollbar-track {
  background: transparent;
}

.categories-bar::-webkit-scrollbar-thumb {
  background: #c4d1cb;
  border-radius: 6px;
}

.categories-bar::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.cat-item-pill {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 96px;
  text-align: center;
  transition: all 0.22s ease;
  cursor: pointer;
  scroll-snap-align: start;
  text-decoration: none;
}

.cat-item-pill:hover {
  border-color: var(--secondary);
  background: #fafbf9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cat-item-pill i {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.cat-item-pill:hover i {
  transform: scale(1.1);
  color: var(--secondary);
}

.cat-item-pill span {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  white-space: nowrap;
}

@media (min-width: 992px) {
  .cat-item-pill {
    min-width: 110px;
    padding: 14px 16px;
  }

  .cat-item-pill i {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .cat-item-pill span {
    font-size: 0.88rem;
  }
}

/* ============================================================
   عناوين الأقسام الموحدة (Unified Section Headlines)
   تصميم أنيق وموحد بأسلوب واد كنيس مع شارات ناعمة وأزرار عرض متناسقة
   ============================================================ */
.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 12px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.section-headline h2,
.section-headline h3,
.section-headline h6 {
  font-size: 0.96rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  letter-spacing: -0.2px;
}

.section-headline h2 i,
.section-headline h3 i,
.section-headline h6 i {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: #f8fafc;
}

.section-headline a {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0369a1;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #f0f9ff;
  border: 1px solid #e0f2fe;
  transition: all 0.2s ease;
}

.section-headline a:hover {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff !important;
  transform: translateX(-2px);
}

.section-headline a i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.section-headline a:hover i {
  transform: translateX(-3px);
}

.section-headline .section-headline-meta {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

/* ============================================================
   بطاقات تصفح التصنيفات في صفحة categories.php
   تصميم عصري متناسق مع هوية سوق سيدي عيسى وواد كنيس
   ============================================================ */
.ok-cat-grid-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ok-cat-grid-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
  color: var(--primary);
}

.ok-cat-grid-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #f0f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ok-cat-grid-card:hover .ok-cat-grid-icon {
  background-color: #fef3c7;
  color: #d97706;
}

.ok-cat-grid-info {
  flex-grow: 1;
  min-width: 0;
}

.ok-cat-grid-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  #categoriesGrid {
    --bs-gutter-x: 5px;
    --bs-gutter-y: 5px;
  }

  .category-card-col {
    padding-top: 2.5px !important;
    padding-bottom: 2.5px !important;
    padding-left: 2.5px !important;
    padding-right: 2.5px !important;
  }

  .ok-cat-grid-card {
    padding: 9px 12px;
    gap: 10px;
    width: 100%;
  }

  .ok-cat-grid-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .ok-cat-grid-title {
    font-size: 0.9rem;
  }
}

.ok-cat-badge-has {
  background-color: #e6f4ea;
  color: #137333;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.ok-cat-badge-empty {
  background-color: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.ok-cat-grid-arrow {
  color: #cbd5e1;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ok-cat-grid-card:hover .ok-cat-grid-arrow {
  color: #f59e0b;
  transform: translateX(-3px);
}

/* التوافق القديم */
.cat-browser-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-main);
  height: 100%;
  transition: all 0.2s ease;
}

.cat-browser-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.cat-browser-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: #e6f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
}

.cat-browser-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--text-main);
}

.cat-browser-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 4px;
  line-height: 1.4;
}

/* ============================================================
   بطاقات الإعلانات (Listing Cards)
   ============================================================ */
.desktop-app-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.desktop-app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c4d3cc;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 62%;
  background-color: #e8eeea;
  overflow: hidden;
  display: block;
}

.card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.desktop-app-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-featured-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  z-index: 3;
  letter-spacing: 0.3px;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.card-fav-btn {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #9ca3af;
  z-index: 4;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.card-fav-btn.active {
  color: #ef4444;
  background: #fff;
}

.card-fav-btn:hover {
  color: #ef4444;
  background: #fff;
  transform: scale(1.12);
}

.ok-card-style {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ok-card-style:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.ok-card-style .card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66%;
  background-color: #f3f4f6;
  overflow: hidden;
  border-bottom: 1px solid #f3f4f6;
}

.ok-card-style .card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ok-card-style .card-content {
  padding: 6px 8px 6px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: right;
  direction: rtl;
}

/* 1. عنوان الإعلان: حجم خط أصغر ولون كحلي/رمادي داكن نقي كما في الصورة تماماً */
.ok-card-style .ok-card-title {
  font-size: 0.9rem;
  /* تكبير حجم خط العنوان قليلاً ليكون أوضح وأكثر بروزاً */
  font-weight: 600;
  color: #1e293b;
  /* لون داكن ناعم مثل الصورة Permis International USA */
  line-height: 1.35;
  margin-bottom: 4px;
  height: 2.1em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: right;
  direction: rtl;
}

/* 2. السعر البرتقالي البارز بالخط العريض كما في الصورة (12 000 DA) */
.ok-card-price {
  color: #c2410c !important;
  /* برتقالي محروق / طوبي دافئ مطابق للصورة 12 000 DA */
  font-weight: 800;
  font-size: 0.88rem;
  /* حجم مناسب ومتناسق مع الخط الصغير */
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 3px;
  text-align: right;
  direction: rtl;
  justify-content: flex-start;
}

.ok-card-price .price-val {
  font-weight: 800;
  color: #c2410c;
  font-size: 0.92rem;
}

.ok-card-price .price-curr {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
}

/* تصغير عبارة السعر عند التواصل داخل البطاقة */
.ok-card-price .price-contact-text,
.ok-price-contact {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #d97706 !important;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

/* 3. الشريط السفلي: من اليمين إلى اليسار (الاتصال في اليمين وأيقونة الرسالة في اليسار) */
.ok-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
  border-top: 1px solid #f1f5f9;
  direction: rtl;
}

/* زر الاتصال: أيقونة الهاتف الداكنة المائلة ثم كلمة اتصال/Appeler */
.ok-card-call-btn {
  color: #1e293b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  /* حجم خط صغير ومريح */
  font-weight: 600;
  transition: color 0.15s ease;
  z-index: 2;
  position: relative;
}

.ok-card-call-btn:hover {
  color: #c2410c;
}

.ok-card-call-btn i {
  font-size: 0.72rem;
  color: #0f172a;
  /* لون داكن لأيقونة الهاتف تماماً كما في الصورة */
}

/* أيقونة المحادثة / الرسائل المربعة في أقصى اليسار */
.ok-card-chat-btn {
  color: #1e293b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 1px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
  z-index: 2;
  position: relative;
}

.ok-card-chat-btn:hover {
  color: #c2410c;
  transform: scale(1.1);
}

.ok-card-chat-btn i {
  color: #0f172a;
  /* أيقونة المحادثة بلون داكن ومحدد مثل الصورة */
}

/* بطاقة البائع والتواصل السريع */
.seller-contact-card {
  background: #f8faf9 !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.seller-contact-card .btn {
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
}

.card-footer-info {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f0f4f1;
}

/* ============================================================
   الصندوق الفارغ (Empty State)
   ============================================================ */
.empty-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
}

.empty-box i {
  font-size: 2.2rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ============================================================
   شريط التنقل السفلي للهاتف (Mobile Bottom Nav)
   المعيار العالمي: ارتفاع 56px - 64px مع هدف لمس 48px
   ============================================================ */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  z-index: 1050;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.07);
}

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

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 6px;
  min-width: 48px;
  min-height: 48px;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--primary);
}

.mobile-nav-post-circle {
  background: var(--secondary);
  color: var(--primary) !important;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 10px rgba(232, 184, 109, 0.5);
  transition: transform 0.2s ease;
}

.mobile-nav-post-circle:hover {
  transform: scale(1.05);
}

.mobile-nav-post-circle i {
  font-size: 1.35rem;
  margin-bottom: 0;
}

/* ============================================================
   القائمة الجانبية (Offcanvas)
   ============================================================ */
.app-offcanvas {
  background-color: var(--card-bg);
  width: 300px !important;
}

.app-offcanvas-header {
  background-color: var(--primary);
  color: #fff;
  padding: 16px 20px;
}

.app-offcanvas .nav-link {
  font-size: 0.95rem;
  padding: 10px 14px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-offcanvas .nav-link:hover {
  background-color: #f0f4f1;
  color: var(--primary);
}

/* ============================================================
   بطاقات النماذج والصفحات الداخلية
   ============================================================ */
.app-form-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .app-form-card {
    padding: 24px 28px;
    margin-bottom: 24px;
  }
}

/* ============================================================
   عناصر النماذج (Form Controls)
   المعيار العالمي: ارتفاع 42px - 48px وحجم خط 1rem (16px) لمنع الـ Zoom التلقائي
   ============================================================ */
.form-label {
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 1rem;
  /* 16px قياسي */
  padding: 9px 14px;
  font-family: inherit;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
  /* هدف لمس عالمي مريح */
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 61, 50, 0.15);
  outline: none;
}

.form-control-sm,
.form-select-sm {
  font-size: 0.88rem;
  padding: 6px 10px;
  min-height: 36px;
}

/* ============================================================
   الأزرار (Buttons)
   توحيد كامل لارتفاعات الأزرار وتوسيط الأيقونات والنصوص رأسياً وأفقياً
   ============================================================ */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1.2 !important;
  gap: 6px;
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* الأزرار العادية (Standard Buttons): ارتفاع 40px */
.btn:not(.btn-sm):not(.btn-lg) {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.92rem;
}

/* الأزرار المصغرة (Small Buttons .btn-sm): ارتفاع 34px موحد */
.btn-sm {
  min-height: 34px !important;
  height: 34px;
  padding: 6px 14px !important;
  font-size: 0.84rem !important;
  line-height: 1 !important;
}

/* الأزرار الكبيرة (.btn-lg): ارتفاع 46px */
.btn-lg {
  min-height: 46px;
  padding: 10px 22px;
  font-size: 1rem;
}

.btn-primary-app {
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 1px solid var(--primary);
}

.btn-primary-app:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-gold {
  background-color: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 800;
  border: 1px solid var(--secondary);
}

.btn-gold:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   تنبيهات الموقع (App Alerts)
   تصميم أنيق متطابق مع هوية الموقع ولا يخرج عن حدود الصفحة
   ============================================================ */
.app-alert {
  border: 1px solid transparent;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}

.app-alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.app-alert-danger .btn-close {
  opacity: 0.6;
}

.app-alert-danger .btn-close:hover {
  opacity: 1;
}

.app-alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.app-alert-success .btn-close {
  opacity: 0.6;
}

.app-alert-success .btn-close:hover {
  opacity: 1;
}

/* ============================================================
   الفوتر (Footer)
/* ============================================================
   فوتر الموقع بأسلوب واد كنيس (Ouedkniss Dark Footer)
   كامل عرض الشاشة 100% ومحتواه الداخلي Boxed
   بدون أي فراغ سفلي نهائياً تحت الفوتر وملاصق لقاع الصفحة
   ============================================================ */
/* ============================================================
   الفوتر العصري المدمج (Compact Professional Footer)
   ============================================================ */
.ok-footer {
  width: 100%;
  background: linear-gradient(180deg, #16181d 0%, #111215 100%);
  color: #94a3b8;
  margin-top: auto;
  margin-bottom: 0 !important;
  font-size: 0.84rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ok-footer-boxed {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .ok-footer-boxed {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.ok-footer-main {
  padding: 24px 0 20px;
}

.ok-footer-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 768px) {
  .ok-footer-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }
}

/* معلومات الشعار والنبذة */
.ok-footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.ok-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
}

.ok-footer-badge {
  display: inline-flex;
  align-items: center;
  direction: ltr !important;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -1px;
}

.ok-footer-brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}

.ok-footer-tagline {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}

/* أيقونات التواصل الاجتماعي المدمجة */
.ok-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.ok-footer-social a {
  color: #cbd5e1;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ok-footer-social a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* روابط الفوتر السريعة */
.ok-footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .ok-footer-nav {
    gap: 48px;
  }
}

.ok-footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.ok-footer-heading {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ok-footer-heading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.ok-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ok-footer-links li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.ok-footer-links li a i {
  font-size: 0.65rem;
  color: #64748b;
  transition: transform 0.18s ease, color 0.18s ease;
}

.ok-footer-links li a:hover {
  color: #ffffff;
}

.ok-footer-links li a:hover i {
  color: var(--primary);
  transform: translateX(-3px);
}

/* شريط الحقوق السفلي */
.ok-footer-bottom {
  background-color: #0c0d0f;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ok-footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.77rem;
  color: #64748b;
  text-align: center;
}

@media (min-width: 768px) {
  .ok-footer-bottom-inner {
    flex-direction: row;
    text-align: right;
  }
}

.ok-footer-sub-note {
  color: #475569;
  font-size: 0.74rem;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  gap: 4px;
}

.page-link {
  font-size: 0.92rem;
  padding: 7px 14px;
  color: var(--primary);
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-color);
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ============================================================
   تنبيهات Flash
   ============================================================ */
.alert {
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: none;
  box-shadow: var(--shadow-xs);
}

/* ============================================================
   صفحة تفاصيل الإعلان بأسلوب واد كنيس (Ouedkniss Listing Specs Style)
   مواصفات الإعلان كجدول أبيض بخطوط فاصلة رقيقة وأقراص خيارات بيضاوية رمادية
   ============================================================ */
.ok-ad-specs-wrapper {
  margin-top: 18px;
}

.ok-specs-header {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ok-specs-header i {
  color: #ea580c;
  /* الأيقونة البرتقالية للمستند كالموجودة في الصورة */
  font-size: 1.05rem;
}

.ok-specs-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ok-spec-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

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

.ok-spec-label {
  width: 32%;
  min-width: 140px;
  color: #1e293b;
  font-weight: 600;
  flex-shrink: 0;
}

.ok-spec-value {
  color: #334155;
  font-weight: 500;
  flex-grow: 1;
}

/* سطر الخيارات المميزة (Options de voiture) */
.ok-spec-row-options {
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.ok-options-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-grow: 1;
}

/* شارات الخيارات الدائرية/البيضاوية الرمادية الفاتحة تماماً كما في الصورة */
.ok-opt-badge {
  background-color: #f1f3f5;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  display: inline-block;
  white-space: nowrap;
}

/* بطاقة الوصف المنفصلة تحت جدول المواصفات */
.ok-desc-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ok-desc-header {
  font-size: 0.86rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.ok-desc-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
  white-space: pre-line;
}

/* زر إبلاغ عن محتوى غير لائق بنفس نمط زر نسخ الرابط وبألوان تحذيرية هادئة */
.ok-report-btn {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.ok-report-btn:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.ok-report-btn i {
  color: #dc2626;
  font-size: 0.85rem;
}

/* ============================================================
   شريط التنقل العلوي الأنيق (تراجع والتصنيف) بدون مربعات أو إطارات
   ============================================================ */
.ok-top-nav-bar {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 16px !important;
  background-color: #ffffff;
}

/* بطاقة موحدة لكافة صفحات المستخدم */
.ok-card-unified {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 18px;
}

.ok-card-unified .ok-top-nav-bar {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

/* زر التراجع المندمج بسلاسة */
.ok-nav-back-link {
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.ok-nav-back-link i {
  font-size: 0.9rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.ok-nav-back-link:hover {
  color: var(--primary);
  background-color: #f1f5f9;
}

.ok-nav-back-link:hover i {
  transform: translateX(3px);
  color: var(--primary);
}

/* رابط التصنيف أو القسم الأنيق بدون إطار مربع */
.ok-nav-cat-link {
  color: #0284c7;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.ok-nav-cat-link i {
  font-size: 0.95rem;
  color: #0284c7;
}

.ok-nav-cat-link:hover {
  color: #0369a1;
  background-color: #f0f9ff;
}

/* ============================================================
   لوحة الإدارة (Admin Panel)
   ============================================================ */
.admin-sidebar {
  background-color: #0f2d25;
  min-height: calc(100vh - 64px);
  padding-top: 12px;
}

.admin-sidebar .nav-link {
  color: #c0d8ce;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #E8B86D;
}

.admin-sidebar .nav-link i {
  width: 20px;
  font-size: 1rem;
  text-align: center;
}

/* بطاقات إحصائيات الإدارة */
.stat-box {
  background: #fff;
  border: 1px solid #e0e6e2;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-xs);
}

.stat-val {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--primary);
}

.stat-lbl {
  font-size: 0.85rem;
  color: #57635e;
  font-weight: 700;
}

/* جداول الإدارة */
.table {
  font-size: 0.9rem;
}

.table th {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 10px 12px;
  background-color: #f7f9f7;
}

.table td {
  padding: 10px 12px;
  vertical-align: middle;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.text-primary-app {
  color: var(--primary) !important;
}

.bg-primary-app {
  background-color: var(--primary) !important;
}

.border-primary-app {
  border-color: var(--primary) !important;
}

.rounded-app {
  border-radius: var(--radius-md) !important;
}

.shadow-app {
  box-shadow: var(--shadow-sm) !important;
}

/* ============================================================
   الهواتف الذكية (Mobile Responsive)
   الالتزام بأحجام WCAG دون تصغير مفرط
   ============================================================ */
@media (max-width: 575px) {
  html {
    font-size: 15px;
    /* راحة تامة في القراءة على شاشات الهاتف */
  }

  .header-brand {
    gap: 8px;
  }

  .brand-badge-sa {
    font-size: 1.35rem;
    padding: 11px 12px;
    letter-spacing: -1.5px;
  }

  .ok-text-main {
    font-size: 1.05rem;
    font-weight: 800;
  }

  .ok-badge-s,
  .ok-badge-a {
    font-size: 1.7rem;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .brand-tagline {
    display: block;
    font-size: 0.7rem;
  }

  .section-headline h2,
  .section-headline h3 {
    font-size: 1rem;
  }

  .cat-item-pill {
    min-width: 84px;
    width: auto;
    padding: 10px 8px;
  }

  .cat-item-pill i {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .cat-item-pill span {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .card-content {
    padding: 5px 10px;
  }

  .card-price {
    font-size: 0.98rem;
  }

  .card-title {
    font-size: 0.86rem;
  }
}

/* ============================================================
   بانر تثبيت PWA الهادئ (Gentle PWA Install Banner)
   ============================================================ */
.pwa-install-banner {
  position: fixed;
  bottom: 70px;
  right: 16px;
  left: 16px;
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  z-index: 1040;
  animation: slideUpFade 0.3s ease-out;
}

@media (min-width: 992px) {
  .pwa-install-banner {
    bottom: 24px;
    right: 24px;
    left: auto;
    margin: 0;
  }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
}

.pwa-banner-text {
  flex-grow: 1;
}

.pwa-banner-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.pwa-banner-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   معرض صور الإعلان الأنيق (بدون حواف سوداء + صورتين جنب بعض على الشاشات الكبيرة)
   ============================================================ */
.ok-ad-gallery-container {
  position: relative;
  width: 100%;
}

.ok-ad-carousel {
  position: relative;
  background: transparent !important;
  border-radius: 12px;
  overflow: hidden;
}

.ok-ad-carousel .carousel-inner {
  border-radius: 12px;
}

.ok-gallery-slide-wrap {
  width: 100%;
  display: flex;
  gap: 10px;
}

.ok-gallery-img-box {
  position: relative;
  flex: 1 1 50%;
  width: 50%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  max-height: 440px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f1f4f2;
}

/* في الشاشات الصغيرة تكون صورة واحدة 100% */
@media (max-width: 991.98px) {
  .ok-gallery-img-box {
    flex: 1 1 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 250px;
  }
}

.ok-gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ok-gallery-img-box:hover img {
  transform: scale(1.02);
}

/* مؤشرات التنقل النقاط / الشرائط البرتقالية الناعمة */
.ok-carousel-indicators {
  position: static !important;
  margin: 10px 0 6px 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
}

.ok-carousel-indicators [data-bs-target] {
  width: 22px !important;
  height: 6px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background-color: #d1d5db !important;
  opacity: 0.8 !important;
  margin: 0 !important;
  transition: all 0.25s ease !important;
}

.ok-carousel-indicators .active {
  background-color: #e65100 !important;
  width: 32px !important;
  opacity: 1 !important;
}

/* أزرار الأسهم الدائرية الأنيقة */
.ok-carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  z-index: 5;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.ok-carousel-nav-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

.ok-carousel-nav-btn.prev-btn {
  right: 12px;
}

.ok-carousel-nav-btn.next-btn {
  left: 12px;
}

/* ============================================================
   معالج نشر الإعلانات المبسط والذكي (Simplified Smart Post Ad)
   ============================================================ */
.wizard-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 4px 0 16px 0;
  padding: 0 10px;
}

.wizard-progress-bar::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  background: transparent;
}

.wizard-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wizard-step-node.active .wizard-step-circle {
  border-color: #e65100;
  background: #e65100;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.15);
}

.wizard-step-node.completed .wizard-step-circle {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

.wizard-step-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.wizard-step-node.active .wizard-step-title {
  color: #e65100;
  font-weight: 700;
}

.wizard-step-node.completed .wizard-step-title {
  color: #10b981;
}

/* بطاقات التصنيفات المدمجة والمريحة للعين */
.category-card-radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  user-select: none;
  min-height: 64px;
}

.category-card-radio i {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 4px;
  transition: all 0.18s ease;
}

.category-card-radio .cat-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.15;
}

.category-card-radio:hover {
  border-color: #fdba74;
  background: #fffaf5;
}

.category-card-radio.selected {
  border-color: #e65100;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(230, 81, 0, 0.2);
}

.category-card-radio.selected i {
  color: #e65100;
}

.category-card-radio.selected .cat-name {
  color: #9a3412;
  font-weight: 700;
}

/* منطقة رفع الصور المبسطة */
.wizard-upload-dropzone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-upload-dropzone:hover {
  border-color: #e65100;
  background: #fff7ed;
}

.wizard-upload-dropzone i {
  font-size: 1.5rem;
  color: #e65100;
  margin-bottom: 4px;
}