/* ==========================================================================
   BinaQuote — Theme (التصميم الجديد)
   ==========================================================================
   يُحمَّل بعد app.css/support.css/landing.css ويعيد تلوين النظام كله:
   الألوان والأنصاف والظلال تأتي من المتغيّرات أدناه، وهيكل اللوحة
   (ترويسة علوية + قائمة منزلقة بدل العمود الجانبي) من قسم "Shell".
   لا منطق هنا — مظهر فقط. النسخة السابقة محفوظة في backup/design-before-*.
   ========================================================================== */

:root {
  --color-bg: #eef7f6;
  --color-surface: #ffffff;
  --color-surface-2: #f8fbfb;
  --color-border: #dbeae9;
  --color-text: #203b40;
  --color-text-muted: #71898b;
  --color-primary: #0d7b7b;
  --color-primary-hover: #096a6a;
  --color-primary-soft: #edf8f7;
  --color-success: #168357;
  --color-error: #c15e4d;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-xl: 26px;

  --shadow-sm: 0 10px 30px rgba(33, 83, 85, 0.06);
  --shadow-md: 0 14px 40px rgba(33, 83, 85, 0.08);
  --shadow-lg: 0 30px 80px rgba(26, 86, 90, 0.12);
  --shadow-btn: 0 12px 24px rgba(13, 123, 123, 0.2);

  /* ألوان مساعدة مشتركة */
  --tone-line: #e1eceb;
  --tone-line-soft: #edf2f2;
  --tone-ink-2: #304f53;
  --tone-ink-3: #496267;
  --tone-faint: #819799;
  --tone-ring: #d3ece9;
  --tone-focus: #70b8b2;
  --tone-warn-bg: #fff7e8;
  --tone-warn-fg: #b97918;
  --tone-ok-bg: #e8f8f2;
  --tone-ok-fg: #168357;
  --tone-closed-bg: #fff3e9;
  --tone-closed-fg: #c16d2c;
  --tone-award-bg: #f0edff;
  --tone-award-fg: #7769be;
  --tone-danger-bg: #fff6f3;
  --tone-danger-line: #f1d9d4;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
}

.dashboard-body {
  background: var(--color-bg);
  color: var(--color-text);
}

body.drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   Shell — الترويسة العلوية
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #dcebea;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.app-header__inner {
  max-width: 1152px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}

.app-header__start,
.app-header__end {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-header__start { gap: 14px; }
.app-header__end { gap: 8px; flex-shrink: 0; }

.app-header__menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: #edf8f7;
  color: #0d7b7b;
  cursor: pointer;
}

.app-header__menu:hover { background: #dff2ef; color: #096a6a; }

.app-header__brand { display: block; flex-shrink: 0; line-height: 0; }
.app-header__brand img { height: 34px; width: auto; object-fit: contain; }

.app-header__divider {
  display: none;
  width: 1px;
  height: 36px;
  background: #dcebea;
}

.app-header__title { display: none; min-width: 0; }
.app-header__title p { margin: 0; line-height: 1.5; }
.app-header__title p:first-child {
  font-size: 14px;
  font-weight: 700;
  color: #213f43;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header__title p:last-child { margin-top: 2px; font-size: 11px; color: #81979a; }

.app-header__lang { display: none; }
.app-header__lang .lang-switch {
  border-color: #dcebea;
  padding: 4px;
  font-size: 11px;
}
.app-header__lang .lang-switch__opt {
  min-width: 0;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #72898b;
}
.app-header__lang .lang-switch__opt:hover { background: #edf8f7; color: #0d7b7b; }
.app-header__lang .lang-switch__opt.is-active { background: #0d7b7b; color: #fff; }

.app-header__trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf8f7;
  color: #0d7b7b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.app-header__trust-long { display: none; }

@media (min-width: 640px) {
  .app-header__brand img { height: 44px; }
  .app-header__divider { display: block; }
  .app-header__title { display: block; }
  .app-header__lang { display: block; }
  .app-header__trust-long { display: inline; }
  .app-header__trust-short { display: none; }
}

@media (min-width: 1024px) {
  .app-header__inner { padding-inline: 32px; }
}

/* ==========================================================================
   Shell — القائمة المنزلقة (كانت العمود الجانبي)
   ========================================================================== */
.dashboard-layout {
  display: block;
  min-height: 0;
}

.sidebar-toggle { display: none !important; }

.sidebar-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(23, 61, 64, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

.dashboard-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: auto;
  left: auto;
  inset-inline-start: 0;
  z-index: 60;
  width: min(88vw, 360px);
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  border: 0;
  background: #fff;
  box-shadow: none;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}
[dir="ltr"] .dashboard-sidebar { transform: translateX(-105%); }

.dashboard-sidebar.show,
[dir="ltr"] .dashboard-sidebar.show {
  right: auto;
  left: auto;
  inset-inline-start: 0;
  transform: none;
  visibility: visible;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.dashboard-sidebar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7efee;
}

.dashboard-sidebar__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #203b40;
}

.dashboard-sidebar__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #81979a;
}

.dashboard-sidebar__top .lang-switch { margin-top: 4px; flex-basis: auto; }
.dashboard-sidebar__top .lang-switch__opt { font-size: 11px; font-weight: 700; }

.drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #789092;
  cursor: pointer;
}
.drawer-close:hover { background: #edf8f7; color: #0d7b7b; }

.drawer-cta {
  padding: 16px;
  border-radius: 16px;
  background: #0d7b7b;
  color: #fff;
  box-shadow: 0 14px 28px rgba(13, 123, 123, 0.18);
}
.drawer-cta__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-cta__brand { margin: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: #b8ebe5; }
.drawer-cta__title { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.drawer-cta__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.15); }
.drawer-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #0d7b7b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.drawer-cta__btn:hover { background: #effaf8; }
.drawer-cta__btn:active { transform: scale(0.98); }

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dashboard-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: #496267;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.dashboard-nav__link::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--nav-icon, none) center / contain no-repeat;
  mask: var(--nav-icon, none) center / contain no-repeat;
}
.dashboard-nav__link:hover { background: #f4f9f8; color: #0d7b7b; }
.dashboard-nav__link.is-active { background: #edf8f7; color: #0d7b7b; }
.dashboard-nav__link.is-active::after {
  content: "";
  margin-inline-start: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55b9b0;
}

.dashboard-nav__link--logout {
  margin-top: auto;
  border: 1px solid #f1d9d4;
  border-top: 1px solid #f1d9d4;
  padding: 12px;
  color: #c15e4d;
}
.dashboard-nav__link--logout:hover { background: #fff6f3; color: #c15e4d; }

.app-footer {
  border-top: 1px solid #dcebea;
  background: rgba(255, 255, 255, 0.7);
  padding: 16px;
  text-align: center;
  font-size: 11px;
  color: #8ca1a2;
}

/* ==========================================================================
   Shell — منطقة المحتوى
   ========================================================================== */
.dashboard-main {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  gap: 24px;
}
@media (min-width: 640px) { .dashboard-main { padding-inline: 24px; } }
@media (min-width: 1024px) { .dashboard-main { padding-inline: 32px; } }

.dashboard-topbar { align-items: flex-start; gap: 20px; }

.dashboard-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0d7b7b;
}

.dashboard-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #203b40;
}

.dashboard-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #71898b;
}

.flash-stack { top: 84px; }

/* ==========================================================================
   أيقونات القائمة — تُختار من نمط الرابط (بلا تعديل على قوالب القوائم)
   ========================================================================== */
.dashboard-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.dashboard-nav__link[href*="dashboard"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="create-rfq"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/rfqs"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M12 11h4'/%3E%3Cpath d='M12 16h4'/%3E%3Cpath d='M8 11h.01'/%3E%3Cpath d='M8 16h.01'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/quotes"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="opportunities/new"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="opportunities/responded"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/payments"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cline x1='2' x2='22' y1='10' y2='10'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/wallet"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/account"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/settings"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/team"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/users"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="support/tickets"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="admin/support"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="contact-messages"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/reports"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' x2='12' y1='20' y2='10'/%3E%3Cline x1='18' x2='18' y1='20' y2='4'/%3E%3Cline x1='6' x2='6' y1='20' y2='16'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/pricing"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='black'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/landing"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/banners"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/marketplace"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7'/%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpath d='M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4'/%3E%3Cpath d='M2 7h20'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/legal"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/cities"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="/categories"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E") }
.dashboard-nav__link[href*="auth/logout"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E") }


/* ==========================================================================
   Components — أزرار
   ========================================================================== */
.btn {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--color-primary-hover); }

.btn-auto {
  min-height: 48px;
  min-width: 0;
  padding-inline: 20px;
  border-radius: 16px;
  font-size: 14px;
}

.btn-secondary,
.btn-light,
.btn-outline {
  background: #fff;
  color: #0d7b7b;
  border: 1px solid #cfe3e1;
  box-shadow: none;
}
.btn-secondary:hover,
.btn-light:hover,
.btn-outline:hover {
  background: #eff9f8;
  border-color: #8ecbc4;
  color: #096a6a;
}

.btn-danger {
  background: #fff;
  color: #c15e4d;
  border: 1px solid #f1d9d4;
  box-shadow: none;
}
.btn-danger:hover { background: #fff6f3; color: #a94c3c; }

.btn-sm {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 10px;
  font-size: 12px;
}

.text-link { color: #0d7b7b; font-size: 12px; font-weight: 700; }
.text-link:hover { color: #096a6a; text-decoration: none; }

/* ==========================================================================
   Components — حقول النماذج
   ========================================================================== */
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #5d7779;
}

.form-help { font-size: 11px; color: #8a9e9f; }

.form-input,
select.form-input,
textarea.form-input {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #dbe9e8;
  border-radius: 12px;
  background: #fff;
  color: #29464a;
  font-size: 14px;
}

.form-input::placeholder { color: #9aadae; }

.form-input:focus {
  border-color: var(--tone-focus);
  box-shadow: 0 0 0 3px var(--tone-ring);
}

.form-textarea { min-height: 120px; line-height: 1.8; }

.form-input--readonly { background: #f4f9f8; color: #71898b; }

.form-error { font-size: 11px; color: #c15e4d; }

.checkbox-card,
.check-card {
  border: 1px solid #e3edec;
  border-radius: 16px;
  background: #fff;
}
.checkbox-card:hover,
.check-card:hover { border-color: #b6d8d5; background: #fff; }
.check-card:has(input:checked),
.checkbox-card:has(input:checked) {
  border-color: var(--tone-focus);
  background: #eff9f8;
  box-shadow: 0 8px 20px rgba(13, 123, 123, 0.08);
}

.alert { border-radius: 14px; font-size: 13px; }
.alert-success { background: #e8f8f2; color: #168357; border-color: #bfe8d6; }
.alert-error { background: #fff6f3; color: #c15e4d; border-color: #f1d9d4; }
.alert-info { background: #edf8f7; color: #0d7b7b; border-color: #cfe5e2; }

/* ==========================================================================
   Components — بطاقات
   ========================================================================== */
.dashboard-status-card,
.panel-card,
.empty-state-card,
.detail-card,
.compare-summary-card,
.quote-decision-card,
.form-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.panel-card { padding: 20px; }
@media (min-width: 640px) { .panel-card { padding: 28px; } }

.panel-card__header { margin-bottom: 20px; }
.panel-card__header h2 { font-size: 20px; font-weight: 800; color: #203b40; }

/* بطاقة بترويسة مفصولة بخط ومحتوى مظلّل (قوائم) */
.panel-card--flush { padding: 0; overflow: hidden; }
.panel-card__header--bar {
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid #e8f0ef;
  align-items: center;
}
@media (min-width: 640px) { .panel-card__header--bar { padding-inline: 28px; } }
.panel-card__header--bar .dashboard-kicker { margin-bottom: 4px; }

.dashboard-status-card {
  padding: 20px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .dashboard-status-card { padding: 24px; } }
.dashboard-status-card__main { display: flex; align-items: center; gap: 14px; }
.dashboard-status-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #203b40; }
.dashboard-status-card p { font-size: 12px; color: #819799; }

.empty-state-card { padding: 32px; }
.empty-state-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #edf8f7;
  color: #0d7b7b;
}
.empty-state-card h2 { font-size: 20px; font-weight: 800; }
.empty-state-card p { font-size: 14px; line-height: 1.9; color: #71898b; }

/* بلاطة أيقونة ملوّنة */
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
}
.dashboard-status-card .icon-tile { width: 44px; height: 44px; border-radius: 16px; }
.icon-tile--teal { background: #edf8f7; color: #0d7b7b; }
.icon-tile--green { background: var(--tone-ok-bg); color: var(--tone-ok-fg); }
.icon-tile--orange { background: var(--tone-closed-bg); color: var(--tone-closed-fg); }
.icon-tile--purple { background: var(--tone-award-bg); color: var(--tone-award-fg); }
.icon-tile--amber { background: var(--tone-warn-bg); color: var(--tone-warn-fg); }
.icon-tile--white { background: #fff; color: #0d7b7b; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

.ui-icon { display: block; flex-shrink: 0; }
[dir="rtl"] .ui-icon--dir { transform: scaleX(-1); }

/* بطاقات الإحصاء */
.stats-grid,
.rfq-stats-grid { gap: 12px; }

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(33, 83, 85, 0.05);
}
.stat-card__label { margin: 0; font-size: 11px; font-weight: 600; color: #819799; }
.stat-card__value { display: block; margin-top: 8px; font-size: 24px; font-weight: 800; color: #203b40; line-height: 1; }

/* شبكة: محتوى رئيسي + عمود جانبي (لوحة المشتري) */
.dash-split { display: grid; gap: 20px; align-items: start; }
.dash-split__main, .dash-split__side { min-width: 0; display: grid; gap: 20px; }
@media (min-width: 1024px) { .dash-split { grid-template-columns: minmax(0, 1fr) 310px; } }

.side-card__head { display: flex; align-items: center; gap: 12px; }
.side-card__kicker { margin: 0; font-size: 11px; font-weight: 700; color: #819799; }
.side-card__title { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: #203b40; }
.side-card__figure { margin: 20px 0 0; font-size: 24px; font-weight: 800; color: #203b40; }
.side-card__hint { margin: 4px 0 12px; font-size: 11px; color: #91a3a4; }

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid #cfe5e2;
  border-radius: 24px;
  background: #edf8f7;
}
.tip-card__title { margin: 0; font-size: 14px; font-weight: 800; color: #1c6666; }
.tip-card__text { margin: 4px 0 14px; font-size: 12px; line-height: 1.9; color: #5f8585; }

/* ==========================================================================
   Components — قوائم الطلبات (بطاقات)
   ========================================================================== */
.rfq-list { gap: 12px; }
.rfq-list--tinted { padding: 16px; background: #f8fbfb; }
@media (min-width: 640px) { .rfq-list--tinted { padding: 24px; } }

.rfq-item {
  padding: 16px;
  border: 1px solid var(--tone-line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.rfq-item:hover {
  border-color: #b9dcd8;
  box-shadow: 0 8px 22px rgba(33, 83, 85, 0.06);
}
.rfq-item__main h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--tone-ink-2); }
.rfq-item__main p { margin: 4px 0 0; font-size: 11px; color: #819799; }
.rfq-item__meta { font-size: 11px; color: #91a3a4; align-content: center; }
.rfq-item__meta strong { font-weight: 700; }

/* ==========================================================================
   Components — شارات الحالة
   ========================================================================== */
.status-badge {
  min-height: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}
.status-badge--success,
.status-badge--active,
.status-active { background: var(--tone-ok-bg); color: var(--tone-ok-fg); border: 0; }
.status-badge--pending { background: var(--tone-warn-bg); color: var(--tone-warn-fg); border: 0; }
.status-badge--closed { background: var(--tone-closed-bg); color: var(--tone-closed-fg); border: 0; }
.status-badge--awarded,
.status-awarded { background: var(--tone-award-bg); color: var(--tone-award-fg); border: 0; }
.status-badge--failed { background: var(--tone-danger-bg); color: #c15e4d; border: 0; }


/* ==========================================================================
   Pages — شبكات الإحصاء
   ========================================================================== */
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rfq-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rfq-stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .stats-grid, .rfq-stats-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pages — قائمة الطلبات (طلباتي)
   ========================================================================== */
.panel-card__header--stack { align-items: center; }

.filter-tabs { gap: 8px; }
.filter-tab {
  min-height: 0;
  padding: 8px 14px;
  border: 1px solid #e2ebea;
  border-radius: 999px;
  background: #fff;
  color: #5f7779;
  font-size: 12px;
  font-weight: 700;
}
.filter-tab:hover { background: #fff; border-color: #b9d8d5; color: #0d7b7b; }
.filter-tab.is-active { background: #eaf7f5; border-color: #b9dfda; color: #0d7b7b; }

.rfq-row {
  padding: 16px;
  border: 1px solid var(--tone-line);
  border-radius: 16px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
@media (min-width: 640px) { .rfq-row { padding: 20px; } }
.rfq-row:hover { border-color: #b9dcd8; box-shadow: 0 8px 22px rgba(33, 83, 85, 0.06); }

.rfq-row__top { justify-content: flex-start; gap: 8px; margin-bottom: 8px; }
.rfq-row__title { font-size: 16px; font-weight: 800; color: #203b40; }

.rfq-row__meta { gap: 8px 20px; font-size: 11px; color: #789092; margin-bottom: 8px; }
.rfq-row__meta strong { color: #557174; font-weight: 700; }
.rfq-row__description { font-size: 13px; color: #496267; }

.rfq-row__file {
  min-height: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #edf8f7;
  color: #237774;
  font-size: 10px;
  font-weight: 600;
}
.rfq-row__file--muted { background: #f3f7f7; color: #8ba0a1; }

.rfq-row__actions .btn { min-height: 44px; border-radius: 12px; font-size: 12px; }

.empty-state--panel {
  padding: 56px 20px;
  border: 1px dashed #cfe3e1;
  border-radius: 16px;
  background: #fff;
}
.empty-state--panel h3 { margin: 12px 0 4px; font-size: 14px; font-weight: 800; color: #496267; }
.empty-state--panel p { margin: 0 0 16px; font-size: 12px; color: #8ca2a3; }
.empty-state__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 18px;
  background: #edf8f7;
  color: #0d7b7b;
  font-size: 0;
}

/* ==========================================================================
   Pages — تفاصيل الطلب
   ========================================================================== */
.rfq-details-hero__main {
  padding: 20px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .rfq-details-hero__main { padding: 24px; } }
.rfq-details-hero__title { font-size: 18px; font-weight: 800; color: #203b40; }
.rfq-details-hero__hint { font-size: 12px; color: #819799; }

.detail-chip {
  min-height: 0;
  padding: 6px 12px;
  background: #edf8f7;
  color: #0d7b7b;
  font-size: 11px;
}
.detail-chip--muted { background: #f3f7f7; color: #71898b; }

.rfq-details-grid { gap: 20px; }
.details-grid { gap: 20px; }

.detail-card { padding: 20px; }
@media (min-width: 640px) { .detail-card { padding: 28px; } }
.detail-card h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: #203b40; }

.detail-list { gap: 0; }
.detail-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tone-line-soft);
}
.detail-list__item:first-child { padding-top: 0; }
.detail-list__label { font-size: 12px; font-weight: 600; color: #819799; }
.detail-list__value { font-size: 12px; font-weight: 700; color: var(--tone-ink-2); text-align: end; }
.detail-description { font-size: 14px; color: #5f7779; }

.empty-note {
  padding: 20px;
  border-radius: 16px;
  background: #f8fbfb;
  color: #71898b;
  font-size: 13px;
  text-align: center;
}

.attachment-card {
  padding: 16px;
  border: 1px solid #dfeceb;
  border-radius: 16px;
  background: #f8fbfb;
}
.attachment-card__meta strong { font-size: 12px; font-weight: 800; color: #39575a; }
.attachment-card__meta span { font-size: 10px; color: #91a3a4; }

.detail-actions { gap: 8px; }
.detail-actions__hint { font-size: 11px; color: #819799; }

/* ==========================================================================
   Pages — الجداول
   ========================================================================== */
.table-wrap {
  border: 1px solid #e5eeee;
  border-radius: 16px;
  background: #fff;
}

.data-table thead th,
.compare-table thead th,
.comparison-table thead th {
  background: #f5faf9;
  color: #71898b;
  font-size: 11px;
  font-weight: 800;
}
.data-table tbody td { font-size: 12px; color: #496267; border-top: 1px solid var(--tone-line-soft); }
.data-table tbody tr:hover { background: #fafdfd; }
.data-table tbody th { background: #f8fbfb; color: #5d7779; font-size: 12px; border-bottom: 1px solid var(--tone-line-soft); }
.table-link { color: #0d7b7b; font-weight: 700; }

.status-sent { background: #edf8f7; color: #0d7b7b; }
.status-viewed { background: var(--tone-warn-bg); color: var(--tone-warn-fg); }
.status-quoted { background: var(--tone-ok-bg); color: var(--tone-ok-fg); }
.status-expired,
.status-badge.status-expired { background: var(--tone-closed-bg); color: var(--tone-closed-fg); }


/* ==========================================================================
   Pages — إنشاء الطلب
   ========================================================================== */
.dashboard-topbar--compact { margin-bottom: 0; }

/* مؤشّر الخطوتين: شريطان بعنوانين */
.rfq-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.rfq-steps__item {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #9aadae;
}
.rfq-steps__item::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #e3eeee;
}
.rfq-steps__item.is-active { color: #0d7b7b; }
.rfq-steps__item.is-done { color: #0d7b7b; }
.rfq-steps__item.is-active::before,
.rfq-steps__item.is-done::before { background: #0d7b7b; }
.rfq-steps__num { display: inline; width: auto; height: auto; border: 0; font-size: inherit; }
.rfq-steps__num::after { content: " · "; }
.rfq-steps__item.is-done .rfq-steps__num { font-size: inherit; }
.rfq-steps__item.is-done .rfq-steps__num::before { content: ""; }

/* بطاقة الخطوة ١: لوحة تعريفية + لوحة محادثة */
.panel-card:has(> form > .rfq-intake:not([hidden])) {
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  border-color: #d7e9e7;
  box-shadow: var(--shadow-lg);
}
.panel-card:has(> form > .rfq-intake:not([hidden])) > form { gap: 0; }

.intake-grid { display: grid; }
@media (min-width: 1024px) { .intake-grid { grid-template-columns: 0.82fr 1.18fr; } }

.intake-hero {
  display: none;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  background: #0d7b7b;
  color: #fff;
}
@media (min-width: 1024px) { .intake-hero { display: flex; } }
.intake-hero::before,
.intake-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  pointer-events: none;
}
.intake-hero::before { width: 256px; height: 256px; top: -96px; inset-inline-end: -96px; border-width: 38px; border-color: rgba(255, 255, 255, 0.05); }
.intake-hero::after { width: 288px; height: 288px; bottom: -112px; inset-inline-start: -80px; border-width: 48px; border-color: rgba(103, 196, 189, 0.1); }
.intake-hero__body, .intake-hero__list { position: relative; z-index: 1; }
.intake-hero__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.intake-hero__kicker { margin: 0 0 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #b8ebe5; }
.intake-hero__title { margin: 0; max-width: 24rem; font-size: 34px; font-weight: 600; line-height: 1.3; color: #fff; }
.intake-hero__title span { color: #a5e5df; }
.intake-hero__text { margin: 24px 0 0; max-width: 24rem; font-size: 14px; line-height: 2; color: rgba(255, 255, 255, 0.75); }
.intake-hero__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.intake-hero__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.intake-hero__list li:first-child { padding-top: 0; border-top: 0; }
.intake-hero__list span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 700;
  color: #b8ebe5;
}

.intake-pane { display: flex; flex-direction: column; min-width: 0; background: #fbfdfd; }
.intake-pane > * { margin: 0; }
.intake-pane__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #e5efee;
}
@media (min-width: 640px) { .intake-pane__head { padding: 20px 32px; } }
.intake-pane__head .icon-tile { width: 44px; height: 44px; border-radius: 16px; background: #e6f5f4; }
.intake-pane .step-title { margin: 0; font-size: 14px; font-weight: 700; color: #203b40; }
.intake-pane__sub { margin: 4px 0 0; font-size: 12px; color: #81979a; }
.intake-pane__foot { padding: 0 20px 4px; text-align: center; font-size: 10px; color: #a0b2b3; }
.intake-pane .rfq-intake__skip { align-self: center; margin: 4px 0 20px; font-size: 12px; color: #688486; }

.chat {
  flex: 1;
  min-height: 220px;
  max-height: 26rem;
  gap: 16px;
  padding: 24px 20px;
  border-radius: 0;
  background: #f7fbfb;
}
@media (min-width: 640px) { .chat { padding-inline: 32px; } }

.chat__msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.9;
  box-shadow: 0 5px 18px rgba(39, 92, 94, 0.07), 0 0 0 1px #e3efee;
}
.chat__msg--bot {
  background: #fff;
  color: #496267;
  border-start-start-radius: 4px;
}
.chat__msg--user {
  background: #d7f3ec;
  color: #1f4a4c;
  border-start-end-radius: 4px;
}
.chat__hint { margin-top: 8px; font-size: 12px; color: #4d7779; }

/* صندوق الإدخال: حقل + أزرار داخل إطار واحد */
.chat__composer {
  margin: 0 20px 12px;
  padding: 8px;
  gap: 4px;
  border: 1px solid #cfe4e2;
  border-radius: 22px;
  background: #fbfdfd;
  box-shadow: 0 8px 26px rgba(32, 84, 86, 0.07);
}
@media (min-width: 640px) { .chat__composer { margin-inline: 32px; } }
.intake-pane > .chat__composer { margin: 16px 20px 12px; }
@media (min-width: 640px) { .intake-pane > .chat__composer { margin-inline: 32px; } }
.chat__composer:focus-within { border-color: #72bdb7; box-shadow: 0 8px 26px rgba(13, 123, 123, 0.12); }
.chat__input,
.chat__input:focus {
  min-height: 86px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.9;
  resize: none;
}
.chat__actions { justify-content: space-between; align-items: center; padding: 4px 8px 4px; }
.chat__actions .btn { width: auto; }
.btn-ghost {
  background: transparent;
  color: #688486;
  border: 0;
  box-shadow: none;
}
.btn-ghost:hover { background: #eef8f7; color: #0d7b7b; }

/* بطاقات الخطوة ٢: كل مجموعة حقول بطاقة مستقلة */
.panel-card:has(> form > #rfqDetails:not([hidden])) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
#rfqDetails { display: grid; gap: 20px; }
#rfqDetails > .step-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #203b40;
}
#rfqDetails > .form-group,
#rfqDetails > .rfq-price-summary {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
  #rfqDetails > .form-group,
  #rfqDetails > .rfq-price-summary { padding: 28px; }
}
#rfqDetails .form-label { font-size: 13px; color: #315054; }
#rfqDetails .form-group { gap: 12px; }

.cat-chips { gap: 12px; }
.cat-chip {
  padding: 10px 18px;
  border: 1px solid #e3edec;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #315054;
}
.cat-chip:hover { border-color: #b6d8d5; }
.cat-chip:has(input:checked) {
  background: #eff9f8;
  border-color: var(--tone-focus);
  color: #0d7b7b;
  box-shadow: 0 8px 20px rgba(13, 123, 123, 0.08);
}

/* جدول الأصناف */
.rfq-items-table th {
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--tone-line-soft);
  font-size: 11px;
  font-weight: 700;
  color: #8ca0a1;
}
.rfq-items-table td { padding: 6px 8px; border-bottom: 0; }
.rfq-items-table .form-input { min-height: 44px; }
.remove-row-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #a4b6b7;
}
.remove-row-btn:hover { background: #fff1ed; color: #d9674d; }

.attachment-row {
  border: 1px solid #e3edec;
  border-radius: 14px;
  background: #fbfdfd;
  color: #688486;
}
.attachment-row__icon { display: grid; place-items: center; color: #0d7b7b; }

.rfq-price-summary { background: #edf8f7 !important; border-color: #cfe5e2 !important; box-shadow: none !important; }
.rfq-price-summary__row { font-size: 13px; color: #5f8585; }
.rfq-price-summary__row--total { border-top: 1px dashed #b8dad6; color: #1c6666; }
.rfq-price-summary__row--total .rfq-price-summary__val { color: #0d7b7b; }

.rfq-actions { margin-top: 0; gap: 12px; }
.rfq-actions .btn { min-width: 160px; }

.help-toggle__btn {
  background: #edf8f7;
  color: #0d7b7b;
  border-color: #cfe5e2;
}
.help-toggle__body { font-size: 12px; color: #71898b; }

.vendor-picker__results { border: 1px solid #dbe9e8; border-radius: 12px; box-shadow: 0 16px 30px rgba(30, 79, 81, 0.14); }
.vendor-chip { background: #edf8f7; color: #0d7b7b; border: 0; font-size: 11px; font-weight: 600; }


/* ==========================================================================
   Pages — جدول أصناف الطلب (عرض الحقول)
   ========================================================================== */
.rfq-items-table .item-description,
.rfq-items-table .item-quantity { width: 100%; }
.rfq-items-table td:nth-child(2) { width: 150px; }
.rfq-items-table td:nth-child(3) { width: 44px; text-align: center; }

/* ==========================================================================
   الواجهة العامة — الترويسة (الرئيسية، الدخول، الطلبات المفتوحة، تواصل، قانوني)
   ========================================================================== */
.lp-body { background: var(--color-bg); color: var(--color-text); }

.lp-header,
.auth-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #dcebea;
}
.auth-header { padding: 0; }
.lp-header__inner { padding-block: 12px; }

.lp-brand__mark { width: auto; height: auto; background: none; border-radius: 0; }
.lp-brand img { width: auto; height: 38px; max-width: none; object-fit: contain; }
@media (min-width: 640px) { .lp-brand img { height: 44px; } }

/* شعار + فاصل + وصف (مثل الترويسة الداخلية) */
.lp-brand__text {
    display: flex;
    align-items: flex-start;
    /* gap: 0px; */
    flex-direction: column;
}
.lp-brand__text small {
  display: none;
  padding-inline-start: 14px;
  border-inline-start: 1px solid #dcebea;
  font-size: 11px;
  color: #81979a;
  line-height: 1.5;
}
@media (min-width: 640px) { .lp-brand__text small { display: block; } }
.auth-header .brand__text strong { display: none; }
.auth-header .brand__text small { font-size: 11px; color: #81979a; }
.auth-header .brand { gap: 14px; width: auto; }

.lp-nav__links a { color: #496267; font-size: 14px; font-weight: 700; }
.lp-nav__links a:hover { color: #0d7b7b; }

.lp-btn { min-height: 46px; border-radius: 14px; font-size: 14px; }
.lp-btn--primary { box-shadow: var(--shadow-btn); }
.lp-btn--ghost { border-color: #cfe3e1; color: #0d7b7b; background: #fff; }
.lp-btn--ghost:hover { background: #eff9f8; }

.lang-switch { border-color: #dcebea; background: #fff; }
.lang-switch__opt { font-size: 11px; font-weight: 700; color: #72898b; }
.lang-switch__opt:hover { background: #edf8f7; color: #0d7b7b; }
.lang-switch__opt.is-active { background: #0d7b7b; color: #fff; }

/* ==========================================================================
   الواجهة العامة — الصفحة الرئيسية
   ========================================================================== */
.lp-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(103, 196, 189, 0.22), transparent 42%),
    linear-gradient(180deg, #eef7f6 0%, #ffffff 100%);
}
.lp-hero h1 { color: #203b40; font-weight: 800; }
.lp-hero__lead { color: #71898b; }
.lp-eyebrow { background: #fff; border: 1px solid #cfe5e2; color: #0d7b7b; }

.lp-quote-card,
.lp-feature,
.lp-step,
.lp-audience__card {
  border-color: var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.lp-quote-card { box-shadow: var(--shadow-lg); }
.lp-feature:hover { box-shadow: var(--shadow-md); }
.lp-feature__icon { border-radius: 16px; background: #edf8f7; }
.lp-section--tint { background: #eef7f6; }
.lp-section__head h2 { color: #203b40; font-weight: 800; }
.lp-pill { background: #e8f8f2; color: #168357; }

.lp-audience__card--vendor,
.lp-cta {
  position: relative;
  overflow: hidden;
  background: #0d7b7b;
}
.lp-audience__card--vendor::before,
.lp-cta::before {
  content: "";
  position: absolute;
  width: 256px;
  height: 256px;
  top: -96px;
  inset-inline-start: -96px;
  border: 38px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.lp-audience__card--vendor > *,
.lp-cta > * { position: relative; }
.lp-cta { border-radius: 30px; }
.lp-step__num { background: #0d7b7b; }

.lp-footer { border-top: 1px solid #dcebea; background: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   صفحات الدخول والتسجيل
   ========================================================================== */
.auth-card {
  border: 1px solid #d7e9e7;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.auth-card__eyebrow { background: #edf8f7; color: #0d7b7b; font-size: 11px; }
.auth-card h1 { font-weight: 800; color: #203b40; }
.auth-card p { color: #71898b; }
.otp-input { border-color: #dbe9e8; border-radius: 14px; }
.otp-input:focus { border-color: var(--tone-focus); box-shadow: 0 0 0 3px var(--tone-ring); }
.auth-footer { color: #8ca1a2; }


/* ترويسة الرئيسية: لا التفاف في الروابط، والوصف يخفي عند ضيق المساحة */
.lp-nav__links { align-items: center; }
.lp-nav__links a { white-space: nowrap; }
@media (max-width: 1100px) {
  .lp-brand__text small { display: none; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .lp-nav, .lp-nav__links { gap: 16px; }
}

/* لوحة الإدارة: جداول عريضة تحتاج مساحة أكبر */
.is-admin .dashboard-main,
.is-admin .app-header__inner { max-width: 1400px; }

/* روابط ونماذج عامة */
.auth-card a:not(.btn):not(.lp-btn) { color: #0d7b7b; font-weight: 700; }
input[type="checkbox"], input[type="radio"] { accent-color: #0d7b7b; }


/* إصلاحات: صندوق الإدخال داخل المحادثة */
.chat__composer .chat__input,
.chat__composer .chat__input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.chat__actions { flex-direction: row; flex-wrap: nowrap; }
.chat__actions .btn { flex: 0 0 auto; }


/* ==========================================================================
   لوحة الطلبات العامة (/requests) + بطاقات الدعم
   ========================================================================== */
.board-filters {
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.board-page .board-filters { margin: 0 0 16px; }
.form-control,
select.form-control,
input.form-control {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #dbe9e8;
  border-radius: 12px;
  background: #fff;
  color: #29464a;
  font: inherit;
  font-size: 14px;
}
.form-control:focus { outline: none; border-color: var(--tone-focus); box-shadow: 0 0 0 3px var(--tone-ring); }
.board-filters__submit { min-height: 44px; border-radius: 12px; }

.chip-radio {
  padding: 8px 14px;
  border: 1px solid #e2ebea;
  background: #fff;
  color: #5f7779;
  font-size: 12px;
  font-weight: 700;
}
.chip-radio:has(input:checked) { background: #eaf7f5; border-color: #b9dfda; color: #0d7b7b; }

.board-card {
  border: 1px solid var(--tone-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.board-badge--open { background: var(--tone-ok-bg); color: var(--tone-ok-fg); }
.board-badge--closed { background: var(--tone-closed-bg); color: var(--tone-closed-fg); }
.board-empty { border: 1px dashed #cfe3e1; border-radius: 20px; background: #fff; color: #71898b; }

.legal-tabs__item {
  border: 1px solid #e2ebea;
  background: #fff;
  color: #5f7779;
  font-weight: 700;
}
.legal-tabs__item:hover { border-color: #b9d8d5; color: #0d7b7b; }
.legal-tabs__item.is-active { background: #0d7b7b; border-color: #0d7b7b; color: #fff; }

/* بطاقات الدعم (تواصل، التذاكر) */
.support-card,
.ticket-msg,
.kpi-tile,
.ticket-meta-card {
  border-color: var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.ticket-msg { border-radius: 16px; box-shadow: none; }
.support-contact__head h1 { font-weight: 800; color: #203b40; }


/* قوائم التفاصيل: صفّ لكل حقل (تسمية يسارًا/قيمة مقابلها) بدل التكديس */
.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tone-line-soft);
}
.detail-list > div:first-child { padding-top: 0; }
.detail-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list dt { font-size: 12px; font-weight: 600; color: #819799; }
.detail-list dd { font-size: 12px; font-weight: 700; color: var(--tone-ink-2); text-align: end; }
.detail-list__item:last-child { border-bottom: 0; }
.detail-card { background: #fff; }


/* ==========================================================================
   إنشاء الطلب — الخطوة ٢: عمود رئيسي + عمود جانبي (كما في التصميم)
   ========================================================================== */
.details-head { display: grid; gap: 16px; }
.details-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: #6d8889;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.details-back:hover { color: #0d7b7b; }
.details-head__row { display: flex; align-items: center; gap: 12px; }
.details-head .dashboard-kicker { margin: 0 0 2px; }
#rfqDetails .details-head .step-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);
  font-weight: 600;
  line-height: 1.3;
  color: #203b40;
}
.icon-tile--solid {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #0d7b7b;
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 123, 123, 0.2);
}

.details-layout { display: grid; gap: 24px; align-items: start; }
.details-main, .details-side { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 1024px) {
  .details-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .details-side { position: sticky; top: 96px; }
}

.details-main > .form-group,
.details-side > .form-group,
.detail-section {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
  .details-main > .form-group,
  .detail-section { padding: 28px; }
}
.details-side > .form-group { padding: 20px; }

.details-main > .form-group .form-label,
.details-side > .form-group .form-label { font-size: 15px; font-weight: 700; color: #203b40; }
.details-side > .form-group .form-label { font-size: 14px; }

.detail-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.detail-section__head h3 { margin: 0; font-size: 18px; font-weight: 600; color: #203b40; }
.detail-section__head p { margin: 4px 0 0; font-size: 12px; color: #8a9e9f; }
.detail-section__head .help-toggle { margin-inline-start: auto; }
.detail-section__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .detail-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.detail-section .form-group { gap: 8px; }
.detail-section .form-label,
.detail-section .form-sublabel { font-size: 12px; font-weight: 700; color: #5d7779; }

.review-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid #cfe5e2;
  border-radius: 24px;
  background: #edf8f7;
}
.review-note__title { margin: 0; font-size: 12px; font-weight: 800; color: #1c6666; }
.review-note__text { margin: 4px 0 0; font-size: 11px; line-height: 1.9; color: #5f8585; }

.details-side .rfq-price-summary { padding: 20px; border-radius: 24px; }
.details-side .rfq-actions { display: grid; gap: 12px; justify-items: center; }
.details-side .rfq-actions .btn { width: 100%; min-width: 0; min-height: 52px; border-radius: 16px; }
.rfq-actions__cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #819899;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.rfq-actions__cancel:hover { color: #d9674d; }

.details-side .rfq-actions { grid-template-columns: minmax(0, 1fr); }

/* الخطوة ٢ لها رأسها الخاص: نُخفي عنوان الصفحة ومؤشّر الخطوتين */
.dashboard-main:has(#rfqDetails:not([hidden])) > .dashboard-topbar--compact,
.dashboard-main:has(#rfqDetails:not([hidden])) > .rfq-steps { display: none; }


/* إصلاح: display:grid كان يُبطل خاصية hidden فتظهر الخطوتان معًا */
#rfqDetails[hidden],
#rfqIntake[hidden] { display: none; }

/* ==========================================================================
   تفاصيل الطلب — العروض بعرض الصفحة، تحتها الملف المرفق وخيارات الطلب
   ========================================================================== */
.rfq-details-grid > .detail-card--offers {
  grid-column: 1 / -1;
  order: 1;
  border-color: #a9d7d2;
  box-shadow: 0 16px 42px rgba(13, 123, 123, 0.1);
}
.rfq-details-grid > .purchase-card { grid-column: 1 / -1; order: 2; }
.rfq-details-grid > .detail-card--file,
.rfq-details-grid > .detail-card--actions { order: 3; }

.panel-card__header--offers {
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8f0ef;
}
.offers-title { display: flex; align-items: center; gap: 12px; }
.offers-title .dashboard-kicker { margin: 0 0 2px; }
.offers-title h2 { margin: 0; }

.offer-rows { display: grid; gap: 12px; }
.offer-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr 0.9fr 0.8fr 1fr 1.2fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--tone-line);
  border-radius: 16px;
  background: #fbfefd;
  font-size: 13px;
  color: #496267;
  transition: border-color 0.18s;
}
.offer-row:hover { border-color: #b9dcd8; }
.offer-row--head {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #f5faf9;
  font-size: 11px;
  font-weight: 800;
  color: #71898b;
}
.offer-row__vendor strong { font-size: 15px; font-weight: 800; color: var(--tone-ink-2); }
.offer-row__price { font-size: 16px; font-weight: 800; color: #0d7b7b; }
.offer-row__muted { color: #71898b; font-size: 12px; }
.offer-row__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.offer-row__actions .btn { width: auto; }
.offers-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #f8fbfb;
  font-size: 11px;
  line-height: 1.8;
  color: #71898b;
}
.offers-note .ui-icon { margin-top: 2px; color: #0d7b7b; }

@media (max-width: 860px) {
  .offer-row--head { display: none; }
  .offer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-row__vendor { grid-column: 1 / -1; }
  .offer-row__cell[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    color: #91a3a4;
  }
  .offer-row__actions { grid-column: 1 / -1; justify-content: flex-start; }
}


/* ==========================================================================
   الموقع العام: خلفية بيضاء (كما في تصميم سوق الطلبات)
   لوحات المشتري/المورد/الإدارة تبقى بالخلفية المائية الفاتحة.
   ========================================================================== */
.lp-body { background: #fff; }
.lp-nav__links a.is-active { color: #0d7b7b; }

/* ==========================================================================
   سوق الطلبات (/requests) + فرص المورد: قائمة صفوف
   ========================================================================== */
.board-page { padding-block: 32px 48px; }
.board-page .lp-container { width: min(100% - 2rem, 1152px); }

.board-kicker { margin: 0; font-size: 12px; font-weight: 700; color: #0d7b7b; }

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.board-head h1 {
  margin: 12px 0 0;
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: #203b40;
}
.board-head p { max-width: 720px; margin: 8px 0 0; font-size: 14px; line-height: 1.9; color: #71898b; }
.board-market-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e3eeee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: #0d7b7b;
}
.board-public-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #cfe5e2;
  border-radius: 16px;
  background: #edf8f7;
  font-size: 12px;
  font-weight: 600;
  color: #267674;
}

.board-sheet {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(33, 83, 85, 0.07);
}
@media (min-width: 640px) { .board-sheet { padding: 28px; } }
.board-sheet--flush { padding: 0; overflow: hidden; }
.board-sheet + .board-sheet { margin-top: 20px; }

.board-sheet__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #e8f0ef;
}
@media (min-width: 640px) { .board-sheet__bar { padding-inline: 28px; } }
.board-sheet__bar h2,
.board-sheet__head h2 { margin: 4px 0 0; font-size: 20px; font-weight: 800; color: #203b40; }

.board-seg { display: flex; padding: 4px; border-radius: 999px; background: #f2f8f7; }
.board-seg__item {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #819799;
  text-decoration: none;
}
.board-seg__item:hover { color: #0d7b7b; }
.board-seg__item.is-active { background: #fff; color: #0d7b7b; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

.board-filterbar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e8f0ef;
  background: #fbfdfd;
}
@media (min-width: 640px) {
  .board-filterbar { grid-template-columns: 180px 180px minmax(0, 1fr) auto; padding: 20px; }
}
.board-filterbar .form-control { min-height: 44px; font-size: 12px; font-weight: 600; color: #496267; }
.board-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dbe9e8;
  border-radius: 12px;
  background: #fff;
  color: #9ab0b1;
}
.board-search:focus-within { border-color: var(--tone-focus); box-shadow: 0 0 0 3px var(--tone-ring); }
.board-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: #29464a;
}
.board-filterbar__btn { min-height: 44px; border-radius: 12px; font-size: 12px; gap: 8px; }

.board-countbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}
@media (min-width: 640px) { .board-countbar { padding-inline: 28px; } }
.board-countbar p { margin: 0; font-size: 12px; color: #819799; }
.board-countbar span { font-size: 10px; font-weight: 600; color: #9aadae; }

.req-rows { display: block; }
.req-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid #e8f0ef;
  transition: background 0.18s;
}
.req-row:hover { background: #fbfefd; }
.req-row--invited { box-shadow: inset 3px 0 0 #0d7b7b; }
[dir="rtl"] .req-row--invited { box-shadow: inset -3px 0 0 #0d7b7b; }
@media (min-width: 640px) { .req-row { padding-inline: 28px; } }
@media (min-width: 1024px) {
  .req-row { flex-direction: row; align-items: center; gap: 24px; }
}
.req-row__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
}
.req-row__icon--open { background: var(--tone-ok-bg); color: var(--tone-ok-fg); }
.req-row__icon--closed { background: var(--tone-closed-bg); color: var(--tone-closed-fg); }
.req-row__icon--quoted { background: #edf8f7; color: #0d7b7b; }
.req-row { position: relative; }
.req-row__body { flex: 1; min-width: 0; }
@media (max-width: 1023px) {
  .req-row { padding-inline-start: 76px; }
  .req-row__icon { position: absolute; top: 20px; inset-inline-start: 20px; }
}
@media (max-width: 639px) {
  .req-row { padding-inline-start: 68px; }
  .req-row__icon { inset-inline-start: 16px; }
}
.req-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.req-row__title h3 { margin: 0; font-size: 16px; font-weight: 800; }
.req-row__title h3 a { color: #304f53; text-decoration: none; }
.req-row__title h3 a:hover { color: #0d7b7b; }
.req-chip { padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.req-chip--open { background: var(--tone-ok-bg); color: var(--tone-ok-fg); }
.req-chip--closed { background: var(--tone-closed-bg); color: var(--tone-closed-fg); }
.req-row__items {
  margin: 8px 0 0;
  overflow: hidden;
  font-size: 12px;
  color: #71898b;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.req-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: #819799;
}
.req-row__offers { color: #0d7b7b; font-weight: 700; }
.req-row__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .req-row__side { width: 290px; justify-content: flex-end; } }
.req-row__time { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.req-row__time--normal { color: #5f7779; }
.req-row__time--soon { color: #b97918; }
.req-row__time--urgent { color: #c15e4d; }
.req-row__time--closed { color: #c16d2c; }
.req-row__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #edf8f7;
  color: #0d7b7b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.req-row__btn:hover { background: #dff2ef; }

.board-empty {
  padding: 56px 20px;
  border: 0;
  border-top: 1px solid #e8f0ef;
  border-radius: 0;
  background: transparent;
  text-align: center;
  color: #9ab9b7;
}
.board-empty .ui-icon { margin: 0 auto; }
.board-empty p { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: #496267; }
.board-page > .lp-container > .board-empty { border: 1px dashed #cfe3e1; border-radius: 24px; }

.board-pager { margin-top: 24px; }
.board-actions--center { margin-top: 28px; }

/* فرص المورد داخل اللوحة */
.opp-board .board-countbar { border-bottom: 0; }
.opp-board > .empty-note { margin: 20px; }
.status-badge.status-invited { background: #fff4d6; color: #8a6100; }

/* ==========================================================================
   تفاصيل طلب عام (/requests/{id})
   ========================================================================== */
.board-detail { max-width: 1024px; margin-inline: auto; }
.board-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 700;
  color: #6d8889;
  text-decoration: none;
}
.board-back:hover { color: #0d7b7b; }
.board-page > .lp-container > .board-back { display: flex; width: fit-content; max-width: 1024px; margin-inline: auto; }
@media (min-width: 1056px) {
  .board-page > .lp-container > .board-back { margin-inline-start: calc((100% - 1024px) / 2); }
}

.board-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.board-detail__head h1 { margin: 8px 0 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 1.875rem); font-weight: 800; color: #203b40; }
.board-detail__sub { margin: 8px 0 0; font-size: 14px; color: #71898b; }
.board-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.board-pill--open { background: var(--tone-ok-bg); color: var(--tone-ok-fg); }
.board-pill--closed { background: var(--tone-closed-bg); color: var(--tone-closed-fg); }

.board-facts { display: grid; gap: 16px; margin: 0; }
@media (min-width: 640px) { .board-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .board-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.board-facts > div { padding: 16px; border-radius: 16px; background: #f8fbfb; }
.board-facts dt { font-size: 11px; color: #819799; }
.board-facts dd { margin: 8px 0 0; font-size: 14px; font-weight: 800; color: #304f53; }

.board-sheet__head { padding: 20px; border-bottom: 1px solid #e8f0ef; }
@media (min-width: 640px) { .board-sheet__head { padding-inline: 28px; } }
.board-sheet__head .board-kicker { font-size: 11px; }
.board-sheet__head h2 span { font-size: 14px; font-weight: 600; color: #819799; }

.board-items { padding: 16px; }
@media (min-width: 640px) { .board-items { padding: 28px; } }
.board-items__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--tone-line-soft);
}
.board-items__row:last-child { border-bottom: 0; }
.board-items__row--head { display: none; }
.board-items__num { font-size: 12px; font-weight: 700; color: #9ab0b1; }
.board-items__name { font-size: 14px; font-weight: 600; color: #496267; }
.board-items__qty { grid-column: 2; font-size: 12px; font-weight: 800; color: #304f53; }
@media (min-width: 640px) {
  .board-items__row { grid-template-columns: 52px minmax(0, 1fr) 140px; padding-inline: 16px; }
  .board-items__qty { grid-column: auto; }
  .board-items__row--head {
    display: grid;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: #f5faf9;
    font-size: 10px;
    font-weight: 800;
    color: #71898b;
  }
}

.board-vendor-box {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #cfe5e2;
  border-radius: 22px;
  background: #edf8f7;
}
@media (min-width: 640px) { .board-vendor-box { padding: 24px; } }
.board-vendor-box__row { display: flex; align-items: flex-start; gap: 12px; }
.board-vendor-box__icon { color: #0d7b7b; margin-top: 2px; }
.board-vendor-box__title { margin: 0; font-size: 14px; font-weight: 800; color: #1c6666; }
.board-vendor-box__text { margin: 4px 0 0; font-size: 12px; line-height: 1.9; color: #5f8585; }
.board-vendor-box .lp-btn { margin-top: 16px; min-height: 44px; font-size: 12px; }
.board-detail .board-actions--center .lp-btn { gap: 8px; font-size: 12px; }

/* فلاتر فرص المورد: بلا بطاقة داخل بطاقة، وفي صف واحد على الشاشات الواسعة */
.filters-card .board-filters { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
@media (min-width: 768px) { .filters-card .board-filters { grid-template-columns: auto 180px minmax(0, 1fr) auto; align-items: center; } }
.filters-card .board-filters__city, .filters-card .board-filters__search { width: 100%; min-width: 0; }
.filters-card .board-filters .btn { width: auto; min-height: 44px; padding-inline: 20px; }

/* نصوص الأصناف (قد تكون عربية في الصفحة الإنجليزية): المحاذاة تتبع اتجاه الصفحة */
[dir="rtl"] .req-row__items, [dir="rtl"] .board-items__name { text-align: right; }
[dir="ltr"] .req-row__items, [dir="ltr"] .board-items__name { text-align: left; }

/* أقسام المورّد (الإعدادات) */
.vendor-cats__title { display: flex; align-items: center; gap: 12px; }
.vendor-cats__title .dashboard-kicker { margin: 0 0 2px; }
.vendor-cats__title h2 { margin: 0; }
.vendor-cats__help { margin: -8px 0 16px; font-size: 13px; line-height: 1.9; color: #71898b; }
.vendor-cats__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.vendor-cat { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #e3edec; border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.vendor-cat:hover { border-color: #b6d8d5; }
.vendor-cat input { position: absolute; opacity: 0; pointer-events: none; }
.vendor-cat__check { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border: 1.5px solid #c9dcdb; border-radius: 8px; color: transparent; background: #fff; }
.vendor-cat__name { font-size: 14px; font-weight: 700; color: #315054; }
.vendor-cat:has(input:checked) { border-color: var(--tone-focus); background: #eff9f8; box-shadow: 0 8px 20px rgba(13, 123, 123, .08); }
.vendor-cat:has(input:checked) .vendor-cat__check { border-color: #0d7b7b; background: #0d7b7b; color: #fff; }
.vendor-cat:has(input:focus-visible) { outline: 2px solid #0d7b7b; outline-offset: 2px; }
.vendor-cats__form .form-actions-bar { margin-top: 20px; }

/* لوحة المورّد: الصفّ الأول ملاصق لترويسة البطاقة (لا خطّان متتاليان) */
.req-rows--flush > .req-row:first-child { border-top: 0; }


/* ==========================================================================
   جداول الأصناف على الجوال: صفّ مضغوط بدل بطاقة لكل صنف
   (تفاصيل الفرصة، تفاصيل العرض، وإدخال أسعار العرض)
   كانت كل خلية سطرًا بعنوان مستقل ⇒ نحو 250px للصنف. الآن: اسم الصنف
   في سطر، والقيم في سطر واحد تحته ⇒ نحو 60–90px للصنف.
   ========================================================================== */
@media (max-width: 640px) {
  .rfq-items-view-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin: 0;
    padding: 12px 2px;
    border: 0;
    border-bottom: 1px solid var(--tone-line-soft);
    border-radius: 0;
    background: transparent;
  }
  .rfq-items-view-table tbody tr:last-child { border-bottom: 0; }
  .rfq-items-view-table tbody td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    font-size: 12px;
    color: #5f7779;
  }
  .rfq-items-view-table tbody td:first-child {
    flex: 1 0 100%;
    font-size: 14px;
    font-weight: 600;
    color: #304f53;
  }
  .rfq-items-view-table tbody td:first-child::before { content: none; }
  .rfq-items-view-table tbody td:not(:first-child)::before {
    content: attr(data-label) ": ";
    display: inline;
    margin: 0;
    font-size: 11px;
    color: #91a3a4;
  }
  .rfq-items-view-table tbody td:last-child { margin-inline-start: auto; font-weight: 700; color: #304f53; }
  .rfq-items-view-table tbody td:nth-child(2):last-child { margin-inline-start: 0; }

  /* إدخال الأسعار: شبكة ثابتة (الكمية | سعر الوحدة | الإجمالي) بعناوين مرّة واحدة */
  #quoteItemsTable thead {
    display: block;
    width: 100%;
  }
  #quoteItemsTable thead tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px 88px;
    gap: 8px;
    padding: 0 2px 8px;
    border-bottom: 1px solid var(--tone-line-soft);
  }
  #quoteItemsTable thead th {
    padding: 0;
    border: 0;
    background: none;
    font-size: 10px;
    font-weight: 800;
    color: #8ca0a1;
  }
  #quoteItemsTable thead th:first-child { display: none; }
  #quoteItemsTable thead th:last-child { text-align: end; }
  #quoteItemsTable tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px 88px;
    grid-template-areas: "name name name" "qty price total";
    gap: 6px 8px;
  }
  #quoteItemsTable tbody td:nth-child(1) { grid-area: name; }
  #quoteItemsTable tbody td:nth-child(2) { grid-area: qty; }
  #quoteItemsTable tbody td:nth-child(3) { grid-area: price; }
  #quoteItemsTable tbody td:nth-child(4) { grid-area: total; text-align: end; margin: 0; }
  #quoteItemsTable tbody td::before { content: none; }
  #quoteItemsTable tbody td:nth-child(2)::before { content: "× "; color: #9ab0b1; font-size: 12px; }
  #quoteItemsTable .item-price-input {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
  }
}
@media (max-width: 640px) {
  #quoteItemsTable thead tr { padding: 8px 10px; border: 0; border-radius: 10px; background: #f5faf9; }
  #quoteItemsTable thead th { border: 0 !important; }
  .rfq-items-view-table thead tr, .rfq-items-view-table thead { box-shadow: none; }
}
@media (max-width: 640px) {
  /* جدول بعمودين (صنف + كمية): سطر واحد */
  .rfq-items-view-table tbody tr:has(> td:nth-child(2):last-child) { flex-wrap: nowrap; }
  .rfq-items-view-table tbody tr:has(> td:nth-child(2):last-child) > td:first-child { flex: 1 1 auto; min-width: 0; }
  .rfq-items-view-table tbody tr:has(> td:nth-child(2):last-child) > td:last-child { flex: 0 0 auto; margin-inline-start: auto; white-space: nowrap; }
}


/* ==========================================================================
   الصفحة الرئيسية — التصميم الجديد (هيكل صفحة الهبوط + هويتنا)
   لا برتقالي: الإجراء الأساسي بالأخضر المزرق، والتمييز بدرجاته الفاتحة.
   ========================================================================== */
.home .lp-container { width: min(100% - 2rem, 1200px); }

.home-btn-lg { min-height: 54px; padding-inline: 26px; border-radius: 14px; font-size: 15px; gap: 10px; }

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 85% 10%, rgba(103, 196, 189, 0.18), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 123, 123, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 123, 123, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  pointer-events: none;
}
.home-hero__grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .home-hero__grid { grid-template-columns: 1.05fr 0.95fr; } }

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid #cfe5e2;
  border-radius: 999px;
  background: #edf8f7;
  font-size: 13px;
  font-weight: 700;
  color: #0d7b7b;
}
.home-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.18);
}
.home-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #203b40;
}
.home-hero h1 span {
  position: relative;
  z-index: 0;
  color: #0d7b7b;
}
.home-hero h1 span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.08em;
  z-index: -1;
  height: 0.28em;
  border-radius: 4px;
  background: rgba(103, 196, 189, 0.32);
}
.home-hero__lead { max-width: 560px; margin: 0 0 30px; font-size: 17px; line-height: 1.95; color: #71898b; }
.home-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.home-hero__ctas--center { justify-content: center; margin-bottom: 0; }
.home-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: #5f7779; }
.home-trust li { display: inline-flex; align-items: center; gap: 6px; }
.home-trust .ui-icon { color: #168357; }

/* نموذج المقارنة */
.home-hero__visual { position: relative; max-width: 540px; width: 100%; margin-inline: auto; }
.home-mock {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(26, 86, 90, 0.14);
}
.home-mock__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #0d7b7b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.home-mock__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, 0.15); }
.home-mock__body { display: grid; gap: 10px; padding: 18px; }
.home-mock__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--tone-line);
  border-radius: 14px;
  background: #fbfefd;
}
.home-mock__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #edf8f7;
  color: #0d7b7b;
  font-weight: 800;
}
.home-mock__avatar--b { background: var(--tone-award-bg); color: var(--tone-award-fg); }
.home-mock__avatar--c { background: var(--tone-warn-bg); color: var(--tone-warn-fg); }
.home-mock__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.home-mock__info strong { font-size: 14px; color: #304f53; }
.home-mock__info small { font-size: 11px; color: #819799; }
.home-mock__chips { display: flex; gap: 6px; margin-top: 4px; }
.home-chip { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.home-chip--amber { background: var(--tone-warn-bg); color: var(--tone-warn-fg); }
.home-chip--green { background: var(--tone-ok-bg); color: var(--tone-ok-fg); }
.home-mock__price { font-size: 15px; font-weight: 800; color: #0d7b7b; white-space: nowrap; }
.home-mock__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--tone-line-soft);
  background: #f8fbfb;
  font-size: 11px;
  color: #819799;
}
.home-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: home-float 4s ease-in-out infinite;
}
.home-float small { display: block; font-size: 10px; color: #819799; }
.home-float strong { display: block; font-size: 12px; color: #304f53; }
.home-float--1 { top: -22px; inset-inline-end: -14px; }
.home-float--2 { bottom: -22px; inset-inline-start: -14px; animation-delay: 2s; }
.home-float__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.home-float__icon--amber { background: var(--tone-warn-bg); color: var(--tone-warn-fg); }
.home-float__icon--teal { background: #edf8f7; color: #0d7b7b; }
@keyframes home-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .home-float { animation: none; } }
@media (max-width: 640px) { .home-float { display: none; } }

/* الأقسام */
.home-section { padding: 88px 0; }
.home-section--tint { background: #f4faf9; }
@media (max-width: 768px) { .home-section { padding: 60px 0; } }
.home-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.home-tag { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 800; color: #0d7b7b; }
.home-head h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 900; line-height: 1.3; color: #203b40; }
.home-head p { margin: 0; font-size: 16px; line-height: 1.9; color: #71898b; }
.home-center { text-align: center; }

.home-grid-3 { display: grid; gap: 22px; }
@media (min-width: 768px) { .home-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-card {
  padding: 30px 26px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #b9dcd8; }
.home-card > .icon-tile { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; }
.home-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: #203b40; }
.home-card p { margin: 0; font-size: 14.5px; line-height: 1.85; color: #71898b; }
.home-problem-foot { margin: 34px 0 0; text-align: center; font-size: 17px; font-weight: 700; color: #0d7b7b; }

.home-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--tone-line-soft); }
.home-card__head .icon-tile { width: 50px; height: 50px; border-radius: 14px; }
.home-card__head h3 { margin: 0; }

/* علامات صح للقوائم */
.home-ticks { display: grid; gap: 4px; margin: 0 0 28px; padding: 0; list-style: none; }
.home-ticks li { position: relative; padding: 7px 0; padding-inline-start: 32px; font-size: 15px; line-height: 1.7; }
.home-ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf8f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7b7b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.home-ticks--muted { margin: 0; }
.home-ticks--muted li { font-size: 14.5px; color: #5f7779; }

/* الخطوات */
.home-steps { position: relative; display: grid; gap: 30px; margin: 0 0 44px; padding: 0; list-style: none; }
@media (min-width: 768px) {
  .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-steps::before {
    content: "";
    position: absolute;
    top: 35px;
    inset-inline: 17%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #cfe3e1 0 8px, transparent 8px 16px);
  }
}
.home-step { position: relative; text-align: center; }
.home-step__num {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border: 3px solid #0d7b7b;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  font-weight: 900;
  color: #0d7b7b;
  box-shadow: 0 8px 24px rgba(13, 123, 123, 0.15);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.home-step:hover .home-step__num { background: #0d7b7b; color: #fff; transform: scale(1.06); }
.home-step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: #203b40; }
.home-step p { max-width: 290px; margin: 0 auto; font-size: 14.5px; line-height: 1.85; color: #71898b; }

/* طرفا الصفقة */
.home-sides { display: grid; gap: 26px; }
@media (min-width: 768px) { .home-sides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-side { position: relative; overflow: hidden; padding: 40px 34px; border-radius: 26px; }
@media (max-width: 640px) { .home-side { padding: 30px 22px; } }
.home-side h3 { margin: 0 0 18px; font-size: 24px; font-weight: 900; }
.home-side__icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; border-radius: 18px; }
.home-side--buyer { border: 2px solid #0d7b7b; background: #fff; color: #203b40; }
.home-side--buyer .home-side__icon { background: #edf8f7; color: #0d7b7b; }
.home-side--vendor { background: #0d7b7b; color: #fff; box-shadow: 0 20px 40px rgba(13, 123, 123, 0.25); }
.home-side--vendor::after {
  content: "";
  position: absolute;
  bottom: -70px;
  inset-inline-start: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.05);
}
.home-side--vendor .home-side__icon { background: rgba(255, 255, 255, 0.15); color: #fff; }
.home-side--vendor .home-ticks li::before { background-color: rgba(255, 255, 255, 0.18); filter: brightness(10); }
.home-side .lp-btn { position: relative; z-index: 1; gap: 8px; }

/* الأسئلة الشائعة */
.home-faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.home-faq__item {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-faq__item[open] { border-color: #8ecbc4; box-shadow: var(--shadow-sm); }
.home-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #203b40;
  list-style: none;
  cursor: pointer;
}
.home-faq__item summary::-webkit-details-marker { display: none; }
.home-faq__item[open] summary { color: #0d7b7b; }
.home-faq__toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f2f8f7;
  color: #0d7b7b;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.home-faq__item[open] .home-faq__toggle { transform: rotate(45deg); background: #0d7b7b; color: #fff; }
.home-faq__item p { margin: 0; padding: 0 24px 22px; font-size: 15px; line-height: 1.9; color: #5f7779; }
.home-faq__more { margin-top: 12px; }

/* الدعوة النهائية */
.home-section--cta { padding-top: 0; }
.home-final {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 24px;
  border-radius: 30px;
  background: #0d7b7b;
  color: #fff;
  text-align: center;
}
.home-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.home-final > * { position: relative; }
.home-final h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 900; }
.home-final p { max-width: 640px; margin: 0 auto 28px; font-size: 17px; line-height: 1.8; color: rgba(255, 255, 255, 0.85); }
.home-final .lp-btn--light { background: #fff; color: #0d7b7b; border-color: #fff; }
.home-final .lp-btn--light:hover { background: #effaf8; }
.home-final__note { margin: 18px auto 0 !important; font-size: 13px !important; color: rgba(255, 255, 255, 0.7) !important; }

/* التذييل */
.home-footer { padding: 56px 0 28px; border-top: 1px solid #dcebea; background: #f8fbfb; color: #5f7779; }
.home-footer__grid { display: grid; gap: 32px; margin-bottom: 36px; }
@media (min-width: 768px) { .home-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.home-footer__brand img { width: auto; height: 40px; margin-bottom: 14px; }
.home-footer__brand p { max-width: 340px; margin: 0; font-size: 14px; line-height: 1.85; }
.home-footer__col { display: grid; align-content: start; gap: 10px; }
.home-footer__col h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #203b40; }
.home-footer__col a { font-size: 14px; color: #5f7779; text-decoration: none; }
.home-footer__col a:hover { color: #0d7b7b; }
.home-footer__col .legal-links { display: grid; gap: 10px; margin: 0; }
.home-footer__col .legal-entity { display: grid; gap: 4px; margin: 8px 0 0; font-size: 12px; color: #81979a; }
.home-footer__bottom { padding-top: 22px; border-top: 1px solid #dcebea; font-size: 13px; color: #81979a; text-align: center; }

.home-side--vendor .lp-btn--light { background: #fff; color: #0d7b7b; border-color: #fff; }
.home-side--vendor .lp-btn--light:hover { background: #effaf8; }
.home-faq__item[open] .home-faq__toggle { transform: none; }
.home-faq__toggle .ui-icon { transition: transform .25s; }
.home-faq__item[open] .home-faq__toggle .ui-icon { transform: rotate(45deg); }

/* إدارة الأسئلة الشائعة (admin/faq.php) */
.faq-admin { display: grid; gap: 12px; }
.faq-admin__item { border: 1px solid var(--color-border); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-admin__item[open] { border-color: #8ecbc4; box-shadow: var(--shadow-sm); }
.faq-admin__item.is-off { background: #f8fbfb; }
.faq-admin__item.is-off .faq-admin__q { color: #8ca1a2; }
.faq-admin__item > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; list-style: none; cursor: pointer; }
.faq-admin__item > summary::-webkit-details-marker { display: none; }
.faq-admin__order { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: #edf8f7; font-size: 12px; font-weight: 800; color: #0d7b7b; }
.faq-admin__q { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: #203b40; }
.faq-admin__item > form, .faq-admin__item > .alert, .faq-admin__actions, .faq-admin__answer { margin: 0 18px 16px; }
.faq-admin__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--tone-line-soft); }
.faq-admin__actions .btn { width: auto; }
.faq-admin__answer { font-size: 13px; line-height: 1.9; color: #5f7779; }
.faq-admin__new .form-textarea { min-height: 110px; }
