/* ================================================================
   📁 style.css — الطبقة الثانية: الشكل والتصميم
   ================================================================
   🎨 هذا الملف مسؤول عن كل ما يخص المظهر فقط:
      - الألوان، الخطوط، المسافات، الأحجام
      - تصميم كل عنصر في الموقع
      - الاستجابة للموبايل (Responsive Design)

   📌 كيف تعدّل؟
      - لتغيير أي لون: ابحث عن اسمه في قسم :root في الأعلى
      - لتعديل حجم خط: ابحث عن اسم العنصر وغيّر font-size
      - لتعديل المسافات: ابحث عن padding أو margin
   ================================================================ */

/* ---------- Fonts (Google — Cairo + IBM Plex Sans Arabic + Inter) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   🎨 القسم الأول: الألوان والمتغيرات العامة (Makan Spot Design System)
   ============================================================ */
:root {
  /* ── Brand palette (sampled from logo) ── */
  --orange-50: #FFF4ED;
  --orange-100: #FFE3D0;
  --orange-200: #FFC3A0;
  --orange-300: #FF9C66;
  --orange-400: #FA7A37;
  --orange-500: #F36418;
  /* PRIMARY */
  --orange-600: #D9510A;
  --orange-700: #B33F05;
  --orange-800: #8A3208;
  --orange-900: #5C220A;

  --navy-50: #F2F4F7;
  --navy-100: #E4E7ED;
  --navy-200: #C7CDD7;
  --navy-300: #99A2B2;
  --navy-400: #5E6878;
  --navy-500: #3A4554;
  --navy-600: #2A323F;
  --navy-700: #212833;
  /* SPOT charcoal */
  --navy-800: #181D26;
  --navy-900: #0E1218;
  --navy-950: #07090C;

  --warm-50: #FAFAF7;
  --warm-100: #F4F3EE;
  --warm-200: #E8E6DF;
  --warm-300: #D5D2C8;
  --warm-400: #A6A29A;
  --warm-500: #767369;
  --warm-600: #57544C;
  --warm-700: #3F3D37;
  --warm-800: #2A2925;
  --warm-900: #1A1916;

  /* ── Semantic ── */
  --success-50: #ECFDF3;
  --success-500: #12B76A;
  --success-700: #027A48;
  --warning-50: #FFFAEB;
  --warning-500: #F79009;
  --warning-700: #B54708;
  --danger-50: #FEF3F2;
  --danger-500: #F04438;
  --danger-700: #B42318;
  --info-50: #EFF8FF;
  --info-500: #2E90FA;
  --info-700: #175CD3;

  /* ── Semantic roles (light theme) ── */
  --bg: #FFFFFF;
  --bg-app: var(--warm-50);
  --bg-sunken: var(--warm-100);
  --bg-raised: #FFFFFF;
  --bg-inverse: var(--navy-900);
  --fg: var(--navy-900);
  --fg-1: var(--navy-700);
  --fg-2: var(--navy-500);
  --fg-3: var(--navy-400);
  --fg-muted: var(--warm-500);
  --fg-inverse: var(--warm-50);
  --accent: var(--orange-500);
  --accent-hover: var(--orange-600);
  --accent-press: var(--orange-700);
  --accent-tint: var(--orange-50);
  --accent-tint-2: var(--orange-100);
  --ring-focus: 0 0 0 3px rgba(243, 100, 24, 0.30);

  /* ── Typography ── */
  --font-display: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
  --font-latin: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --dur-instant: 80ms;
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 360ms;

  /* ── Backward-compat aliases (used throughout existing CSS) ── */
  --orange: var(--orange-500);
  --orange-hover: var(--orange-600);
  --orange-light: var(--orange-300);
  --orange-pale: var(--orange-100);
  --orange-ultra: var(--orange-50);
  --dark: var(--navy-700);
  --dark2: var(--navy-600);
  --ink: var(--navy-900);
  --ink2: var(--navy-500);
  --ink3: var(--warm-400);
  --border: var(--warm-200);
  --surface: #FFFFFF;
  --surface2: var(--warm-50);
  --green: var(--success-500);
  --green-light: var(--success-50);
  --red: var(--danger-500);
  --red-light: var(--danger-50);

  /* ── Radius ── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  /* default — buttons, inputs, cards */
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(14, 18, 24, 0.05);
  --shadow-sm: 0 1px 3px rgba(14, 18, 24, 0.08), 0 1px 2px rgba(14, 18, 24, 0.05);
  --shadow: 0 4px 12px rgba(14, 18, 24, 0.07), 0 2px 4px rgba(14, 18, 24, 0.04);
  --shadow-lg: 0 12px 28px rgba(14, 18, 24, 0.09), 0 4px 10px rgba(14, 18, 24, 0.05);
  --shadow-xl: 0 24px 48px rgba(14, 18, 24, 0.12), 0 8px 16px rgba(14, 18, 24, 0.06);
  --shadow-orange: 0 6px 20px rgba(243, 100, 24, 0.30);

  /* ── Egyptian Identity Accents (Gold & Nile Turquoise) ── */
  --egyptian-gold: #D4AF37;
  /* Gold of Ancient Egypt & desert sands */
  --egyptian-gold-glow: rgba(212, 175, 55, 0.28);
  --nile-turquoise: #00A896;
  /* The gorgeous Nile turquoise */
  --nile-turquoise-glow: rgba(0, 168, 150, 0.22);
  --egyptian-bronze: #A87C43;
  /* Copper & Bronze */
  --sand-glow: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}


/* ============================================================
   🏗️ القسم الثاني: الإعدادات الأساسية للصفحة
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-app);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0);
}


/* ============================================================
   🧭 القسم الثالث: شريط التنقل العلوي (Navbar)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-ar {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--orange);
}

.logo-en {
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
  color: var(--fg-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--orange-ultra);
  color: var(--orange);
}

.nav-links a.active {
  background: var(--orange-ultra);
  color: var(--orange);
  font-weight: 700;
}

/* فاصل بين الروابط الثانوية والأقسام الرئيسية */
.nav-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 8px;
  flex-shrink: 0;
}

/* أزرار الأقسام الثلاثة الرئيسية */
.nav-section-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  font-family: var(--font-display);
  transition: all var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.nav-section-btn:hover {
  border-color: var(--orange);
  background: var(--orange-ultra);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(243, 100, 24, 0.14);
}

.nav-section-btn.active {
  border-color: var(--orange);
  background: var(--orange-ultra);
}

.nsb-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nsb-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nsb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: right;
}

.nsb-text strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.nsb-text small {
  font-size: 10px;
  color: var(--ink3);
  font-weight: 500;
  white-space: nowrap;
}

.nav-section-btn:hover .nsb-text strong,
.nav-section-btn.active .nsb-text strong {
  color: var(--orange);
}

.nav-section-btn:hover .nsb-text small,
.nav-section-btn.active .nsb-text small {
  color: var(--orange);
  opacity: 0.75;
}

/* مشاريع للبيع — برتقالي مميز دائماً */
.nav-section-orange {
  border-color: rgba(243, 100, 24, 0.3);
  background: var(--orange-ultra);
}

.nav-section-orange .nsb-text strong {
  color: var(--orange);
}

.nav-section-orange .nsb-text small {
  color: rgba(243, 100, 24, 0.7);
}

.nav-section-orange:hover {
  background: var(--orange-pale);
  border-color: var(--orange);
}


.nav-user-area {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* زرار تسجيل الدخول */
.btn-login-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px 9px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--orange);
  background: var(--orange-ultra);
  color: var(--orange);
  transition: all var(--dur-fast) var(--ease-out);
  font-family: var(--font-display);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(243, 100, 24, 0.10);
}

.btn-login-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange), #D9510A);
  opacity: 0;
  transition: opacity 0.18s;
}

.btn-login-nav:hover {
  color: #fff;
  box-shadow: 0 3px 12px rgba(243, 100, 24, 0.28);
  transform: translateY(-1px);
}

.btn-login-nav:hover::after {
  opacity: 1;
}

.btn-login-nav:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(243, 100, 24, 0.18);
}

.btn-login-nav>* {
  position: relative;
  z-index: 1;
}

.btn-login-nav-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.18s;
}

.btn-login-nav:hover .btn-login-nav-ico {
  transform: scale(1.1);
}

.btn-login-sep {
  opacity: 0.35;
  font-weight: 400;
  font-size: 11px;
  margin: 0 1px;
}

.btn-login-nav:hover .btn-login-sep {
  opacity: 0.6;
}

/* زر تنظيم البازار — يظهر بجانب أيقونة الحساب للمنظمين الموثّقين */
.bz-org-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 10px;
  border-radius: 40px;
  border: 1.5px solid rgba(243, 100, 24, 0.35);
  background: var(--orange-ultra);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.bz-org-pill:hover {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(243, 100, 24, 0.30);
  transform: translateY(-1px);
}

.bz-org-pill:hover .bz-org-ico,
.bz-org-pill:hover .bz-org-title,
.bz-org-pill:hover .bz-org-sub {
  color: #fff;
}

.bz-org-ico {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.bz-org-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bz-org-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.2;
  white-space: nowrap;
}

.bz-org-sub {
  font-size: 10px;
  color: var(--ink3);
  line-height: 1.2;
  white-space: nowrap;
}

.bz-nav-user-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .bz-org-texts {
    display: none;
  }

  .bz-org-pill {
    padding: 6px 10px;
  }
}

/* الأفاتار */
.nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 5px 12px 5px 5px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all var(--dur-fast) var(--ease-out);
  user-select: none;
  position: relative;
}

.nav-avatar-btn:hover {
  border-color: var(--orange-light);
  background: var(--orange-ultra);
  box-shadow: 0 2px 12px rgba(243, 100, 24, 0.12);
}

.nav-avatar-btn.open {
  border-color: var(--orange);
  background: var(--orange-ultra);
}

.nav-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-avatar-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-avatar-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-avatar-email {
  font-size: 10px;
  color: var(--ink3);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: right;
}

.nav-avatar-caret {
  font-size: 10px;
  color: var(--ink3);
  margin-right: 2px;
  transition: transform 0.2s;
}

.nav-avatar-btn.open .nav-avatar-caret {
  transform: rotate(180deg);
}

/* القائمة المنسدلة */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  /* يفتح باتجاه اليمين (داخل الشاشة) في الواجهة العربية */
  right: auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 260px;
  max-width: min(300px, calc(100vw - 32px));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
  z-index: 300;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform-origin: top left;
}

.nav-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.nav-dropdown-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.nav-dropdown-email {
  font-size: 11px;
  color: var(--ink3);
  direction: ltr;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--orange-ultra);
  color: var(--orange);
  border: 1px solid var(--orange-pale);
}

.nav-dd-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

.nav-dd-name-row .nav-dropdown-name {
  margin-bottom: 0;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.pb-starter {
  background: rgba(156, 163, 175, .1);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, .22);
}

.pb-growth {
  background: rgba(243, 100, 24, .1);
  color: #F36418;
  border: 1px solid rgba(243, 100, 24, .3);
}

.pb-pro {
  background: rgba(234, 179, 8, .1);
  color: #D97706;
  border: 1px solid rgba(234, 179, 8, .32);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  transition: all var(--dur-instant) var(--ease-out);
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font-display);
  text-align: right;
  text-decoration: none;
  /* يمنع الخطوط التسطيرية في <a> */
  direction: rtl;
  /* يضمن اتجاه النص الصحيح دائماً */
  box-sizing: border-box;
}

.nav-dropdown-item:hover {
  background: var(--surface2);
  color: var(--ink);
}

.nav-dropdown-item.danger:hover {
  background: var(--red-light);
  color: var(--red);
}

.nav-dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* أيقونات SVG داخل عناصر القائمة المنسدلة */
.nav-dropdown-item .dd-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--fg-2);
  transition: color var(--dur-instant) var(--ease-out);
  stroke-width: 1.75;
}

.nav-dropdown-item:hover .dd-ico {
  color: var(--fg);
}

.nav-dropdown-item.danger:hover .dd-ico {
  color: var(--red);
}

/* أيقونة أصحاب المساحات — خضراء */
#dd-owner-dash-btn .dd-ico {
  color: #16a34a;
}

/* SVG icon containers (replacing emoji) */
.how-sub-icon,
.how-rev-ico,
.owner-model-ico,
.owner-vendor-ico,
.auth-feat-ico,
.pkg-addon-ico,
.pkg-pitch-icon,
.dnc-ico,
.insp-header-ico,
.insp-confirm-ico,
.confirm-icon-c {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-sub-icon svg {
  color: var(--orange);
}

.how-rev-ico svg {
  color: var(--orange);
}

.owner-model-ico svg {
  color: var(--orange);
}

.owner-vendor-ico svg {
  color: var(--orange);
}

.auth-feat-ico svg {
  color: var(--orange);
}

.pkg-addon-ico svg {
  color: var(--orange);
}

.pkg-pitch-icon svg {
  color: var(--orange);
}

.dnc-ico svg {
  color: var(--fg-2);
}

.insp-header-ico svg {
  color: var(--orange);
}

.insp-confirm-ico svg {
  color: #16a34a;
}

.confirm-icon-c svg {
  color: var(--orange);
}


/* ============================================================
   🔘 القسم الرابع: الأزرار العامة
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--fg-1);
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn:hover {
  background: var(--bg-sunken);
  border-color: var(--warm-300);
}

.btn:active {
  transform: scale(0.98);
  transition-duration: var(--dur-instant);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

.btn-primary {
  background: linear-gradient(180deg, #F47432 0%, #F36418 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.20) inset, var(--shadow-orange);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #E66520 0%, #D9510A 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 24px rgba(243, 100, 24, 0.38);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

.btn-dark-solid {
  background: var(--navy-700);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, var(--shadow-sm);
}

.btn-dark-solid:hover {
  background: var(--navy-600);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-tint {
  background: var(--orange-50);
  color: var(--orange-700);
  border-color: rgba(243, 100, 24, 0.22);
}

.btn-tint:hover {
  background: var(--orange-100);
  border-color: rgba(243, 100, 24, 0.38);
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-600) 0%, var(--navy-700) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid rgba(243, 100, 24, 0.28);
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow);
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(243, 100, 24, 0.22);
  border-color: var(--orange);
}

.view-all-arrow {
  font-size: 18px;
  color: var(--orange);
}

.view-all-count {
  font-family: var(--font-latin);
  font-size: 11px;
  background: var(--orange);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}


/* ============================================================
   📄 القسم الخامس: نظام الصفحات والظهور التدريجي
   ============================================================ */
.page {
  display: none;
}

.page.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: fadeUp 0.35s var(--ease-out);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* ── حركة الظهور التدريجي للتمرير (Scroll Reveal) ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   🦸 Hero V2 — Split layout + Orbit animation
   ============================================================ */

/* ── الإطار العام ── */
.hv2 {
  background: var(--navy-900, #0E1218);
  position: relative;
  overflow: hidden;
  padding: 80px 40px 118px;
  min-height: 86vh;
  display: flex;
  align-items: center;
}

/* خلفية الشبكة */
.hv2-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 100, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 100, 24, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* توهج الخلفية */
.hv2-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 68% 40%, rgba(243, 100, 24, 0.15), transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(0, 168, 150, 0.11), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.06), transparent 60%);
  pointer-events: none;
}

/* ── الشبكة الداخلية ── */
.hv2-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── المحتوى النصي ── */
.hv2-content {
  position: relative;
}

/* Eyebrow label */
.hv2-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-display, 'Cairo', sans-serif);
  letter-spacing: 0.05em;
  margin-bottom: 30px;
}

.hv2-eyebrow-bar {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--orange-500, #F36418);
  border-radius: 2px;
  flex-shrink: 0;
}

/* عنوان رئيسي */
.hv2-h1 {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 62px;
  font-weight: 900;
  color: #fff;
  line-height: 1.17;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}

.hv2-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--egyptian-gold) 0%, var(--orange-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.hv2-h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to left, var(--egyptian-gold), var(--orange-500), transparent);
  border-radius: 3px;
}

/* وصف */
.hv2-desc {
  font-family: var(--font-body, 'IBM Plex Sans Arabic', sans-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.52);
  max-width: 450px;
  line-height: 1.9;
  margin: 0 0 40px;
}

/* أزرار */
.hv2-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hv2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-display, 'Cairo', sans-serif);
  border: 1.5px solid rgba(212, 175, 55, 0.22);
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 32px rgba(243, 100, 24, 0.3);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.hv2-btn-primary:hover {
  transform: translateY(-3px);
  border-color: var(--egyptian-gold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 16px 48px rgba(243, 100, 24, 0.48),
    0 0 12px var(--egyptian-gold-glow);
}

.hv2-btn-arrow {
  flex-shrink: 0;
}

.hv2-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border-radius: 14px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.hv2-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

/* إحصائيات */
.hv2-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.hv2-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 0 0 28px;
}

.hv2-stat:first-child {
  padding-left: 0;
  padding-right: 0;
}

.hv2-stat-n {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.hv2-stat-l {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.hv2-stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin: 0 28px 0 0;
}

/* ── الفيجوال: نظام المدارات ── */
.hv2-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ── مخطط الأكشاك والبارتشنات ── */
.hv2-fp-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* حدود الأكشاك البرتقالية: وميض ضوئي */
.fp-brdr {
  animation: fp-border-glow 3.2s ease-in-out infinite;
  animation-delay: var(--fp-delay, 0s);
}

@keyframes fp-border-glow {

  0%,
  100% {
    stroke-opacity: 0.45;
  }

  50% {
    stroke-opacity: 1.0;
  }
}

/* حلقة النبض حول نقطة التوافر */
.fp-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: fp-pulse-ring 2.6s ease-out infinite;
  animation-delay: var(--fp-delay, 0s);
}

@keyframes fp-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* خط المسح — يجري من أعلى الخريطة لأسفلها */
.fp-scan {
  animation: fp-scan-move 6s linear infinite;
}

@keyframes fp-scan-move {
  0% {
    transform: translateY(0px);
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(324px);
    opacity: 0;
  }
}

/* بطاقات الممر الطافية */
.fp-chip {
  animation: fp-chip-float 4s ease-in-out infinite;
  animation-delay: var(--fp-delay, 0s);
}

@keyframes fp-chip-float {

  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* مؤشر التصفح — يتنقل بين الأكشاك */
.fp-cursor {
  animation: fp-cursor-move 10s ease-in-out infinite;
}

@keyframes fp-cursor-move {

  /* يبدأ على A1 (18,18) */
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  20% {
    transform: translate(0, 0);
    opacity: 1;
  }

  /* ينتقل إلى A3 (156,18) → translateX(138) */
  28% {
    transform: translate(138px, 0);
    opacity: 1;
  }

  43% {
    transform: translate(138px, 0);
    opacity: 1;
  }

  /* ينتقل إلى B2 (88,152) → translate(70,134) */
  51% {
    transform: translate(70px, 134px);
    opacity: 1;
  }

  66% {
    transform: translate(70px, 134px);
    opacity: 1;
  }

  /* ينتقل إلى B4 (224,152) → translate(206,134) */
  74% {
    transform: translate(206px, 134px);
    opacity: 1;
  }

  90% {
    transform: translate(206px, 134px);
    opacity: 1;
  }

  /* يتلاشى ويعود */
  97% {
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hv2 {
    padding: 80px 28px 118px;
  }

  .hv2-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hv2-visual {
    display: none;
  }

  .hv2-h1 {
    font-size: 44px;
  }

  .hv2-desc {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hv2 {
    padding: 78px 20px 110px;
  }

  .hv2-h1 {
    font-size: 34px;
  }

  .hv2-actions {
    gap: 10px;
  }

  .hv2-btn-primary,
  .hv2-btn-ghost {
    padding: 13px 22px;
    font-size: 14px;
  }

  .hv2-stat-n {
    font-size: 24px;
  }

  .hv2-stat-sep {
    margin: 0 18px 0 0;
  }

  .hv2-stat {
    padding-left: 18px;
  }
}

/* ============================================================
   🦸 القسم السادس: قسم الهيرو (القديم — محتفظ به للـ CSS)
   ============================================================ */
.hero {
  background: var(--navy-700);
  padding: 80px 32px 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 55% 0%, rgba(243, 100, 24, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 100, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 100, 24, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(243, 100, 24, 0.14);
  color: var(--orange-light);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(243, 100, 24, 0.28);
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2s ease infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.btn-hero {
  padding: 15px 36px;
  font-size: 16px;
  font-weight: 800;
}

.hero-stats {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 26px 44px;
  max-width: 540px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.hero-stat {
  flex: 1;
  text-align: center;
}

.hero-stat+.hero-stat {
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: var(--orange);
}

.hero-stat-lbl {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 4px;
}


/* ============================================================
   🔍 القسم السابع: صندوق البحث والفلترة
   ============================================================ */
.search-wrap {
  max-width: 980px;
  margin: -52px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.search-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 32px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.search-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* صف الفلاتر — 3 عناصر + زرار بحث */
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fg label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fg select,
.fg input {
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-sunken);
  font-size: 14px;
  color: var(--fg);
  font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease-out);
  outline: none;
  width: 100%;
  min-height: 46px;
}

.fg select:hover,
.fg input:hover {
  border-color: var(--warm-300);
}

.fg select:focus,
.fg input:focus {
  border-color: var(--orange);
  background: var(--surface);
  box-shadow: var(--ring-focus);
}

/* ── مؤشر السعر — نقطة واحدة ── */
.price-slider-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.price-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.price-slider-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* القيمة الوحيدة (الحد الأقصى) */
.price-single-val {
  font-size: 14px;
  font-weight: 900;
  color: var(--orange);
  background: var(--orange-ultra);
  border: 1.5px solid var(--orange-pale);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
  transition: all var(--dur-base) var(--ease-out);
}

/* الشريط الحامل للمؤشر */
.slider-container {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.slider-container.slider-single {
  height: 36px;
}

.slider-track {
  position: absolute;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: var(--border);
  z-index: 0;
  transition: background 0.1s;
}

/* المؤشر (input range) */
.price-slider {
  position: absolute;
  width: 100%;
  height: 5px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  pointer-events: auto;
  z-index: 1;
  cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(243, 100, 24, 0.40);
  transition: transform 0.15s, box-shadow 0.15s;
}

.price-slider::-webkit-slider-thumb:hover,
.price-slider:active::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 4px 14px rgba(243, 100, 24, 0.55);
}

.price-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 3px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(243, 100, 24, 0.40);
}

/* التلميحات أسفل الشريط */
.slider-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: var(--ink3);
  font-weight: 600;
}

.act-filter-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.act-filter-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.active-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.active-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  background: var(--orange-pale);
  color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}

.chip:hover {
  background: var(--red-light);
  color: var(--red);
}


/* ============================================================
   📦 القسم الثامن: كروت المساحات
   ============================================================ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.section-sub {
  font-size: 13px;
  color: var(--ink2);
  margin-top: 4px;
}

.result-badge {
  font-size: 13px;
  color: var(--orange);
  background: var(--orange-ultra);
  padding: 5px 16px;
  border-radius: 30px;
  font-weight: 700;
  white-space: nowrap;
}

.tabs-row {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-row::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 7px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink2);
  transition: all var(--dur-fast) var(--ease-out);
  font-family: var(--font-display);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-orange);
}

/* البانر الترويجي */
.cta-banner {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border-radius: var(--radius-xl);
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  border: 1px solid rgba(243, 100, 24, 0.18);
  gap: 20px;
}

.cta-text {
  color: #fff;
}

.cta-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
}

.cta-title span {
  color: var(--orange);
}

.cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.cta-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* الكروت */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.space-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  cursor: default;
  position: relative;
}

.space-card:hover {
  box-shadow: 0 10px 30px rgba(14, 18, 24, 0.06), 0 1px 3px rgba(14, 18, 24, 0.02);
  border-color: var(--orange-300);
  transform: translateY(-4px);
}

.card-thumb {
  height: 175px;
  position: relative;
  overflow: hidden;
  background: var(--surface2);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.space-card:hover .card-thumb img {
  transform: scale(1.04);
}

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.thumb-mall {
  background: linear-gradient(135deg, #fff4ec, #ffe0cc);
}

.thumb-club {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.thumb-school {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
}

.badge-avail {
  background: var(--green-light);
  color: #16a34a;
}

.badge-hot {
  background: var(--red-light);
  color: var(--red);
}

.badge-new {
  background: var(--orange-pale);
  color: var(--orange);
}

/* ── Trust Badges (plan tier) ── */
.card-trust-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  z-index: 2;
  font-family: var(--font-display, 'Cairo', sans-serif);
  line-height: 1.5;
  transition: transform 180ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.space-card:hover .card-trust-badge {
  transform: scale(1.05);
}

.trust-verified {
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-partner {
  background: rgba(26, 21, 5, 0.82);
  color: var(--egyptian-gold);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.28);
}

/* Badge في صفحة التفاصيل (inline مع العنوان) */
.sd-trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  font-family: var(--font-display, 'Cairo', sans-serif);
  flex-shrink: 0;
}

.sd-trust-badge.trust-verified {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.sd-trust-badge.trust-partner {
  background: rgba(212, 175, 55, 0.1);
  color: var(--egyptian-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* حد علوي للكرت Pro — إشارة بصرية خفية بملمس ذهبي مصري */
.space-card--pro {
  border-top: 3px solid var(--egyptian-gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.04);
}

.space-card--pro:hover {
  border-color: var(--egyptian-gold);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.12), 0 2px 8px rgba(14, 18, 24, 0.04);
}

.card-body {
  padding: 18px 20px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--fg-1);
}

.card-loc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-2);
  margin-bottom: 10px;
}

.card-acts {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 13px;
  min-height: 24px;
}

.act-tag {
  font-family: var(--font-body);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--fg-2);
  background: var(--bg-sunken);
  font-weight: 500;
}

.act-tag-all {
  background: var(--orange-ultra);
  color: var(--orange);
  border-color: var(--orange-pale);
  font-weight: 700;
}

.card-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.size-chip {
  font-family: var(--font-body);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  color: var(--fg-2);
  background: var(--bg-sunken);
  transition: all var(--dur-instant) var(--ease-out);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.size-chip:hover,
.size-chip.on {
  background: var(--orange-ultra);
  color: var(--orange);
  border-color: var(--orange-200);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.price-main {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: var(--orange);
  flex-shrink: 0;
}

.price-main span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--fg-2);
}

.card-tip {
  margin-top: 11px;
  padding: 10px 13px;
  border-radius: var(--radius);
  background: var(--orange-ultra);
  border: 1px solid var(--orange-pale);
  font-size: 11px;
  color: var(--ink2);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.7;
}

.tip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 5px;
  flex-shrink: 0;
}


/* ============================================================
   ❓ القسم التاسع: قسم "إزاي بيشتغل"
   ============================================================ */
.how-section {
  background: var(--navy-700);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(243, 100, 24, 0.10), transparent);
  pointer-events: none;
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.how-head {
  text-align: center;
  margin-bottom: 52px;
}

.how-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.how-title span {
  color: var(--orange);
}

.how-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.50);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-card {
  text-align: center;
  padding: 34px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: all var(--dur-base) var(--ease-out);
}

.how-card:hover {
  border-color: rgba(243, 100, 24, 0.30);
  background: rgba(243, 100, 24, 0.06);
}

.how-num {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-orange);
}

.how-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.how-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.85;
}

.how-detail-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: start;
  transition: border-color 0.2s;
}

.how-detail-card:hover {
  border-color: rgba(243, 100, 24, 0.35);
}

.how-detail-ico {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange-pale), var(--orange-ultra));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.how-detail-t {
  font-size: 16px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
}

.how-detail-s {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.85;
}

.owner-feat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.owner-feat-card:hover {
  border-color: rgba(243, 100, 24, 0.35);
}


/* ============================================================
   ⏳ القسم العاشر: حركات التحميل
   ============================================================ */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: 0.4;
    transform: scale(0.75)
  }
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

@keyframes popIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}


/* ============================================================
   📋 القسم الحادي عشر: مودال الحجز
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(7, 9, 12, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalPop var(--dur-base) var(--ease-spring);
  border: 1px solid var(--border);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 0;
}

.modal-header-inner {
  display: flex;
  align-items: center;
  gap: 13px;
}

.modal-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.modal-sub {
  font-size: 13px;
  color: var(--ink2);
  margin-top: 2px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease-out);
}

.modal-close:hover {
  background: var(--red-light);
  color: var(--red);
  border-color: var(--red);
}

.modal-close {
  min-height: unset;
  width: 34px;
  height: 34px;
}

.modal-body {
  padding: 22px 24px 30px;
}

.space-info-box {
  background: linear-gradient(135deg, var(--orange-ultra), #fff);
  border: 1.5px solid var(--orange-pale);
  border-radius: var(--radius-lg);
  padding: 15px 17px;
  margin-bottom: 22px;
}

.space-info-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}

.space-info-meta {
  font-size: 12px;
  color: var(--ink2);
}

.space-info-meta strong {
  color: var(--orange);
}

.mfg {
  margin-bottom: 15px;
}

.mfg label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.mfg input,
.mfg select,
.mfg textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-sunken);
  font-size: 14px;
  color: var(--fg);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.mfg input:focus,
.mfg select:focus,
.mfg textarea:focus {
  border-color: var(--orange);
  background: var(--surface);
  box-shadow: var(--ring-focus);
}

.mfg textarea {
  min-height: 75px;
  resize: vertical;
}

.mfg-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.act-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.act-pick-btn {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--ink2);
  cursor: pointer;
  transition: all var(--dur-instant) var(--ease-out);
  font-family: var(--font-display);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.act-pick-btn:hover {
  border-color: var(--orange-light);
  background: var(--orange-ultra);
  color: var(--orange);
}

.act-pick-btn.on {
  border-color: var(--orange);
  background: var(--orange-ultra);
  color: var(--orange);
  font-weight: 700;
}

.form-error {
  display: none;
  background: var(--red-light);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 10px;
  border: 1px solid rgba(239, 68, 68, 0.20);
}

.modal-success {
  display: none;
  text-align: center;
  padding: 52px 32px;
}

.success-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green-light);
  border: 3px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 22px;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title {
  font-size: 23px;
  font-weight: 900;
  margin-bottom: 10px;
}

.success-title span {
  color: var(--orange);
}

.success-body {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.95;
  margin-bottom: 30px;
}


/* ============================================================
   🔐 القسم الثاني عشر: صفحات تسجيل الدخول والحساب
   ============================================================ */
.auth-fullpage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* منع overflow على الموبايل */
  max-width: 100vw;
  overflow: hidden;
}

.auth-panel-left {
  background: var(--navy-700);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(243, 100, 24, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.auth-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 100, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 100, 24, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.auth-panel-left-inner {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  cursor: pointer;
}

.auth-brand-ar {
  font-size: 24px;
  font-weight: 900;
  color: var(--orange);
}

.auth-brand-en {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-headline {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.auth-headline em {
  font-style: normal;
  color: var(--orange);
}

.auth-subline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 360px;
}

.auth-feats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feat-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}

.auth-feat-row:hover {
  border-color: rgba(243, 100, 24, 0.30);
}

.auth-feat-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(243, 100, 24, 0.25), rgba(243, 100, 24, 0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.auth-feat-t {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1px;
}

.auth-feat-s {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
}

.auth-panel-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-stat-n {
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
}

.auth-stat-l {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

.auth-stat-sep {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.10);
}

.auth-panel-right {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
  /* مهم: يمنع التمدد خارج الشاشة */
  min-width: 0;
}

.auth-form-box {
  width: 100%;
  max-width: 430px;
}

.auth-form-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 5px;
}

.auth-form-sub {
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 28px;
}

.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  margin-bottom: 18px;
  min-height: 48px;
}

.btn-google-auth:hover {
  border-color: #4285F4;
  background: #F8FAFF;
  box-shadow: 0 2px 12px rgba(66, 133, 244, 0.15);
}

.btn-google-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 600;
}

.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.afg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 13px;
}

.afg label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.afg input,
.afg select {
  padding: 11px 15px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-sunken);
  font-size: 14px;
  color: var(--fg);
  font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease-out);
  outline: none;
  width: 100%;
  min-height: 46px;
}

.afg input:focus,
.afg select:focus {
  border-color: var(--orange);
  background: var(--surface);
  box-shadow: var(--ring-focus);
}

.afg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.pass-wrap-a {
  position: relative;
}

.pass-wrap-a input {
  padding-left: 42px;
}

.pass-eye {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--ink3);
  font-size: 16px;
  transition: color 0.15s;
  user-select: none;
}

.pass-eye:hover {
  color: var(--orange);
}

.btn-auth-submit {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(180deg, #F47432 0%, #F36418 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.20) inset, var(--shadow-orange);
  margin-top: 4px;
  min-height: 50px;
}

.btn-auth-submit:hover {
  background: linear-gradient(180deg, #E66520 0%, #D9510A 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(243, 100, 24, 0.40);
}

.btn-auth-submit:active {
  transform: scale(0.99);
}

.btn-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-auth-submit:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

.auth-alert {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid;
  line-height: 1.6;
}

.auth-alert-error {
  background: var(--red-light);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.25);
}

.auth-alert-success {
  background: var(--green-light);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.25);
}

.auth-alert-info {
  background: var(--orange-ultra);
  color: var(--orange);
  border-color: rgba(243, 100, 24, 0.25);
}

.auth-switch-link {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink2);
}

.auth-switch-link a {
  color: var(--orange);
  font-weight: 700;
  cursor: pointer;
}

.auth-switch-link a:hover {
  text-decoration: underline;
}

/* ── Owner Portal Button — زر صاحب المساحة ── */
.owner-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 18px;
  color: var(--ink3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.owner-divider::before,
.owner-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.owner-portal-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out) cubic-bezier(.25, .8, .25, 1);
  position: relative;
  overflow: hidden;
}

.owner-portal-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange-ultra) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.22s;
}

.owner-portal-btn:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 100, 24, 0.14);
}

.owner-portal-btn:hover::before {
  opacity: 1;
}

.owner-portal-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), #D9510A);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(243, 100, 24, 0.30);
  position: relative;
  z-index: 1;
}

.owner-portal-info {
  flex: 1;
  text-align: right;
  position: relative;
  z-index: 1;
}

.owner-portal-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}

.owner-portal-sub {
  font-size: 11px;
  color: var(--ink3);
  font-weight: 500;
}

.owner-portal-arrow {
  font-size: 18px;
  color: var(--orange);
  font-weight: 900;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}

.owner-portal-btn:hover .owner-portal-arrow {
  transform: translateX(-4px);
}

/* Badge نقطة حية */
.owner-portal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22D46E;
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 0 0 2px #fff;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(34, 212, 110, 0);
  }

  50% {
    box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(34, 212, 110, 0.25);
  }
}

/* Mobile responsive */
@media (max-width: 600px) {
  .owner-portal-btn {
    padding: 13px 14px;
    gap: 11px;
  }

  .owner-portal-ico {
    width: 40px;
    height: 40px;
    font-size: 17px;
    border-radius: 11px;
  }

  .owner-portal-title {
    font-size: 13px;
  }
}

.spin-sm {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

.confirm-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  padding: 24px;
}

.confirm-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.confirm-icon-c {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--orange-ultra);
  border: 3px solid var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 22px;
  animation: popIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-title-c {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.confirm-title-c span {
  color: var(--orange);
}


/* ============================================================
   🏠 القسم الثالث عشر: لوحة التحكم (Dashboard)
   ============================================================ */
.dash-page {
  min-height: 100vh;
  background: var(--surface2);
}

.dash-content-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px;
}

.dash-welcome-bar {
  background: var(--navy-700);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 100, 24, 0.18);
}

.dash-welcome-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(243, 100, 24, 0.14), transparent);
  pointer-events: none;
}

.dash-welcome-inner {
  position: relative;
  z-index: 1;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(243, 100, 24, 0.18);
  color: var(--orange-light);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(243, 100, 24, 0.28);
  margin-bottom: 12px;
}

.dash-hello {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.dash-hello span {
  color: var(--orange);
}

.dash-hello-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
}

.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.dash-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.dash-stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.dash-stat-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-ultra);
  border: 1.5px solid var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.dash-stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 4px;
}

.dash-stat-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
}

.dash-stat-sub {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 3px;
}

.dash-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
}

.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.dash-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.dash-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.dpf-label {
  font-size: 11px;
  color: var(--ink3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.dpf-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.dash-role-badge {
  padding: 4px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  background: var(--orange-ultra);
  color: var(--orange);
}

.dash-role-badge.owner {
  background: var(--green-light);
  color: #16a34a;
}

.edit-profile-btn {
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}

.edit-profile-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-ultra);
}

.edit-profile-form {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 16px;
}

.edit-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ef-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ef-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.ef-group input,
.ef-group select {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  min-height: 44px;
}

.ef-group input:focus,
.ef-group select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 100, 24, 0.30);
}

.edit-form-actions {
  display: flex;
  gap: 10px;
}

.btn-save-profile {
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.btn-save-profile:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-save-profile:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cancel-edit {
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-cancel-edit:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

#dash-alert {
  margin-bottom: 16px;
}

.no-bookings {
  text-align: center;
  padding: 32px 20px;
  color: var(--ink3);
  font-size: 14px;
}

.booking-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: all var(--dur-fast) var(--ease-out);
}

.booking-card:hover {
  border-color: var(--orange-light);
  box-shadow: var(--shadow);
}

.booking-card-bazaar {
  background: linear-gradient(135deg, #fff, var(--orange-ultra));
  border-color: var(--orange-pale);
}

.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

.booking-space-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.booking-space-loc {
  font-size: 12px;
  color: var(--ink2);
}

.booking-kind-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}

.booking-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pending {
  background: #fef9c3;
  color: #854d0e;
}

.status-confirmed {
  background: var(--green-light);
  color: #16a34a;
}

.status-cancelled {
  background: var(--red-light);
  color: var(--red);
}

.booking-card-details {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink2);
}

/* زرار عرض/إخفاء الحجوزات الإضافية */
.booking-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  margin-top: 8px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface2);
  color: var(--ink2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.booking-collapse-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-ultra);
}

.rating-toggle-btn {
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--orange);
  background: var(--orange-ultra);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.rating-toggle-btn:hover {
  background: var(--orange);
  color: #fff;
}

.rating-form-box {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
}

.stars-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}

.star-btn {
  font-size: 30px;
  color: #ddd;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  padding: 0;
  line-height: 1;
}

.star-btn:hover,
.star-btn.on {
  color: var(--orange);
  transform: scale(1.15);
}

.rating-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.rating-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.rating-stars {
  font-size: 18px;
}

.rating-date {
  font-size: 11px;
  color: var(--ink3);
}

.rating-space {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.rating-comment {
  font-size: 13px;
  color: var(--ink2);
  font-style: italic;
  line-height: 1.6;
}

.btn-submit-rating {
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.btn-submit-rating:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-submit-rating:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* أزرار الإجراءات القديمة (محتفظ بها للتوافق) */
.dash-actions-row {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.dash-act-btn {
  flex: 1;
  min-width: 130px;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid;
  min-height: 48px;
}

.dash-act-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}

.dash-act-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.dash-act-ghost {
  background: var(--surface2);
  color: var(--ink);
  border-color: var(--border);
}

.dash-act-ghost:hover {
  border-color: var(--ink3);
  background: var(--surface);
}

/* ── بطاقات تنقل الداشبورد ── */
.dash-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dash-nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 14px 13px;
  border-radius: 14px;
  cursor: pointer;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  transition: all .2s;
  text-align: right;
  color: var(--ink);
  font-family: var(--font-display);
  text-decoration: none;
}

.dash-nav-card:hover {
  border-color: var(--orange);
  background: var(--orange-ultra);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.dash-nav-card .dnc-ico {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.dash-nav-card .dnc-ttl {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}

.dash-nav-card .dnc-sub {
  font-size: 11px;
  color: var(--ink3);
  font-weight: 500;
}

.dash-nav-card-orange {
  background: var(--orange-ultra);
  border-color: var(--orange-pale);
}

.dash-nav-card-orange .dnc-ttl {
  color: var(--orange);
}

.dash-nav-card-orange:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.dash-nav-card-orange:hover .dnc-ttl {
  color: #fff;
}

.dash-nav-card-orange:hover .dnc-sub {
  color: rgba(255, 255, 255, .75);
}

.dash-nav-card-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.dash-nav-card-wide .dnc-ico {
  margin-bottom: 0;
  font-size: 26px;
  flex-shrink: 0;
}

.dash-nav-logout {
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(239, 68, 68, .3);
  background: transparent;
  color: var(--red);
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dash-nav-logout:hover {
  background: #FEF2F2;
  border-color: var(--red);
}

@media (max-width: 768px) {
  .dash-nav-grid {
    gap: 8px;
  }

  .dash-nav-card {
    padding: 12px;
  }

  .dash-nav-card .dnc-ico {
    font-size: 20px;
  }

  .dash-nav-card .dnc-ttl {
    font-size: 12px;
  }
}


/* ============================================================
   🛍️ القسم الرابع عشر: صفحة الماركت بليس
   ============================================================ */
.mp-header {
  background: var(--navy-700);
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.mp-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 100, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 100, 24, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.mp-header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% -10%, rgba(243, 100, 24, 0.14) 0%, transparent 65%);
}

.mp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mp-header-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.mp-header-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.mp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-active-chips {
  position: relative;
  z-index: 1;
}

.mp-sort-select {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.mp-sort-select:focus {
  border-color: rgba(243, 100, 24, 0.60);
  background: rgba(255, 255, 255, 0.12);
}

.mp-sort-select option {
  background: var(--navy-700);
}

.mp-filter-toggle {
  display: none;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  background: linear-gradient(180deg, rgba(244, 116, 50, 0.85) 0%, rgba(243, 100, 24, 0.85) 100%);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 42px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: all var(--dur-fast) var(--ease-out);
}

.mp-filter-toggle:hover {
  background: linear-gradient(180deg, #E66520 0%, #D9510A 100%);
}

.mp-active-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 10px auto 0;
  padding: 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mp-active-chips::-webkit-scrollbar {
  display: none;
}

.mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(243, 100, 24, 0.20);
  color: var(--orange-light);
  cursor: pointer;
  border: 1px solid rgba(243, 100, 24, 0.30);
  flex-shrink: 0;
}

.mp-chip:hover {
  background: rgba(239, 68, 68, 0.20);
  color: #fca5a5;
}

.mp-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: 100%;
  min-height: calc(100vh - 180px);
}

.mp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 24, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 149;
}

.mp-sidebar-overlay.open {
  display: block;
}

/* ── الـ Sidebar داكن يتماشى مع الهيدر ── */
.mp-sidebar {
  background: var(--navy-700);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-sidebar-inner {
  padding: 24px 20px;
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.mp-filter-group {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-filter-group:last-of-type {
  border-bottom: none;
}

.mp-filter-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mp-type-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-type-btn {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  cursor: pointer;
  text-align: right;
  transition: all var(--dur-fast) var(--ease-out);
  min-height: 44px;
}

.mp-type-btn:hover {
  border-color: var(--orange-light);
  background: rgba(243, 100, 24, 0.14);
  color: var(--orange-light);
}

.mp-type-btn.on {
  border-color: var(--orange);
  background: rgba(243, 100, 24, 0.20);
  color: var(--orange-light);
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(243, 100, 24, 0.20);
}

.mp-type-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 100, 24, 0.30);
}

.mp-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  outline: none;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.mp-select option {
  background: var(--navy-700);
  color: #fff;
}

.mp-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 100, 24, 0.25);
}

.mp-act-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mp-act-btn {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.mp-act-btn:hover {
  border-color: var(--orange-light);
  background: rgba(243, 100, 24, 0.14);
  color: var(--orange-light);
}

.mp-act-btn.on {
  border-color: var(--orange);
  background: rgba(243, 100, 24, 0.22);
  color: var(--orange-light);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(243, 100, 24, 0.18);
}

.mp-act-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 100, 24, 0.30);
}

.mp-clear-btn {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  margin-top: 8px;
  min-height: 44px;
}

.mp-clear-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-1px);
}

.mp-clear-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.30);
}

/* ── منطقة الكروت — خلفية بيضاء ── */
.mp-main {
  padding: 28px 24px;
  background: var(--surface);
  min-width: 0;
  /* يمنع الـ grid item من التمدد خارج حدوده */
}

.mp-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-count-badge {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-ultra);
  padding: 6px 18px;
  border-radius: 30px;
}

.mp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--surface);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-family: var(--font-display);
  transition: all var(--dur-fast) var(--ease-out);
}

.mp-back-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-ultra);
}

.mp-cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pg-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  min-height: 40px;
  min-width: 40px;
}

.pg-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-ultra);
}

.pg-btn.on {
  background: linear-gradient(180deg, #F47432 0%, #F36418 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.20) inset, var(--shadow-orange);
}

.pg-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

.pg-dots {
  padding: 8px 10px;
  color: var(--ink3);
  font-size: 13px;
}

/* مؤشر سعر الماركت بليس — نقطة واحدة */
.mp-price-single-val {
  font-size: 15px;
  font-weight: 900;
  color: var(--orange-light);
  background: rgba(243, 100, 24, 0.14);
  border: 1.5px solid rgba(243, 100, 24, 0.30);
  padding: 5px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 4px;
  transition: all var(--dur-base) var(--ease-out);
}

/* يعيد استخدام .slider-container و .slider-track و .price-slider من الهوم */


/* ============================================================
   🦶 القسم الخامس عشر: الفوتر المحسّن (site-footer)
   ============================================================ */

/* ── العنصر الرئيسي ── */
.site-footer {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.50);
  font-family: var(--font-body);
  font-size: 14px;
}

/* ── شبكة الأعمدة (Desktop: 3 columns) ── */
.sf-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 48px 44px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr;
  gap: 48px;
}

/* ── العمود الأول: الهوية ── */
.sf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.sf-logo-ar {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.sf-logo-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.sf-logo-en {
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
  line-height: 1;
}

.sf-about {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 310px;
}

.sf-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sf-path {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(243, 100, 24, 0.08);
  border: 1px solid rgba(243, 100, 24, 0.18);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}

/* ── عنوان العمود ── */
.sf-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── روابط التنقل ── */
.sf-link {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  padding: 5px 0;
  transition: color var(--dur-fast) var(--ease-out),
    padding-right var(--dur-fast) var(--ease-out);
  border-bottom: none;
}

.sf-link:hover {
  color: var(--orange);
  padding-right: 4px;
}

/* ── أزرار التواصل الاجتماعي ── */
.sf-social-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all var(--dur-fast) var(--ease-out);
  margin-bottom: 10px;
}

.sf-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sf-wa {
  background: rgba(37, 211, 102, 0.10);
  color: #25D366;
}

.sf-wa:hover {
  background: #25D366 !important;
  color: #fff !important;
  border-color: #25D366 !important;
}

.sf-fb {
  background: rgba(24, 119, 242, 0.10);
  color: #1877F2;
}

.sf-fb:hover {
  background: #1877F2 !important;
  color: #fff !important;
  border-color: #1877F2 !important;
}

/* ── فاصل العمود ── */
.sf-col-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 16px 0;
}

/* ── رابط السياسات ── */
.sf-policies-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
  font-family: var(--font-display);
  font-weight: 600;
}

.sf-policies-link:hover {
  color: var(--orange);
  border-color: rgba(243, 100, 24, 0.30);
  background: rgba(243, 100, 24, 0.06);
}

/* ── الشريط السفلي ── */
.sf-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 48px;
}

.sf-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sf-legal {
  font-family: var(--font-latin);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.20);
  letter-spacing: 0.04em;
}

.sf-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
}

/* ── Tablet (≤900px): عمودان ── */
@media (max-width: 900px) {
  .sf-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 32px 28px;
  }

  .sf-col--brand {
    grid-column: 1 / -1;
  }

  .sf-about {
    max-width: 100%;
  }

  .sf-bottom {
    padding: 16px 32px;
  }
}

/* ── Mobile (≤640px): عمود واحد مضغوط ── */
@media (max-width: 640px) {
  .sf-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 18px 20px;
  }

  .sf-col--links {
    display: none;
  }

  .sf-col--contact {
    margin-top: 18px;
  }

  .sf-col-title {
    display: none;
  }

  .sf-about {
    font-size: 12px;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .sf-paths {
    gap: 6px;
  }

  .sf-path {
    font-size: 11px;
    padding: 4px 10px;
  }

  .sf-social-btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  .sf-bottom {
    padding: 14px 18px 84px;
  }

  .sf-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}


/* ============================================================
   📱 شريط التنقل السفلي (Bottom Navigation) — محسّن
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding: 4px 6px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.10);
  gap: 2px;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 5px;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s;
  border: none;
  background: none;
  font-family: var(--font-display);
  flex: 1;
  min-height: 54px;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.bn-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  /* currentColor في SVG يرث من هنا */
  transition: transform 0.2s, color 0.18s;
}

.bn-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bn-label {
  font-size: 10px;
  font-weight: 700;
  color: #9CA3AF;
  transition: color 0.15s;
  line-height: 1.1;
}

.bn-desc {
  font-size: 8px;
  font-weight: 500;
  color: #C4C7D0;
  line-height: 1;
  transition: color 0.15s;
}

/* مؤشر العنصر النشط */
.bn-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 0 0 3px 3px;
  transition: width 0.22s cubic-bezier(.34, 1.56, .64, 1);
}

.bn-item.active::after {
  width: 28px;
}

.bn-item.active .bn-icon {
  color: var(--orange);
  transform: translateY(-1px) scale(1.12);
}

.bn-item.active .bn-label {
  color: var(--orange);
  font-weight: 800;
}

.bn-item.active .bn-desc {
  color: rgba(243, 100, 24, 0.65);
}

.bn-item:active {
  background: rgba(243, 100, 24, 0.07);
}


/* ══════════════════════════════════════════════════════════════
   🗺️ قسم المسارات الثلاثة (how-section — المسارات)
   ══════════════════════════════════════════════════════════════ */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  gap: 0;
  align-items: stretch;
}

/* البطاقة */
.path-card {
  padding: 30px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s, background 0.22s;
  /* animation */
  opacity: 0;
  transform: translateY(28px);
}

.path-card.path-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease var(--pd, 0ms), transform 0.55s ease var(--pd, 0ms), border-color 0.22s, background 0.22s;
}

.path-card:hover {
  border-color: rgba(243, 100, 24, 0.28);
  background: rgba(243, 100, 24, 0.05);
}

.path-card-hl:hover {
  border-color: rgba(243, 100, 24, 0.35);
  background: rgba(243, 100, 24, 0.08);
}

/* الشارة */
.path-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.path-pill-org {
  background: rgba(243, 100, 24, 0.15);
  color: var(--orange);
}

/* الأيقونة الكبيرة */
.path-icon-wrap {
  font-size: 34px;
  margin-bottom: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-icon-wrap svg {
  width: 38px;
  height: 38px;
  display: block;
}

/* العنوان */
.path-title {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.35;
}

/* الخطوات */
.path-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.path-steps li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.65;
  padding-right: 22px;
  position: relative;
}

.path-steps li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--orange);
  font-weight: 900;
  font-size: 12px;
  top: 2px;
}

/* زر CTA */
.path-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  min-height: 44px;
}

.path-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateX(-4px);
}

.path-btn-org {
  background: var(--orange);
  border-color: var(--orange);
}

.path-btn-org:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

/* الفاصل "أو" */
.path-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease var(--pd, 0ms);
}

.path-sep.path-in {
  opacity: 1;
}

.path-sep-or {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  width: 32px;
  height: 32px;
}


/* ============================================================
   📱 القسم السادس عشر: الاستجابة للموبايل (Responsive)
   ================================================================
   الترتيب: من الأكبر للأصغر
   1100px → 900px → 860px → 768px → 640px → 480px → 400px
   ============================================================ */

/* ── 1100px: Marketplace sidebar أصغر ── */
@media (max-width: 1100px) {
  .mp-body {
    grid-template-columns: 240px 1fr;
  }
}

/* ── 900px: Marketplace sidebar يتحول لـ drawer ── */
@media (max-width: 900px) {
  .mp-filter-toggle {
    display: flex;
  }

  .mp-body {
    grid-template-columns: 1fr;
  }

  .mp-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    min-height: 100vh;
    z-index: 150;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }

  .mp-sidebar.open {
    right: 0;
  }

  .mp-sidebar-inner {
    max-height: 100vh;
    top: 0;
    position: static;
  }
}

/* ── 860px: Auth pages — يخفي اليسار ── */
@media (max-width: 860px) {
  .auth-fullpage {
    grid-template-columns: 1fr;
  }

  .auth-panel-left {
    display: none;
  }

  .auth-panel-right {
    padding: 32px 20px;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 48px;
  }
}

/* ── تابلت: 768–1024px — الفلتر يتحول لـ 2+2 ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .search-wrap {
    padding: 0 20px;
  }

  .search-box {
    padding: 24px 26px 20px;
  }

  .filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .filter-row>.fg:nth-child(3) {
    grid-column: 1 / 2;
  }

  .filter-row>.fg:last-child {
    grid-column: 2 / 3;
  }

  .filter-row .fg:last-child .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── 768px: Navbar + Bottom Nav ── */
@media (max-width: 768px) {

  /* Path grid — تابلت وموبايل */
  .path-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    overflow: hidden;
  }

  .path-sep {
    display: none;
  }

  .path-card {
    padding: 24px 20px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .path-icon-wrap {
    margin-bottom: 10px;
  }

  .path-icon-wrap svg {
    width: 30px;
    height: 30px;
  }

  .path-pill {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 10px;
  }

  .path-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .path-steps {
    gap: 7px;
    margin-bottom: 16px;
  }

  .path-steps li {
    font-size: 12px;
    line-height: 1.5;
    padding-right: 18px;
  }

  .path-steps li::before {
    font-size: 11px;
  }

  .path-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  .how-section {
    padding: 40px 16px 52px;
    overflow: hidden;
  }

  .how-inner {
    overflow: hidden;
  }

  .how-head {
    margin-bottom: 28px;
  }

  .how-title {
    font-size: 22px;
  }

  /* Navbar */
  .nav {
    padding: 0 16px;
    height: 60px;
  }

  .logo-ar {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-avatar-name {
    max-width: 72px;
  }

  .nav-avatar-email {
    display: none;
  }

  /* القائمة المنسدلة على الموبايل */
  .nav-dropdown {
    left: 0;
    right: auto;
    min-width: min(270px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  /* إظهار Bottom Nav */
  .bottom-nav {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 500 !important;
  }

  /* إخفاء قسم المسارات الثلاثة على الموبايل */
  .how-section {
    display: none;
  }

  /* مساحة للـ Bottom Nav */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    margin-bottom: 0;
  }

  /* Marketplace */
  .mp-header {
    padding: 18px 16px;
  }

  .mp-active-chips {
    padding: 0 16px;
  }

  .mp-main {
    padding: 16px;
  }

  .mp-header-title {
    font-size: 18px;
  }

  .mp-header-sub {
    font-size: 12px;
  }

  .mp-sort-select {
    padding: 8px 10px;
    font-size: 12px;
    flex: 1;
  }

  /* Footer — handled by .sf-inner and .sf-bottom mobile media inside site-footer block */
}

/* ── 640px: الكروت عمود واحد ── */
@media (max-width: 640px) {

  /* Hero */
  .hero {
    padding: 40px 16px 80px;
  }

  .hero h1 {
    font-size: 26px;
    letter-spacing: -0.3px;
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 13px;
    margin-bottom: 28px;
    max-width: 100%;
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
    padding: 14px 20px !important;
    font-size: 14px !important;
    min-height: 48px;
  }

  .hero-pill {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 20px;
  }

  .hero-stats {
    padding: 14px 16px;
    max-width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero-stat+.hero-stat {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 10px;
  }

  .hero-stat-num {
    font-size: 20px;
  }

  .hero-stat-lbl {
    font-size: 10px;
  }

  /* صندوق البحث */
  .search-wrap {
    margin-top: -36px;
    padding: 0 10px;
  }

  .search-box {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .search-title {
    font-size: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .filter-row>.fg:last-child {
    grid-column: 1 / -1;
  }

  .filter-row .fg:last-child .btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    justify-content: center;
    border-radius: var(--radius-lg);
  }

  .fg select,
  .fg input {
    min-height: 46px;
    font-size: 14px;
  }

  .price-slider-wrap {
    margin-top: 14px;
    padding-top: 14px;
  }

  .price-slider::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }

  .slider-container {
    height: 38px;
  }

  .price-single-val {
    font-size: 13px;
    padding: 3px 12px;
  }

  .slider-hints {
    font-size: 9px;
  }

  /* الكروت */
  .section {
    padding: 24px 14px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-title {
    font-size: 18px;
  }

  .result-badge {
    font-size: 12px;
    padding: 4px 12px;
  }

  .card-thumb {
    height: 160px;
  }

  .card-body {
    padding: 14px 16px;
  }

  .card-name {
    font-size: 16px;
  }

  .card-footer .btn-primary {
    padding: 10px 18px !important;
    font-size: 13px !important;
    min-height: 44px;
    flex: 1;
  }

  .card-footer .btn-details {
    font-size: 12px !important;
    padding: 8px 12px !important;
    min-height: 44px;
    flex: 0 0 auto;
  }

  .card-footer {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .price-main {
    font-size: 18px;
  }

  .size-chip {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 34px;
  }

  .card-sizes {
    gap: 6px;
  }

  /* Tabs */
  .tabs-row {
    width: 100%;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  /* CTA Banner */
  .cta-banner {
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 14px;
    text-align: center;
  }

  .cta-title {
    font-size: 14px;
  }

  .cta-sub {
    font-size: 12px;
  }

  .cta-btns {
    flex-direction: column;
    width: 100%;
  }

  .cta-btns .btn {
    width: 100% !important;
    justify-content: center;
    min-height: 44px;
  }

  /* Marketplace cards */
  .mp-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* How section */
  .how-section {
    padding: 40px 14px;
  }

  .how-title {
    font-size: 22px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .how-card {
    padding: 22px 18px;
  }

  .how-num {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }

  .how-card h3 {
    font-size: 14px;
  }

  .how-card p {
    font-size: 12px;
  }

  .how-detail-card {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 18px 16px;
  }

  .how-detail-ico {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  /* Path grid mobile — 640px */
  .path-grid {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .path-sep {
    display: none;
  }

  .path-card {
    padding: 20px 18px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .path-icon-wrap {
    margin-bottom: 8px;
  }

  .path-icon-wrap svg {
    width: 28px;
    height: 28px;
  }

  .path-pill {
    font-size: 10px;
    padding: 2px 9px;
    margin-bottom: 8px;
  }

  .path-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .path-steps {
    gap: 6px;
    margin-bottom: 14px;
  }

  .path-steps li {
    font-size: 11.5px;
    line-height: 1.45;
    padding-right: 16px;
  }

  .path-btn {
    font-size: 12px;
    padding: 7px 13px;
  }

  /* Quick paths mobile */
  .qp-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* النافبار الصغير */
  .nav #nav-guest .btn-primary {
    display: none;
  }
}

/* ── 480px: تحسينات إضافية ── */
@media (max-width: 480px) {

  /* Hero */
  .hero {
    padding: 32px 14px 72px;
  }

  .hero h1 {
    font-size: 23px;
  }

  .hero-desc {
    font-size: 12.5px;
    margin-bottom: 22px;
  }

  .hero-pill {
    font-size: 10.5px;
    padding: 5px 11px;
    margin-bottom: 16px;
  }

  .hero-btns {
    gap: 8px;
  }

  .btn-hero {
    font-size: 13.5px !important;
    padding: 13px 18px !important;
  }

  .hero-stats {
    padding: 12px 14px;
  }

  .hero-stat-num {
    font-size: 18px;
  }

  .hero-stat-lbl {
    font-size: 9.5px;
  }

  /* Search */
  .search-wrap {
    margin-top: -28px;
    padding: 0 8px;
  }

  .search-box {
    padding: 14px 14px 12px;
  }

  .search-title {
    font-size: 9.5px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .filter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-row>.fg:last-child {
    grid-column: 1;
  }

  .fg select,
  .fg input {
    min-height: 44px;
    font-size: 13.5px;
  }

  .filter-row .fg:last-child .btn {
    min-height: 46px;
    font-size: 14px;
  }

  /* Path cards */
  .path-card {
    padding: 18px 16px;
  }

  .path-icon-wrap {
    margin-bottom: 6px;
  }

  .path-icon-wrap svg {
    width: 26px;
    height: 26px;
  }

  .path-pill {
    font-size: 9.5px;
    padding: 2px 8px;
    margin-bottom: 6px;
  }

  .path-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .path-steps {
    gap: 5px;
    margin-bottom: 12px;
  }

  .path-steps li {
    font-size: 11px;
    line-height: 1.4;
    padding-right: 14px;
  }

  .path-btn {
    font-size: 11.5px;
    padding: 8px 13px;
  }

  /* Sections */
  .section {
    padding: 20px 12px;
  }

  .section-title {
    font-size: 17px;
  }

  .how-section {
    padding: 28px 12px 36px;
  }

  .how-title {
    font-size: 20px;
  }

  /* Bottom nav */
  .bn-label {
    font-size: 9.5px;
  }

  .bn-desc {
    font-size: 7.5px;
  }

  .bn-icon {
    width: 20px;
    height: 20px;
  }

  .bn-icon svg {
    width: 20px;
    height: 20px;
  }

  .bn-item {
    min-height: 52px;
    padding: 5px 3px 4px;
  }

  /* Auth */
  .auth-panel-right {
    padding: 24px 16px;
    padding-top: 40px;
  }

  .auth-form-title {
    font-size: 20px;
  }

  .afg-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Dashboard */
  .dash-content-wrap {
    padding: 16px 12px 100px;
  }

  .dash-welcome-bar {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .dash-hello {
    font-size: 20px;
  }

  .dash-section-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .dash-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dash-profile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dash-grid-2 {
    grid-template-columns: 1fr;
  }

  .dash-actions-row {
    flex-direction: column;
  }

  .edit-form-grid {
    grid-template-columns: 1fr;
  }

  /* Modal — يطلع من الأسفل */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh;
    width: 100%;
  }

  .modal-header {
    padding: 20px 18px 0;
  }

  .modal-body {
    padding: 14px 16px 24px;
  }

  .mfg input,
  .mfg select,
  .mfg textarea {
    min-height: 44px;
  }

  .mfg-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-body .btn-primary {
    min-height: 52px !important;
    font-size: 16px !important;
  }

  /* Confirm page */
  .confirm-box {
    padding: 36px 20px;
  }
}

/* ── 400px: أصغر الشاشات ── */
@media (max-width: 400px) {
  .nav {
    padding: 0 12px;
    height: 56px;
  }

  .logo-ar {
    font-size: 15px;
  }

  .logo-en {
    font-size: 9px;
  }

  .btn-login-nav {
    padding: 7px 12px;
    font-size: 12px;
  }

  /* Hero */
  .hero {
    padding: 28px 12px 64px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero-pill {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .btn-hero {
    font-size: 13px !important;
    padding: 12px 16px !important;
  }

  .hero-stats {
    padding: 10px 12px;
    gap: 8px;
  }

  .hero-stat-num {
    font-size: 16px;
  }

  .hero-stat-lbl {
    font-size: 9px;
  }

  /* Search */
  .search-wrap {
    margin-top: -24px;
    padding: 0 6px;
  }

  .search-box {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  /* Path cards */
  .path-card {
    padding: 14px 12px;
  }

  .path-title {
    font-size: 12.5px;
  }

  .path-steps li {
    font-size: 10.5px;
    padding-right: 12px;
  }

  .path-btn {
    font-size: 11px;
    padding: 7px 11px;
  }

  /* Bottom nav */
  .bn-label {
    font-size: 9px;
  }

  .bn-desc {
    display: none;
  }

  .bn-item {
    min-height: 50px;
  }

  .bn-icon {
    width: 20px;
    height: 20px;
  }

  /* Sections */
  .section {
    padding: 18px 10px;
  }

  .section-title {
    font-size: 16px;
  }
}

/* =================================
   🔥 FINAL MOBILE & RESPONSIVE FIXES
================================ */

/* 1. منع أي overflow */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* box model ثابت */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 2. تحسين الصور والميديا */
img,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 3. تحسين تجربة اللمس */
button,
.btn {
  min-height: 44px;
  max-width: 100%;
}

input,
select {
  min-height: 44px;
}

/* 4. إصلاح عرض السكاشن */
.hero,
.section,
.search-wrap,
.mp-page,
.auth-fullpage,
.dash-page {
  width: 100%;
  max-width: 100%;
}

/* 5. الكروت (Grid) — عرض الكارد الأدنى يبقى 310px على الديسكتوب */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

/* 6. صندوق البحث — الـ padding يُحدَّد فقط في media queries */
.search-box {
  width: 100%;
  max-width: 100%;
}

/* 7. إصلاح الـ slider */
.slider-container {
  width: 100%;
  overflow: hidden;
}

/* =================================
   📱 MOBILE ONLY (تحت 768px)
================================ */
@media (max-width: 768px) {

  /* NAV */
  .nav {
    padding: 0 14px;
    height: 60px;
  }

  .nav-links {
    display: none;
  }

  /* HERO */
  .hero {
    padding: 50px 16px 80px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-stats {
    padding: 18px;
    flex-direction: column;
    gap: 12px;
  }

  .hero-stat+.hero-stat {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
  }

  /* SEARCH */
  .search-wrap {
    padding: 0 12px;
  }

  .search-box {
    padding: 18px;
  }

  /* FIX FILTER ROW (يرجع Grid مش Flex) */
  .filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* CARDS */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .space-card {
    border-radius: 14px;
  }

  /* HOW */
  .how-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* AUTH */
  .auth-fullpage {
    display: block;
  }

  .auth-panel-left {
    display: none;
  }

  .auth-panel-right {
    width: 100%;
    padding: 24px 16px;
  }

  /* DASHBOARD */
  .dash-grid-2 {
    grid-template-columns: 1fr;
  }

  /* MARKETPLACE */
  .mp-body {
    grid-template-columns: 1fr;
  }

  .mp-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 85%;
    height: 100%;
    z-index: 200;
    transition: 0.3s;
  }

  .mp-sidebar.open {
    right: 0;
  }

  .mp-filter-toggle {
    display: inline-flex;
  }

}

/* حل الشريط الأبيض تحت */

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main,
.page,
.app {
  flex: 1;
}

/* تأكد إن الفوتر في الآخر */
footer {
  margin-top: auto;
}

.page.active {
  flex: 1;
}

.page:not(.active) {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  min-height: 0 !important;
}

/* ============================================================
   🏢 صفحة تفاصيل المساحة (Space Detail Page)
   أُضيفت لدعم ميزة "المزيد من التفاصيل" والوحدات الفرعية
   ============================================================ */

/* ── الصفحة الرئيسية ── */
.sd-page {
  min-height: 100vh;
  background: var(--surface2);
  padding-bottom: 100px;
  /* مساحة للـ sticky footer */
}

/* ── قسم عام يُستخدم للفصل بين الأجزاء ── */
.sd-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 28px;
}

/* ============================================================
   رأس صفحة التفاصيل (Header)
   ============================================================ */
.sd-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

/* صف زرار الرجوع + Breadcrumb */
.sd-back-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.sd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.sd-back-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-ultra);
  transform: translateX(2px);
}

.sd-back-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

/* مسار التنقل (Breadcrumb) */
.sd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink3);
  flex-wrap: wrap;
}

.sd-bc-sep {
  color: var(--ink3);
  font-size: 10px;
}

.sd-breadcrumb span:last-child {
  font-weight: 700;
}

/* صف العنوان والسعر */
.sd-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sd-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--fg-1);
  margin-bottom: 8px;
  line-height: 1.25;
}

.sd-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink2);
}

.sd-meta-sep {
  color: var(--border);
}

/* بادج نوع المكان (مول / نادي / مدرسة) */
.sd-type-badge {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.sd-type-mall {
  background: var(--orange-ultra);
  color: var(--orange);
  border: 1px solid var(--orange-pale);
}

.sd-type-club {
  background: var(--green-light);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.sd-type-school {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

/* صندوق السعر على اليمين */
.sd-price-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: center;
  min-width: 200px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.sd-price-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--orange);
}

.sd-price-lbl {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 2px;
}

/* ============================================================
   معرض الصور (Gallery)
   ============================================================ */
.sd-gallery-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* الصورة الرئيسية الكبيرة */
.sd-main-img-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  background: var(--surface2);
  overflow: hidden;
}

.sd-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

/* عداد عدد الصور */
.sd-img-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* placeholder لو مفيش صور */
.sd-gallery-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
}

/* ============================================================
   قسم المعلومات (Info Grid)
   ============================================================ */
.sd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* كارد معلومة واحدة */
.sd-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.sd-info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--warm-300);
}

/* كارد يمتد على العرض كله */
.sd-info-full {
  grid-column: 1 / -1;
}

.sd-info-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sd-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.9;
}

/* صفوف الأحجام والأسعار */
.sd-sizes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sd-size-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface2);
  border-radius: var(--radius);
  font-size: 13px;
}

.sd-size-label {
  font-weight: 600;
  color: var(--ink);
}

.sd-size-price {
  font-weight: 800;
  color: var(--orange);
}

/* المرافق */
.sd-amenities-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sd-amenity {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--green-light);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* معلومات إضافية */
.sd-extra-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.sd-extra-row span:first-child {
  color: var(--ink3);
}

.sd-extra-row span:last-child {
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   الوحدات الفرعية (Sub-Spaces)
   ============================================================ */

/* رأس قسم الوحدات */
.sd-subspaces-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.sd-section-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

/* عداد الوحدات */
.sd-units-summary {
  display: flex;
  gap: 8px;
}

.sd-units-avail {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--green-light);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.sd-units-rented {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* شبكة الوحدات الفرعية */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* كارد الوحدة الفرعية */
.sub-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.sub-card:hover {
  border-color: var(--orange-light);
  box-shadow: 0 8px 28px rgba(243, 100, 24, 0.10);
  transform: translateY(-3px);
}

/* الوحدات المؤجّرة أو المحجوزة — تظهر باهتة */
.sub-card-blocked {
  opacity: 0.6;
  pointer-events: none;
  /* يمنع الضغط على زرار الحجز */
}

.sub-card-blocked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

/* صورة الوحدة */
.sub-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
}

.sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sub-card:hover .sub-thumb img {
  transform: scale(1.04);
}

/* placeholder لو مفيش صورة للوحدة */
.sub-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--orange);
  background: var(--orange-ultra);
  border-bottom: 1px solid var(--orange-pale);
}

/* محتوى الكارد */
.sub-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* صف رقم الوحدة + حالتها */
.sub-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.sub-unit-id {
  font-size: 18px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.sub-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.sub-meta {
  font-size: 12px;
  color: var(--ink3);
}

.sub-location {
  font-size: 12px;
  color: var(--ink2);
  font-weight: 600;
}

.sub-notes {
  font-size: 12px;
  color: var(--ink3);
  font-style: italic;
  line-height: 1.6;
}

/* حالة الوحدة (متاحة / مؤجّرة / محجوزة) */
.sub-status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.sub-status-available {
  background: var(--green-light);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.sub-status-rented {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.sub-status-reserved {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

/* الذيل: الحجم والسعر + زرار الحجز */
.sub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.sub-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.sub-spec {
  font-size: 12px;
  color: var(--ink2);
  font-weight: 600;
}

.sub-price {
  color: var(--orange) !important;
  font-weight: 800 !important;
}

/* ============================================================
   الـ Sticky Footer (زرار حجز ثابت أسفل الصفحة)
   ============================================================ */
.sd-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--warm-200);
  padding: 12px 24px;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -4px 24px rgba(14, 18, 24, 0.08);
}

.sd-book-btn {
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 800;
}

.sd-back-btn-footer {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--ink2);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.sd-back-btn-footer:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-ultra);
}

/* ============================================================
   بادج عدد الوحدات على كارد المساحة الرئيسي
   (يظهر على كروت الماركت بليس والهوم)
   ============================================================ */
.units-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(34, 197, 94, 0.88);
  color: #fff;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* ============================================================
   زرار "تفاصيل ←" على الكارد
   ============================================================ */
.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 7px 14px;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--surface2);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  min-height: 34px;
}

.btn-details:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-ultra);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(243, 100, 24, 0.15);
}

/* ============================================================
   Responsive للموبايل
   ============================================================ */
@media (max-width: 768px) {

  /* رأس الصفحة */
  .sd-name {
    font-size: 20px;
  }

  .sd-title-row {
    flex-direction: column;
  }

  .sd-price-box {
    width: 100%;
    min-width: unset;
  }

  /* معرض الصور */
  .sd-main-img-wrap {
    height: 240px;
  }

  .sd-thumb-item {
    height: 68px;
  }

  /* المعلومات */
  .sd-info-grid {
    grid-template-columns: 1fr;
  }

  /* الوحدات الفرعية */
  .sub-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sub-thumb {
    height: 140px;
  }

  .sd-section {
    padding: 0 14px 20px;
  }

  .sd-header-inner {
    padding: 14px 14px 0;
  }

  /* الـ Sticky Footer */
  .sd-sticky-footer {
    flex-direction: column;
    padding: 10px 16px;
    gap: 8px;
  }

  .sd-book-btn,
  .sd-back-btn-footer {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sd-name {
    font-size: 18px;
  }

  .sd-main-img-wrap {
    height: 200px;
  }

  .sd-thumbs-row {
    display: none;
  }

  /* الصور المصغّرة تختفي على الشاشات الصغيرة جداً */
  .sd-section-title {
    font-size: 16px;
  }
}

/* ============================================================
   🎠 نظام الـ Slider للصور — أضف هذا الكود في نهاية style.css
   ============================================================
   يشمل:
   ① Slider الكروت (card-slider)  — يظهر على كروت الهوم والماركت
   ② Slider صفحة التفاصيل (sd-slider) — يظهر في صفحة "تفاصيل ←"
   ============================================================ */


/* ════════════════════════════════════════════════════════════
   ① Slider الكروت  (cs = card slider)
   ════════════════════════════════════════════════════════════ */

/* الحاوية الرئيسية — تحل محل .card-thumb القديمة */
.card-slider {
  position: relative;
  width: 100%;
  height: 175px;
  /* نفس ارتفاع .card-thumb */
  overflow: hidden;
  background: var(--surface2);
  border-radius: 0;
  /* الـ border-radius موجود في .space-card */
  user-select: none;
  -webkit-user-select: none;
}

/* شريط الشرائح — يحتوي كل الصور فوق بعض */
.cs-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* كل شريحة صورة */
.cs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.cs-slide.cs-active {
  opacity: 1;
  pointer-events: auto;
}

.cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── الأسهم على الكروت ── */
.cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  /* مخفية افتراضياً */
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
}

.card-slider:hover .cs-arrow,
.card-slider:focus-within .cs-arrow {
  opacity: 1;
  /* تظهر عند hover */
}

.cs-arrow:hover {
  background: rgba(243, 100, 24, 0.85);
}

.cs-arrow-r {
  right: 8px;
}

/* السهم الأيمن (للسابق في RTL) */
.cs-arrow-l {
  left: 8px;
}

/* السهم الأيسر (للتالي في RTL) */

/* ── الـ dots على الكروت ── */
.cs-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}

.cs-dot.cs-dot-on {
  background: var(--orange);
  transform: scale(1.35);
}

/* ── عداد الصور على الكروت ── */
.cs-count {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.50);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  font-family: var(--font-display);
}

/* على الموبايل: الأسهم تظهر دائماً (مش بس على hover) */
@media (max-width: 768px) {
  .cs-arrow {
    opacity: 0.75;
  }

  .cs-arrow-r {
    right: 6px;
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .cs-arrow-l {
    left: 6px;
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}


/* ════════════════════════════════════════════════════════════
   ② Slider صفحة التفاصيل  (sd-slider)
   ════════════════════════════════════════════════════════════ */

/* الحاوية الرئيسية */
.sd-slider {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--surface2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  user-select: none;
  -webkit-user-select: none;
}

/* شريط الشرائح */
.sd-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* كل شريحة */
.sd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.sd-slide.sd-slide-active {
  opacity: 1;
  pointer-events: auto;
}

.sd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── الأسهم في صفحة التفاصيل ── */
.sd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.40);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all var(--dur-base) var(--ease-out);
  padding: 0;
  font-family: Arial, sans-serif;
}

.sd-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-50%) scale(1.1);
}

.sd-arrow-next {
  right: 16px;
}

/* التالي */
.sd-arrow-prev {
  left: 16px;
}

/* السابق */

/* ── عداد الصور 1/5 ── */
.sd-counter {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  z-index: 10;
  pointer-events: none;
  font-family: var(--font-display);
}

/* ── الـ dots في صفحة التفاصيل ── */
.sd-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.sd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.50);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  border: none;
  padding: 0;
}

.sd-dot.sd-dot-on {
  background: var(--orange);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(243, 100, 24, 0.6);
}

/* ── صف الـ thumbnails أسفل الـ Slider ── */
.sd-thumbs-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface2);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border: 1px solid var(--border);
  border-top: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sd-thumbs-row::-webkit-scrollbar {
  display: none;
}

/* كل thumbnail */
.sd-thumb-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
  background: var(--navy-700);
}

.sd-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.sd-thumb-item:hover {
  border-color: var(--orange-light);
}

.sd-thumb-item:hover img {
  transform: scale(1.06);
}

.sd-thumb-item.sd-thumb-on {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(243, 100, 24, 0.25);
}

/* ── placeholder لو مفيش صور ── */
.sd-gallery-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
}


/* ════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════ */

/* الموبايل — تفاصيل المساحة */
@media (max-width: 768px) {
  .sd-slider {
    height: 260px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .sd-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .sd-arrow-next {
    right: 10px;
  }

  .sd-arrow-prev {
    left: 10px;
  }

  .sd-thumb-item {
    width: 64px;
    height: 48px;
  }

  .sd-counter {
    font-size: 11px;
    padding: 3px 10px;
  }
}

@media (max-width: 480px) {
  .sd-slider {
    height: 210px;
  }

  .sd-dots {
    gap: 5px;
    bottom: 10px;
  }

  .sd-dot {
    width: 7px;
    height: 7px;
  }

  .sd-thumbs-row {
    padding: 4px;
    gap: 4px;
  }

  .sd-thumb-item {
    width: 52px;
    height: 40px;
  }

  /* الكروت على الشاشات الصغيرة — ارتفاع أقل */
  .card-slider {
    height: 155px;
  }
}


/* ============================================================
   ♿ إمكانية الوصول — تقليل الحركة
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .space-card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .btn-auth-submit:hover {
    transform: none;
  }

  .dash-stat-card:hover {
    transform: none;
  }

  .btn-view-all:hover {
    transform: none;
  }
}


/* ============================================================
   🎪 نظام البازارات — Bazaar System
   ============================================================ */

/* ── قسم البازارات في الهوم ── */

.bz-home-section {
  position: relative;
  background: transparent;
  padding: 0 24px;
  margin: -54px auto 0;
  overflow: visible;
  z-index: 12;
}

.bz-home-section-bg {
  display: none;
}

.bz-home-section-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.13), 0 3px 10px rgba(0, 0, 0, 0.04);
}

.bz-home-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.bz-home-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-ultra);
  color: var(--orange);
  border: 1px solid var(--orange-pale);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 13px;
  margin-bottom: 8px;
}

.bz-home-sec-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
}

.bz-home-sec-title em {
  color: var(--orange);
  font-style: normal;
}

.bz-home-sec-sub {
  font-size: 13px;
  color: var(--ink2);
}

.bz-home-see-all {
  background: linear-gradient(180deg, #F47432 0%, #F36418 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.20) inset, 0 4px 18px rgba(243, 100, 24, 0.26);
  border: none;
  color: #fff;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

.bz-home-see-all:hover {
  background: linear-gradient(180deg, #F47432 0%, #e05a14 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.20) inset, 0 4px 18px rgba(243, 100, 24, 0.38);
  transform: translateY(-1px);
}

.bz-home-see-all:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

/* ── قسم القسم البازارات: رأس جديد ── */
.qp-bz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 12px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ══════════════════════════════════════════════════════════════
   ⚡ المسارات السريعة الثلاثة (فوق الفلتر)
   ══════════════════════════════════════════════════════════════ */
/* بطاقة شرح البازارات */
.bz-home-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.bz-home-intro-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--orange-ultra);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.bz-home-intro-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bz-home-intro-text {
  flex: 1;
  min-width: 0;
}

.bz-home-intro-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.bz-home-intro-text p {
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.65;
  margin: 0;
}

.qp-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.qp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-display);
  transition: all var(--dur-fast) var(--ease-out);
  text-align: right;
}

.qp-card:hover {
  border-color: var(--orange);
  background: var(--orange-ultra);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 100, 24, 0.10);
}

.qp-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.qp-info {
  flex: 1;
  min-width: 0;
}

.qp-info strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 3px;
}

.qp-info span {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.4;
  display: block;
}

.qp-info em {
  font-style: normal;
  color: var(--orange);
  font-weight: 700;
}

.qp-card:hover .qp-info strong {
  color: var(--orange);
}

.qp-arr {
  font-size: 16px;
  color: var(--ink3);
  flex-shrink: 0;
  transition: transform 0.18s;
}

.qp-card:hover .qp-arr {
  color: var(--orange);
  transform: translateX(-3px);
}

/* مشاريع للبيع */
.qp-market {
  border-color: rgba(243, 100, 24, 0.25);
  background: var(--orange-ultra);
}

.qp-market .qp-info strong {
  color: var(--orange);
}

.qp-market .qp-info span {
  color: rgba(243, 100, 24, 0.65);
}

.qp-market .qp-arr {
  color: var(--orange);
}

.qp-market:hover {
  background: var(--orange-pale);
  border-color: var(--orange);
}


/* شريط الأفقي للكروت */
.bz-home-scroll {
  display: block;
  overflow: visible;
  padding-bottom: 0;
}

.bz-home-scroll::-webkit-scrollbar {
  display: none;
}

/* الكارد المصغّر في الهوم — على الخلفية الدافئة */
.bz-mini-card {
  width: 100%;
  background: linear-gradient(135deg, #fff, var(--orange-ultra));
  border: 1px solid var(--orange-pale);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  display: grid;
  grid-template-columns: 184px 1fr;
  min-height: 122px;
  box-shadow: none;
}

.bz-mini-card:hover {
  border-color: var(--orange);
  box-shadow: 0 10px 26px rgba(243, 100, 24, 0.14);
  transform: translateY(-2px);
  background: #fff;
}

.bz-mini-img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 122px;
  overflow: hidden;
  background: var(--surface2);
}

.bz-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bz-mini-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, rgba(243, 100, 24, 0.22), rgba(232, 94, 0, 0.12));
}

.bz-mini-date {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
}

.bz-mini-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.bz-mini-kicker {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 4px;
}

.bz-mini-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bz-mini-loc {
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bz-mini-meta {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
}

.bz-mini-meta span {
  background: var(--orange-ultra);
  border: 1px solid var(--orange-pale);
  border-radius: 999px;
  padding: 3px 10px;
}

.bz-mini-meta .is-available {
  color: var(--green);
  background: var(--green-light);
  border-color: rgba(34, 197, 94, 0.20);
}

.bz-mini-meta .is-soldout {
  color: var(--red);
  background: var(--red-light);
  border-color: rgba(239, 68, 68, 0.20);
}

.bz-home-empty {
  width: 100%;
  padding: 20px;
  color: var(--ink3);
  font-size: 13px;
  text-align: center;
}

.bz-home-section+.search-wrap {
  margin-top: 22px;
}


/* ── هيرو صفحة البازارات ── */

.bz-page {
  background: var(--navy-700);
  min-height: 100vh;
}

.bz-market-hero {
  position: relative;
  background: var(--navy-700);
  padding: 44px 28px 36px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bz-market-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(243, 100, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 100, 24, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse 55% 70% at 80% 20%, rgba(243, 100, 24, 0.14), transparent 58%);
  background-size: 48px 48px, 48px 48px, auto;
  pointer-events: none;
}

.bz-market-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bz-market-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 100, 24, 0.14);
  color: var(--orange-light);
  border: 1px solid rgba(243, 100, 24, 0.28);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  margin-bottom: 14px;
}

.bz-market-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 8px;
  line-height: 1.3;
}

.bz-market-hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-body);
}

/* عداد النتائج */
.bz-result-badge {
  display: inline-flex;
  align-items: center;
  background: var(--orange-ultra);
  color: var(--orange);
  border: 1px solid var(--orange-pale);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
}


/* ── شريط الفلاتر الأفقي (بدل السايدبار) ── */

.bz-filter-bar {
  background: var(--navy-700);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 28px 22px;
  box-shadow: none;
}

.bz-filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.bz-fbar-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 130px;
}

.bz-fbar-price-group {
  min-width: 180px;
  flex: 1;
  max-width: 240px;
}

.bz-fbar-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 163, 102, 0.80);
  letter-spacing: 0.3px;
}

.bz-fbar-price-val {
  color: #F36418;
  font-weight: 800;
}

.bz-fbar-select {
  background: rgba(243, 100, 24, 0.08);
  border: 1.5px solid rgba(243, 100, 24, 0.22);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.bz-fbar-select:focus,
.bz-fbar-select:hover {
  border-color: var(--orange);
}

.bz-fbar-select:focus {
  box-shadow: 0 0 0 3px rgba(243, 100, 24, 0.25);
}

.bz-fbar-select option {
  background: #2E1100;
  color: #fff;
}

.bz-fbar-clear {
  background: transparent;
  border: 1.5px solid rgba(243, 100, 24, 0.35);
  color: #FFA366;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  align-self: flex-end;
}

.bz-fbar-clear:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 3px 14px rgba(243, 100, 24, 0.30);
}

/* منطقة الشبكة — خلفية بيضاء */
.bz-page-body {
  max-width: 100%;
  padding: 28px 28px 60px;
  background: var(--surface);
}

.bz-page-body-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.bz-page-top {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}


/* ── شبكة كروت البازارات في pg-bazaars ── */

/* ══════════════════════════════════════════
   🎪 BAZAAR CARDS — Horizontal Event Style
══════════════════════════════════════════ */

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

/* الكارد الأفقي */
.bz-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
  position: relative;
}

.bz-card:hover {
  border-color: rgba(243, 100, 24, 0.55);
  box-shadow: 0 10px 36px rgba(243, 100, 24, 0.14);
  transform: translateY(-3px);
}

.bz-card.soldout-card {
  opacity: .88;
}

/* ── الصورة (يمين) ── */
.bz-card-img {
  position: relative;
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface2);
}

.bz-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s;
  display: block;
}

.bz-card:hover .bz-card-img img {
  transform: scale(1.06);
}

.bz-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  background: linear-gradient(160deg, #1E1035, #2D1458);
}

/* شارة التاريخ فوق الصورة */
.bz-date-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 100%);
  padding: 28px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bz-date-box-day {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.bz-date-box-month {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  margin-top: 2px;
}

/* شارة الفئة فوق الصورة */
.bz-card-cat-pill {
  position: absolute;
  top: 10px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
}

.bz-card-cat-pill span {
  background: rgba(243, 100, 24, .85);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 0 0 10px 10px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* شارة مكتمل */
.bz-soldout-badge {
  position: absolute;
  top: 10px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, .4);
}

/* ── المحتوى (يسار) ── */
.bz-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  gap: 6px;
}

/* رأس الكارد */
.bz-card-name {
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bz-card-location {
  font-size: 12px;
  color: var(--ink2);
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* تاريخ + وقت */
.bz-card-datetime {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink2);
  font-weight: 600;
}

.bz-card-datetime span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* وصف مختصر */
.bz-card-desc {
  font-size: 12px;
  color: var(--ink3);
  font-family: var(--font-body);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── شريط المنظّم ── */
.bz-card-organizer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface2);
  border-radius: 10px;
  margin-top: 2px;
}

.bz-org-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #F47432 0%, #F36418 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.bz-org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bz-org-info {
  flex: 1;
  min-width: 0;
}

.bz-org-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bz-org-sub {
  font-size: 10px;
  color: var(--ink3);
  margin-top: 1px;
}

.bz-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.30);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── ذيل الكارد ── */
.bz-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.bz-price-tag {
  font-size: 15px;
  font-weight: 900;
  color: var(--orange);
}

.bz-slots-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin-top: 2px;
}

.bz-slots-tag.sold-out {
  color: var(--red);
}

/* الإشعار العلوي للبازار (شارة موثّق) */
.bz-verified-org-bar {
  position: absolute;
  top: 0;
  left: 200px;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F47432, #F36418);
  border-radius: 0 18px 0 0;
}

/* Overlay قديم — متبقي للتوافقية */
.bz-card-overlay {
  display: none;
}

.bz-price-overlay,
.bz-date-badge {
  display: none;
}

.bz-card-body {
  display: none;
}

.bz-card-meta-row {
  display: none;
}

.bz-card-date-txt {
  display: none;
}

.bz-card-time {
  display: none;
}


/* ── خريطة الأماكن البصرية (Slot Map) ── */

.bz-slotmap-scroll {
  overflow-x: auto;
  padding: 4px 0 8px;
}

/* الـ grid التلقائي (بدون row/col) */
.bz-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  justify-content: center;
  min-height: 80px;
}

/* الـ grid بـ row/col محدد */
.bz-slot-grid-fixed {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}

/* الخلية الواحدة */
.bz-slot {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: not-allowed;
  user-select: none;
  line-height: 1;
}

/* متاح */
.bz-slot.available {
  background: rgba(34, 197, 94, 0.14);
  border: 1.5px solid rgba(34, 197, 94, 0.55);
  color: #16a34a;
  cursor: pointer;
}

.bz-slot.available:hover {
  background: rgba(34, 197, 94, 0.28);
  border-color: #16a34a;
  transform: scale(1.12);
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.25);
}

/* محجوز */
.bz-slot.booked {
  background: rgba(156, 163, 175, 0.16);
  border: 1.5px solid rgba(156, 163, 175, 0.32);
  color: var(--ink3);
}

/* مختار */
.bz-slot.selected {
  background: rgba(243, 100, 24, 0.16);
  border: 2px solid var(--orange);
  color: var(--orange);
  cursor: pointer;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(243, 100, 24, 0.30);
}

/* placeholder في الـ grid المحدد */
.bz-slot-empty {
  background: transparent !important;
  border: none !important;
  cursor: default;
  pointer-events: none;
}

/* مفتاح الألوان */
.bz-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bz-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

.bz-legend-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
}

.bz-legend-dot.available {
  background: rgba(34, 197, 94, 0.16);
  border: 1.5px solid rgba(34, 197, 94, 0.55);
}

.bz-legend-dot.booked {
  background: rgba(156, 163, 175, 0.18);
  border: 1.5px solid rgba(156, 163, 175, 0.35);
}

.bz-legend-dot.selected {
  background: rgba(243, 100, 24, 0.16);
  border: 1.5px solid var(--orange);
}

.bz-legend-dot.featured {
  background: rgba(250, 200, 30, 0.22);
  border: 1.5px solid rgba(245, 200, 66, 0.75);
  position: relative;
}

.bz-legend-dot.featured::after {
  content: '★';
  position: absolute;
  top: -7px;
  right: 50%;
  transform: translateX(50%);
  font-size: 9px;
  color: #f5c842;
  line-height: 1;
}

/* ── أنيميشن ظهور الخريطة ── */
@keyframes slotGridIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes slotEntrance {
  from {
    opacity: 0;
    transform: scale(0.65);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slotPop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.4);
  }

  70% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1.15);
  }
}

@keyframes featuredGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 200, 66, 0);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(245, 200, 66, 0.22), 0 0 14px rgba(245, 200, 66, 0.18);
  }
}

@keyframes featuredStarSpin {
  0% {
    transform: translateX(50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translateX(50%) rotate(20deg) scale(1.25);
  }

  100% {
    transform: translateX(50%) rotate(0deg) scale(1);
  }
}

.bz-slot-grid,
.bz-slot-grid-fixed {
  animation: slotGridIn 0.38s cubic-bezier(.22, .68, 0, 1.2) both;
}

/* ── مكان مميز (Featured) ── */
.bz-slot.featured {
  background: rgba(250, 200, 30, 0.16);
  border: 1.5px solid rgba(245, 200, 66, 0.68);
  color: #b87800;
  cursor: pointer;
  position: relative;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  animation: slotEntrance 0.25s ease both, featuredGlow 2.6s ease-in-out 0.3s infinite;
}

.bz-slot.featured:hover {
  background: rgba(250, 200, 30, 0.32);
  border-color: #f5c842;
  transform: scale(1.18);
}

.bz-slot.featured.booked {
  animation: slotEntrance 0.25s ease both;
  opacity: 0.55;
  cursor: not-allowed;
}

.bz-slot.featured.selected {
  animation: slotEntrance 0.25s ease both;
}

/* نجمة فوق المكان المميز */
.bz-slot.featured::before {
  content: '★';
  position: absolute;
  top: -9px;
  right: 50%;
  transform: translateX(50%);
  font-size: 10px;
  color: #f5c842;
  background: var(--surface, #1a1a1a);
  border: 1px solid rgba(245, 200, 66, 0.5);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
  text-align: center;
  z-index: 3;
  animation: featuredStarSpin 2.6s ease-in-out 0.3s infinite;
}

/* tooltip "مكان مميز" */
.bz-featured-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(18, 12, 0, 0.93);
  border: 1px solid rgba(245, 200, 66, 0.45);
  color: #f5c842;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
  font-family: var(--font-display);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

.bz-featured-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(245, 200, 66, 0.45);
}

.bz-slot.featured:hover .bz-featured-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── بانل الحجز (يظهر عند اختيار مكان) ── */

.bz-booking-panel {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 2.5px solid var(--orange);
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.11);
  max-height: 80vh;
  overflow-y: auto;
}

.bz-bp-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 26px 28px;
}

.bz-bp-success {
  text-align: center;
  padding: 40px 26px;
}

.bz-bp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.bz-bp-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.bz-bp-slot-info {
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  margin-top: 5px;
}

.bz-bp-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface2);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease-out);
  font-family: Arial, sans-serif;
}

.bz-bp-close:hover {
  background: var(--red-light);
  color: var(--red);
}

/* حقول الفورم داخل البانل */
.bz-bp-form .afg {
  margin-bottom: 12px;
}

.bz-bp-form .afg:last-of-type {
  margin-bottom: 0;
}

.bz-bp-form textarea:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: var(--ring-focus);
  outline: none;
}


/* ── زر CTA البازارات في الهوم ── */

.bz-home-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.bz-home-cta-btn {
  font-size: 15px !important;
  padding: 14px 36px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 6px 24px rgba(243, 100, 24, 0.35) !important;
}


/* ── صندوق التاريخ على الكارد ── */

.bz-date-box {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  min-width: 44px;
  backdrop-filter: blur(6px);
}

.bz-date-box-month {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1;
}

.bz-date-box-day {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}


/* ── badge الفئة ── */

.bz-category-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(243, 100, 24, 0.12);
  color: #FFA366;
  border: 1px solid rgba(243, 100, 24, 0.28);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  white-space: nowrap;
}

.bz-detail-cat-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(243, 100, 24, 0.14);
  color: #FFA366;
  border: 1px solid rgba(243, 100, 24, 0.32);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  margin-bottom: 8px;
}


/* ── صف الميتا داخل الكارد ── */

.bz-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.bz-card-date-txt {
  font-size: 11px;
  color: var(--ink2);
  font-weight: 600;
}

.bz-card-time {
  font-size: 11px;
  color: var(--ink3);
  font-weight: 600;
  margin-bottom: 2px;
}

.bz-price-tag {
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
}


/* ── زر Google Maps في التفاصيل ── */

.bz-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 100, 24, 0.10);
  border: 1.5px solid rgba(243, 100, 24, 0.30);
  color: #FFA366;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
  align-self: flex-start;
}

.bz-maps-btn:hover {
  background: var(--orange);
  color: #fff;
}


/* ── prev/next في صفحة تفاصيل البازار ── */

.bz-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.bz-detail-nav-btn {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--ink2);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.bz-detail-nav-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.bz-detail-nav-count {
  font-size: 12px;
  color: var(--ink3);
  font-weight: 600;
  white-space: nowrap;
}


/* ── شريط البحث الرئيسي في pg-bazaars ── */

.bz-search-bar {
  background: var(--navy-700);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 28px 18px;
}

.bz-search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bz-search-input-wrap {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(243, 100, 24, 0.07);
  border: 1.5px solid rgba(243, 100, 24, 0.22);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  transition: border-color 0.15s;
}

.bz-search-input-wrap:focus-within {
  border-color: var(--orange);
}

.bz-search-ico {
  font-size: 16px;
  flex-shrink: 0;
}

.bz-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 12px 0;
}

.bz-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.bz-find-btn {
  background: linear-gradient(180deg, #F47432 0%, #F36418 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.20) inset, 0 4px 16px rgba(243, 100, 24, 0.30);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

.bz-find-btn:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.20) inset, 0 6px 20px rgba(243, 100, 24, 0.42);
  transform: translateY(-1px);
}

.bz-find-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}


/* ── شريط الـ Chips + التنقل الزمني ── */

.bz-chips-bar {
  background: var(--navy-700);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bz-chips-bar::-webkit-scrollbar {
  display: none;
}

.bz-chips-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.bz-chips-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  margin: 0 4px;
}

.bz-chips-list {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

/* الـ chip الواحد */
.bz-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.bz-chip:hover {
  border-color: var(--orange);
  color: var(--orange-light);
  background: rgba(243, 100, 24, 0.10);
}

.bz-chip.active {
  background: rgba(243, 100, 24, 0.16);
  border-color: var(--orange);
  color: var(--orange-light);
  box-shadow: 0 0 0 2px rgba(243, 100, 24, 0.14);
}


/* ── التنقل الزمني ── */

.bz-time-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bz-time-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.70);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.bz-time-btn:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

.bz-time-btn.bz-time-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}


/* ── Responsive ── */

@media (max-width: 768px) {
  .bz-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* كارت الموبايل — عمودي */
  .bz-card {
    flex-direction: column;
    min-height: unset;
  }

  .bz-card-img {
    width: 100%;
    min-width: unset;
    height: 180px;
  }

  .bz-verified-org-bar {
    left: 0;
    top: 180px;
    border-radius: 0;
  }

  .bz-card-name {
    font-size: 15px;
  }

  .bz-slot-grid,
  .bz-slot-grid-fixed {
    padding: 14px;
    gap: 6px;
  }

  .bz-slot {
    width: 36px;
    height: 36px;
    font-size: 10px;
    border-radius: 7px;
  }

  .bz-slot.featured::before {
    top: -8px;
    width: 14px;
    height: 14px;
    font-size: 9px;
    line-height: 14px;
  }

  .bz-bp-inner {
    padding: 16px;
  }

  .bz-bp-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .bz-home-section {
    margin-top: -34px;
    padding: 0 12px;
  }

  .bz-home-section-inner {
    padding: 14px;
    border-radius: var(--radius-lg);
  }

  .bz-home-intro {
    flex-direction: column;
    gap: 10px;
  }

  .bz-home-intro-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .bz-home-sec-title {
    font-size: 22px;
  }

  .bz-home-sec-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bz-home-see-all {
    align-self: flex-start;
  }

  .bz-mini-card {
    width: 100%;
    grid-template-columns: 132px 1fr;
    min-height: 118px;
  }

  .bz-mini-img {
    height: 100%;
    min-height: 118px;
  }

  .bz-mini-body {
    padding: 12px 14px;
  }

  .bz-mini-name {
    font-size: 16px;
  }

  .bz-mini-loc {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .bz-market-hero {
    padding: 32px 16px 28px;
  }

  .bz-market-hero-title {
    font-size: 22px;
  }

  .bz-search-bar {
    padding: 14px 16px;
  }

  .bz-chips-bar {
    padding: 10px 16px;
  }

  .bz-filter-bar {
    padding: 16px;
  }

  .bz-filter-bar-inner {
    gap: 10px;
  }

  .bz-fbar-group {
    min-width: 0;
    flex: 1 1 130px;
  }

  .bz-fbar-price-group {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .bz-page-body {
    padding: 20px 16px 60px;
  }

  .bz-find-btn {
    width: 100%;
    justify-content: center;
  }

  .bz-search-input-wrap {
    min-width: 0;
  }

  .bz-detail-nav-btn {
    max-width: 130px;
    font-size: 11px;
  }

  .bz-home-cta-btn {
    font-size: 13px !important;
    padding: 12px 22px !important;
  }
}

@media (max-width: 480px) {
  .bz-slot {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }

  .bz-legend {
    gap: 10px;
  }

  .bz-mini-card {
    grid-template-columns: 1fr;
  }

  .bz-mini-img {
    min-height: 150px;
  }

  .bz-home-see-all {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* ============================================================
   🔗 أزرار المشاركة (Share Buttons)
   ============================================================ */

/* زرار المشاركة العائم داخل card-thumb (أعلى اليسار) */
.share-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, transform 0.15s;
  z-index: 3;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  flex-shrink: 0;
}

.share-btn:hover {
  background: rgba(243, 100, 24, 0.88);
  transform: scale(1.12);
}

.share-btn svg {
  pointer-events: none;
}

/* زرار المشاركة المضمّن (داخل footer الكروت والوحدات) */
.share-btn-inline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink3);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
  flex-shrink: 0;
}

.share-btn-inline:hover {
  background: var(--orange-ultra);
  border-color: var(--orange-pale);
  color: var(--orange);
  transform: scale(1.1);
}

.share-btn-inline svg {
  pointer-events: none;
}


/* ============================================================
   🏬 صفحة أصحاب المساحات — تصميم معدّل
   ============================================================ */

/* ══════════════════════════════════════════════════════════════════
   صفحة "عندك مساحة؟" — تصميم جديد .owner-page-*
   ══════════════════════════════════════════════════════════════════ */

/* Wrapper */
.owner-page-wrap {
  direction: rtl;
  background: var(--navy-900, #0E1218);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.owner-page-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 45% at 30% 0%, rgba(243, 100, 24, 0.13), transparent);
  pointer-events: none;
  z-index: 0;
}

.owner-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 1;
}

/* Hero */
.owner-hero-section {
  text-align: center;
  margin-bottom: 44px;
}

.owner-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(243, 100, 24, 0.14);
  color: var(--orange-light, #FF8C42);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(243, 100, 24, 0.28);
  margin-bottom: 22px;
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.owner-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500, #F36418);
  animation: blink 2s ease infinite;
  flex-shrink: 0;
}

.owner-hero-h1 {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 14px;
}

.owner-hero-h1 span {
  color: var(--orange-500, #F36418);
}

.owner-hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.52);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.85;
}

/* Model banner */
.owner-model-bar {
  display: flex;
  align-items: center;
  background: #1A1E25;
  border: 1px solid #25292F;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 40px;
  gap: 0;
}

.owner-model-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.owner-model-ico {
  font-size: 24px;
  flex-shrink: 0;
}

.owner-model-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display, 'Cairo', sans-serif);
  margin-bottom: 3px;
}

.owner-model-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.owner-model-sep {
  width: 1px;
  height: 44px;
  background: #25292F;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .owner-model-bar {
    flex-direction: column;
    gap: 16px;
  }

  .owner-model-sep {
    width: 60px;
    height: 1px;
  }

  .owner-model-item {
    padding: 0;
  }
}

/* Paths grid */
.owner-paths-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

/* Path card */
.owner-path-card {
  background: #14171D;
  border: 1px solid #25292F;
  border-radius: 24px;
  padding: 28px 26px;
}

.owner-path--spaces {
  border-top: 3px solid rgba(243, 100, 24, 0.6);
}

.owner-path--bazaar {
  border-top: 3px solid rgba(139, 92, 246, 0.6);
}

.owner-path--vendor {
  border-top: 3px solid rgba(34, 197, 94, 0.5);
}

.owner-path-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.owner-path-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(243, 100, 24, 0.15);
  border: 1.5px solid rgba(243, 100, 24, 0.4);
  color: var(--orange-500, #F36418);
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.owner-path-num--purple {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.owner-path-num--green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.owner-path-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.owner-path-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* Steps list */
.owner-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.owner-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.owner-step--purple {
  border-color: rgba(139, 92, 246, 0.1);
}

.owner-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--orange-500, #F36418);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.owner-step-num--purple {
  background: #7c3aed;
}

.owner-step-txt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  padding-top: 3px;
}

.owner-step-txt strong {
  color: #fff;
}

/* Package limits */
.owner-path-limits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: rgba(243, 100, 24, 0.05);
  border: 1px solid rgba(243, 100, 24, 0.12);
  border-radius: 14px;
}

.owner-limit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.owner-limit-item svg {
  stroke: var(--orange-500, #F36418);
  flex-shrink: 0;
}

/* Bazaar fees */
.owner-baz-fees {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.owner-baz-fee-title {
  font-size: 13px;
  font-weight: 800;
  color: #a78bfa;
  font-family: var(--font-display, 'Cairo', sans-serif);
  margin-bottom: 10px;
}

.owner-baz-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.owner-baz-fee-row:last-of-type {
  border-bottom: none;
}

.owner-baz-fee-val {
  font-weight: 700;
  color: #c4b5fd;
}

.owner-baz-fee-note {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-display, 'Cairo', sans-serif);
  line-height: 1.6;
}

/* Vendor how */
.owner-vendor-how {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.owner-vendor-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.owner-vendor-ico {
  font-size: 18px;
  flex-shrink: 0;
}

.owner-vendor-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-family: var(--font-display, 'Cairo', sans-serif);
  line-height: 1.65;
}

.owner-vendor-note strong {
  color: rgba(255, 255, 255, 0.75);
}

/* Path actions */
.owner-path-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.owner-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 22px;
  background: var(--orange-500, #F36418);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display, 'Cairo', sans-serif);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(243, 100, 24, 0.35);
  transition: background 160ms ease, box-shadow 160ms ease;
  text-decoration: none;
}

.owner-btn-primary:hover {
  background: var(--orange-600, #D95A14);
  box-shadow: 0 0 26px rgba(243, 100, 24, 0.5);
}

.owner-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 22px;
  background: rgba(243, 100, 24, 0.1);
  border: 1.5px solid rgba(243, 100, 24, 0.35);
  color: var(--orange-500, #F36418);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.owner-btn-secondary:hover {
  background: rgba(243, 100, 24, 0.18);
  border-color: rgba(243, 100, 24, 0.6);
}

.owner-btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 22px;
  background: #6d28d9;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display, 'Cairo', sans-serif);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(109, 40, 217, 0.35);
  transition: background 160ms ease;
  text-decoration: none;
}

.owner-btn-purple:hover {
  background: #5b21b6;
}

.owner-btn-outline-purple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 22px;
  background: rgba(139, 92, 246, 0.08);
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  color: #a78bfa;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.owner-btn-outline-purple:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.6);
}

.owner-btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 22px;
  background: rgba(34, 197, 94, 0.12);
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.owner-btn-green:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.6);
}

/* Final CTA */
.owner-final-cta {
  text-align: center;
  background: rgba(243, 100, 24, 0.07);
  border: 1px solid rgba(243, 100, 24, 0.22);
  border-radius: 24px;
  padding: 40px 24px 32px;
}

.owner-cta-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.owner-cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display, 'Cairo', sans-serif);
  margin-bottom: 26px;
}

.owner-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.owner-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 13px 26px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display, 'Cairo', sans-serif);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: background 160ms ease;
}

.owner-btn-whatsapp:hover {
  background: #1da851;
}

.owner-btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 22px;
  background: var(--orange-500, #F36418);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display, 'Cairo', sans-serif);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(243, 100, 24, 0.4);
  transition: background 160ms ease;
}

.owner-btn-upgrade:hover {
  background: var(--orange-600, #D95A14);
}

.owner-btn-packages {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.owner-btn-packages:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.owner-cta-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-display, 'Cairo', sans-serif);
}

/* Responsive */
@media (max-width: 640px) {
  .owner-page-inner {
    padding: 48px 16px 64px;
  }

  .owner-hero-h1 {
    font-size: 26px;
  }

  .owner-path-card {
    padding: 22px 18px;
  }

  .owner-path-actions {
    flex-direction: column;
  }

  .owner-btn-primary,
  .owner-btn-secondary,
  .owner-btn-purple,
  .owner-btn-outline-purple,
  .owner-btn-green {
    width: 100%;
    justify-content: center;
  }

  .owner-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .owner-btn-whatsapp,
  .owner-btn-upgrade,
  .owner-btn-packages {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* بطاقات نوع الحساب */
.acct-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .acct-type-grid {
    grid-template-columns: 1fr;
  }
}

.acct-type-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  transition: border-color 0.2s;
}

.acct-type-card.owner-highlight {
  border-color: rgba(243, 100, 24, 0.45);
  background: rgba(243, 100, 24, 0.06);
}

.acct-type-ico {
  font-size: 36px;
  margin-bottom: 12px;
}

.acct-type-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.acct-type-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

.acct-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.acct-type-badge.tenant {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.acct-type-badge.owner {
  background: rgba(243, 100, 24, 0.2);
  color: var(--orange-light);
}

/* شبكة مميزات صاحب المساحة */
.owner-feats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}

/* خطوات الترقية */
.upgrade-steps-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.upgrade-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.upgrade-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upgrade-step-txt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  padding-top: 5px;
}

.upgrade-step-txt strong {
  color: #fff;
}

/* بطاقة داشبورد */
.owner-dash-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(243, 100, 24, 0.25);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 40px;
}

.owner-dash-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.owner-dash-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.owner-dash-feat-ico {
  font-size: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   17. صفحة الباقات .pkg-*
   ══════════════════════════════════════════════════════════════════ */

.pkg-page {
  direction: rtl;
  background: var(--navy-900, #0E1218);
  min-height: 100vh;
  padding-bottom: 0;
}

/* ── Hero ── */
.pkg-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 64px;
  text-align: center;
}

.pkg-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% -10%, rgba(243, 100, 24, 0.13), transparent);
  pointer-events: none;
}

.pkg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.pkg-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 100, 24, 0.08);
  border: 1px solid rgba(243, 100, 24, 0.28);
  color: var(--orange-500, #F36418);
  padding: 7px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.pkg-hero-h1 {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 14px;
}

.pkg-hero-sub {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 12px;
}

.pkg-hero-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

/* ── Trust Bar ── */
.pkg-trust {
  background: #1A1E25;
  border-top: 1px solid #25292F;
  border-bottom: 1px solid #25292F;
  padding: 28px 24px;
}

.pkg-trust-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pkg-trust-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.pkg-trust-sep {
  width: 1px;
  height: 44px;
  background: #25292F;
  flex-shrink: 0;
}

.pkg-trust-num {
  display: block;
  font-family: var(--font-latin, 'Inter', monospace);
  font-size: 34px;
  font-weight: 800;
  color: var(--orange-500, #F36418);
  line-height: 1;
  margin-bottom: 4px;
}

.pkg-trust-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display, 'Cairo', sans-serif);
}

/* ── Section title ── */
.pkg-section-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 32px;
}

/* ── Pricing Cards ── */
.pkg-cards-section {
  padding: 72px 24px 56px;
  max-width: 1160px;
  margin: 0 auto;
}

.pkg-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.pkg-card {
  position: relative;
  background: #14171D;
  border: 1px solid #25292F;
  border-radius: 28px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.pkg-card:hover {
  transform: translateY(-6px);
}

.pkg-card--growth {
  border-color: #353A42;
}

.pkg-card--pro {
  background: linear-gradient(145deg, #1A1E25 0%, #0E1218 100%);
  border: 1.5px solid rgba(243, 100, 24, 0.45);
  box-shadow:
    0 0 0 1px rgba(243, 100, 24, 0.15),
    0 24px 48px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(243, 100, 24, 0.12);
  transform: scale(1.035);
}

.pkg-card--pro:hover {
  transform: scale(1.035) translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(243, 100, 24, 0.22),
    0 28px 56px rgba(0, 0, 0, 0.65),
    0 12px 32px rgba(243, 100, 24, 0.2);
}

.pkg-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange-500, #F36418);
  color: #fff;
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pkg-card-name {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.pkg-card-name--accent {
  color: var(--orange-500, #F36418);
}

.pkg-card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pkg-card-price {
  font-family: var(--font-latin, 'Inter', sans-serif);
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.pkg-card-currency {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.pkg-card-period {
  font-size: 13px;
}

.pkg-card-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}

.pkg-card-limit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 22px;
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.pkg-card-limit--unlimited {
  background: rgba(243, 100, 24, 0.1);
  border-color: rgba(243, 100, 24, 0.2);
  color: var(--orange-500, #F36418);
}

.pkg-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pkg-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.pkg-feat--off {
  color: rgba(255, 255, 255, 0.28);
}

.pkg-feat-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--orange-500, #F36418);
}

.pkg-feat-ico--off {
  stroke: rgba(255, 255, 255, 0.2);
}

.pkg-card-support {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.pkg-card-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
  display: block;
}

.pkg-card-cta--pro {
  background: linear-gradient(180deg, #F47432 0%, #F36418 100%);
  box-shadow: 0 0 20px rgba(243, 100, 24, 0.35), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

/* ── Comparison Table ── */
.pkg-table-section {
  padding: 0 24px 72px;
  max-width: 1060px;
  margin: 0 auto;
}

.pkg-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid #25292F;
}

.pkg-table {
  width: 100%;
  border-collapse: collapse;
  background: #14171D;
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.pkg-th {
  background: #22262E;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #25292F;
  position: sticky;
  top: 64px;
  z-index: 2;
}

.pkg-th--feature {
  text-align: right;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  min-width: 160px;
}

.pkg-th--pro {
  background: rgba(243, 100, 24, 0.1);
  border-top: 2px solid rgba(243, 100, 24, 0.5);
  color: var(--orange-500, #F36418);
}

.pkg-th-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.pkg-th--pro .pkg-th-sub {
  color: rgba(243, 100, 24, 0.65);
}

.pkg-tr-group td {
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-top: 1px solid #25292F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pkg-tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.pkg-tr--alt {
  background: rgba(255, 255, 255, 0.015);
}

.pkg-td {
  padding: 11px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  vertical-align: middle;
}

.pkg-td--label {
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.pkg-td--val {
  font-size: 12px;
  font-weight: 600;
}

.pkg-td--pro {
  color: rgba(243, 100, 24, 0.9);
  background: rgba(243, 100, 24, 0.04);
}

.pkg-cell-check {
  width: 16px;
  height: 16px;
  stroke: var(--orange-500, #F36418);
  vertical-align: middle;
  display: inline-block;
}

.pkg-cell-x {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.18);
  vertical-align: middle;
  display: inline-block;
}

.pkg-cell-muted {
  color: rgba(255, 255, 255, 0.28);
}

/* ── Add-Ons ── */
.pkg-addons-section {
  padding: 0 24px 72px;
  max-width: 960px;
  margin: 0 auto;
}

.pkg-addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pkg-addon {
  background: #1A1E25;
  border: 1px dashed rgba(243, 100, 24, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: transform 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)),
    border-color 200ms;
}

.pkg-addon:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 100, 24, 0.55);
}

.pkg-addon-ico {
  font-size: 28px;
  margin-bottom: 10px;
}

.pkg-addon-name {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  line-height: 1.5;
}

.pkg-addon-price {
  font-family: var(--font-latin, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--orange-500, #F36418);
}

.pkg-addon-unit {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Pitch Banner ── */
.pkg-pitch {
  margin: 0 24px 72px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(243, 100, 24, 0.14) 0%, rgba(243, 100, 24, 0.05) 100%);
  border: 1px solid rgba(243, 100, 24, 0.3);
  border-radius: 28px;
  padding: 44px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pkg-pitch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(243, 100, 24, 0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: pkgShimmer 3s linear infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes pkgShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.pkg-pitch-inner {
  position: relative;
  z-index: 1;
}

.pkg-pitch-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.pkg-pitch-main {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: clamp(17px, 3vw, 24px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
}

.pkg-pitch-loss {
  color: rgba(243, 100, 24, 0.85);
}

.pkg-pitch-compare {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
}

.pkg-pitch-pro-price {
  color: var(--orange-500, #F36418);
}

.pkg-pitch-note {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ── FAQ ── */
.pkg-faq-section {
  padding: 0 24px 72px;
  max-width: 760px;
  margin: 0 auto;
}

.pkg-faq-list {
  border: 1px solid #25292F;
  border-radius: 20px;
  overflow: hidden;
}

.pkg-faq-item {
  border-bottom: 1px solid #25292F;
}

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

.pkg-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #14171D;
  transition: background 160ms;
}

.pkg-faq-q:hover {
  background: rgba(255, 255, 255, 0.025);
}

.pkg-faq-q::-webkit-details-marker {
  display: none;
}

.pkg-faq-chevron {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pkg-faq-item[open] .pkg-faq-chevron {
  transform: rotate(180deg);
}

.pkg-faq-a {
  padding: 0 20px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  font-family: var(--font-body, 'IBM Plex Sans Arabic', sans-serif);
  background: #14171D;
}

/* ── CTA Footer Banner ── */
.pkg-cta-banner {
  background: #07090C;
  border-top: 1px solid #25292F;
  padding: 64px 24px 80px;
  text-align: center;
}

.pkg-cta-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
}

.pkg-cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 32px;
}

.pkg-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pkg-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
}

/* ── Animations ── */
.pkg-anim-down {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 360ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)),
    transform 360ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1));
  transition-delay: var(--delay, 0ms);
}

.pkg-anim-up {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 400ms cubic-bezier(0.34, 1.36, 0.64, 1),
    transform 400ms cubic-bezier(0.34, 1.36, 0.64, 1);
  transition-delay: var(--delay, 0ms);
}

.pkg-anim-slide {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 360ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)),
    transform 360ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1));
  transition-delay: var(--delay, 0ms);
}

.pkg-anim-in .pkg-anim-down,
.pkg-anim-in .pkg-anim-up,
.pkg-anim-in .pkg-anim-slide {
  opacity: 1;
  transform: none;
}

.pkg-anim-in .pkg-card--pro.pkg-anim-up {
  transform: scale(1.035);
}

/* Pitch pulse */
.pkg-pitch-pulse {
  animation: pkgPulse 600ms ease-out;
}

@keyframes pkgPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }

  100% {
    transform: scale(1);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pkg-cards-grid {
    gap: 16px;
  }

  .pkg-addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pkg-hero {
    padding: 60px 20px 48px;
  }

  .pkg-cards-section {
    padding: 52px 16px 40px;
  }

  .pkg-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pkg-card--pro {
    transform: none;
    order: -1;
  }

  .pkg-card--pro:hover {
    transform: translateY(-6px);
  }

  .pkg-trust-inner {
    flex-direction: column;
    gap: 20px;
  }

  .pkg-trust-sep {
    width: 60px;
    height: 1px;
  }

  .pkg-addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pkg-table-section {
    padding: 0 12px 52px;
  }

  .pkg-faq-section {
    padding: 0 16px 52px;
  }

  .pkg-pitch {
    margin: 0 16px 52px;
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .pkg-hero-h1 {
    font-size: 26px;
  }

  .pkg-card-price {
    font-size: 38px;
  }

  .pkg-addons-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pkg-cta-btns {
    flex-direction: column;
  }

  .pkg-cta-btn {
    width: 100%;
  }

  .pkg-th,
  .pkg-td {
    padding: 9px 10px;
    font-size: 11px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   17-B. جدول المقارنة — أزرار رأس الجدول .pkg-th-cta
   ══════════════════════════════════════════════════════════════════ */
.pkg-th-name {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.pkg-th--pro .pkg-th-name {
  color: var(--orange-500, #F36418);
}

.pkg-th-price {
  font-family: var(--font-latin, 'Inter', sans-serif);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 14px;
}

.pkg-th--pro .pkg-th-price {
  color: var(--orange-500, #F36418);
}

.pkg-th-period {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.pkg-th-cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.pkg-th-cta:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.pkg-th-cta--pro {
  background: var(--orange-500, #F36418);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(243, 100, 24, 0.35);
}

.pkg-th-cta--pro:hover {
  background: var(--orange-600, #D95A14);
  border-color: transparent;
  color: #fff;
}

@media (max-width: 480px) {
  .pkg-th-price {
    font-size: 17px;
  }

  .pkg-th-cta {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   17-C. صفحة "إزاي بيشتغل؟" — تصميم جديد .how-page-*
   ══════════════════════════════════════════════════════════════════ */
.how-page-wrap {
  direction: rtl;
  background: var(--navy-900, #0E1218);
  min-height: 100vh;
}

/* Hero */
.how-page-hero {
  position: relative;
  padding: 72px 24px 56px;
  text-align: center;
  overflow: hidden;
}

.how-page-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(243, 100, 24, 0.13), transparent);
  pointer-events: none;
}

.how-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.how-page-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(243, 100, 24, 0.12);
  border: 1px solid rgba(243, 100, 24, 0.25);
  color: var(--orange-500, #F36418);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  margin-bottom: 20px;
}

.how-page-h1 {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 12px;
}

.how-page-h1 span {
  color: var(--orange-500, #F36418);
}

.how-page-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Free bar */
.how-free-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.08);
  border-top: 1px solid rgba(34, 197, 94, 0.2);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  padding: 14px 24px;
  color: #4ade80;
  font-size: 14px;
  font-family: var(--font-display, 'Cairo', sans-serif);
  text-align: center;
}

.how-free-bar svg {
  flex-shrink: 0;
  stroke: #4ade80;
}

.how-free-bar strong {
  color: #86efac;
}

/* Content area */
.how-page-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Path block */
.how-path-block {
  margin-bottom: 48px;
}

.how-path-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.how-path-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(243, 100, 24, 0.15);
  border: 1.5px solid rgba(243, 100, 24, 0.35);
  color: var(--orange-500, #F36418);
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-path-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.how-path-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* Sub-paths grid */
.how-sub-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.how-sub-card {
  background: #14171D;
  border: 1px solid #25292F;
  border-radius: 20px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 200ms ease, transform 200ms ease;
}

.how-sub-card:hover {
  border-color: rgba(243, 100, 24, 0.35);
  transform: translateY(-4px);
}

.how-sub-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(243, 100, 24, 0.1);
  border: 1px solid rgba(243, 100, 24, 0.2);
  color: var(--orange-500, #F36418);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  margin-bottom: 14px;
  width: fit-content;
}

.how-sub-pill--alt {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.how-sub-icon {
  font-size: 30px;
  margin-bottom: 10px;
  line-height: 1;
}

.how-sub-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.how-sub-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.how-sub-steps li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  padding-right: 18px;
  position: relative;
  line-height: 1.5;
}

.how-sub-steps li::before {
  content: '✦';
  position: absolute;
  right: 0;
  color: var(--orange-500, #F36418);
  font-size: 9px;
  top: 4px;
}

/* "أو" separator between sub-cards */
.how-sub-sep {
  width: 52px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-display, 'Cairo', sans-serif);
  position: relative;
}

.how-sub-sep::before,
.how-sub-sep::after {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  background: #25292F;
  margin: 6px auto;
}

/* Sub-card buttons */
.how-sub-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid rgba(243, 100, 24, 0.5);
  background: rgba(243, 100, 24, 0.1);
  color: var(--orange-500, #F36418);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.how-sub-btn:hover {
  background: var(--orange-500, #F36418);
  border-color: var(--orange-500, #F36418);
  color: #fff;
}

.how-sub-btn--alt {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
  color: #a5b4fc;
}

.how-sub-btn--alt:hover {
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(99, 102, 241, 0.85);
  color: #fff;
}

/* Main separator between paths */
.how-main-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 52px;
}

.how-main-sep-line {
  flex: 1;
  height: 1px;
  background: #25292F;
}

.how-main-sep span {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-display, 'Cairo', sans-serif);
  flex-shrink: 0;
}

/* Revenue note */
.how-revenue-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #1A1E25;
  border: 1px solid #25292F;
  border-radius: 20px;
  padding: 24px 22px;
  margin-top: 8px;
}

.how-rev-ico {
  font-size: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.how-rev-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.how-rev-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 14px;
}

.how-rev-text strong {
  color: rgba(255, 255, 255, 0.85);
}

.how-rev-cta {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display, 'Cairo', sans-serif);
  cursor: pointer;
  border: 1.5px solid rgba(243, 100, 24, 0.35);
  background: transparent;
  color: var(--orange-500, #F36418);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.how-rev-cta:hover {
  background: rgba(243, 100, 24, 0.1);
  border-color: rgba(243, 100, 24, 0.55);
}

/* Responsive */
@media (max-width: 640px) {
  .how-page-h1 {
    font-size: 26px;
  }

  .how-sub-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .how-sub-sep {
    width: auto;
    padding: 10px 0;
  }

  .how-sub-sep::before,
  .how-sub-sep::after {
    display: none;
  }

  .how-revenue-note {
    flex-direction: column;
    gap: 12px;
  }

  .how-page-content {
    padding: 40px 16px 60px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   18. مودال المعاينة .insp-*
   ══════════════════════════════════════════════════════════════════ */

/* Modal wrapper — reuses .modal-overlay already defined above */
.insp-modal {
  max-width: 480px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 0;
  border-radius: var(--radius-2xl, 24px);
  background: var(--surface, #14171D);
  border: 1px solid var(--border, #25292F);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 100, 24, 0.3) transparent;
}

.insp-modal::-webkit-scrollbar {
  width: 4px;
}

.insp-modal::-webkit-scrollbar-thumb {
  background: rgba(243, 100, 24, 0.25);
  border-radius: 4px;
}

/* ── Steps Bar ── */
.insp-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 20px 0;
  position: relative;
}

.insp-close-btn {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
}

.insp-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.insp-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Cairo', sans-serif);
  transition: background 300ms, border-color 300ms, color 300ms;
}

.insp-step-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-display, 'Cairo', sans-serif);
  transition: color 300ms;
}

.insp-step-node.active .insp-step-circle {
  background: var(--orange-500, #F36418);
  border-color: var(--orange-500, #F36418);
  color: #fff;
  box-shadow: 0 0 14px rgba(243, 100, 24, 0.4);
}

.insp-step-node.active .insp-step-lbl {
  color: var(--orange-500, #F36418);
}

.insp-step-node.done .insp-step-circle {
  background: rgba(243, 100, 24, 0.2);
  border-color: rgba(243, 100, 24, 0.5);
  color: var(--orange-500, #F36418);
}

.insp-step-node.done .insp-step-lbl {
  color: rgba(243, 100, 24, 0.6);
}

.insp-step-line {
  flex: 1;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 6px;
  margin-bottom: 18px;
  max-width: 60px;
  transition: background 300ms;
}

.insp-step-line.done {
  background: rgba(243, 100, 24, 0.4);
}

/* ── Step Body ── */
.insp-step-body {
  padding: 20px 22px 24px;
}

/* ── Step 1: Header ── */
.insp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.insp-header-ico {
  font-size: 28px;
  flex-shrink: 0;
}

.insp-header-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.insp-header-space {
  font-size: 13px;
  color: var(--orange-500, #F36418);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.insp-fee-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  background: rgba(243, 100, 24, 0.07);
  border: 1px solid rgba(243, 100, 24, 0.18);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
  font-family: var(--font-body, 'IBM Plex Sans Arabic', sans-serif);
}

.insp-fee-note strong {
  color: var(--orange-500, #F36418);
}

/* ── Date cards ── */
.insp-dates-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.insp-date-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 16px);
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color 180ms, background 180ms;
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  user-select: none;
}

.insp-date-card:hover {
  border-color: rgba(243, 100, 24, 0.3);
  background: rgba(243, 100, 24, 0.05);
}

.insp-date-card.selected {
  border-color: var(--orange-500, #F36418);
  background: rgba(243, 100, 24, 0.1);
  color: #fff;
}

.insp-date-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms;
}

.insp-date-card.selected .insp-date-radio {
  border-color: var(--orange-500, #F36418);
  background: var(--orange-500, #F36418);
}

.insp-date-card.selected .insp-date-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.insp-date-time {
  font-size: 11px;
  color: var(--orange-500, #F36418);
  font-weight: 700;
  margin-right: auto;
  background: rgba(243, 100, 24, 0.12);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Step 2: Payment ── */
.insp-s2-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.insp-s2-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 18px;
}

.insp-pay-box {
  background: rgba(243, 100, 24, 0.07);
  border: 1px solid rgba(243, 100, 24, 0.28);
  border-radius: var(--radius-xl, 20px);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.insp-pay-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.insp-pay-logo-txt {
  font-family: var(--font-latin, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: var(--orange-500, #F36418);
  letter-spacing: 0.04em;
}

.insp-pay-amount-badge {
  background: var(--orange-500, #F36418);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.insp-pay-num-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.insp-pay-num {
  font-family: var(--font-latin, 'Inter', monospace);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  direction: ltr;
}

.insp-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-family: var(--font-display, 'Cairo', sans-serif);
  transition: background 180ms, color 180ms, border-color 180ms;
  white-space: nowrap;
}

.insp-copy-btn:hover {
  background: rgba(243, 100, 24, 0.15);
  border-color: rgba(243, 100, 24, 0.3);
  color: var(--orange-500, #F36418);
}

.insp-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.insp-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body, 'IBM Plex Sans Arabic', sans-serif);
}

.insp-list-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(243, 100, 24, 0.15);
  color: var(--orange-500, #F36418);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display, 'Cairo', sans-serif);
  margin-top: 1px;
}

.insp-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-lg, 16px);
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display, 'Cairo', sans-serif);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: filter 160ms, box-shadow 160ms;
}

.insp-wa-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.4);
}

/* ── Step 3: Confirmation ── */
.insp-confirm-ico {
  font-size: 48px;
  text-align: center;
  margin-bottom: 8px;
}

.insp-confirm-title {
  font-family: var(--font-display, 'Cairo', sans-serif);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
}

.insp-confirm-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  margin-bottom: 20px;
}

.insp-id-box {
  background: rgba(243, 100, 24, 0.07);
  border: 1px solid rgba(243, 100, 24, 0.28);
  border-radius: var(--radius-xl, 20px);
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: center;
}

.insp-id-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 8px;
  font-family: var(--font-display, 'Cairo', sans-serif);
}

.insp-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.insp-id-val {
  font-family: var(--font-latin, 'Inter', monospace);
  font-size: 24px;
  font-weight: 900;
  color: var(--orange-500, #F36418);
  letter-spacing: 0.06em;
}

.insp-confirm-details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg, 16px);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.insp-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.insp-detail-key {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-display, 'Cairo', sans-serif);
  flex-shrink: 0;
}

.insp-detail-val {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-family: var(--font-display, 'Cairo', sans-serif);
  text-align: left;
  direction: rtl;
}

.insp-confirm-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-body, 'IBM Plex Sans Arabic', sans-serif);
}

/* ── Card inspection button ── */
.btn-insp {
  font-size: 12px;
  padding: 7px 12px;
  border-color: rgba(243, 100, 24, 0.45);
  color: var(--orange-500, #F36418);
}

.btn-insp:hover {
  background: rgba(243, 100, 24, 0.1);
}

/* ── Detail page inspection button ── */
.sd-insp-btn {
  flex-shrink: 0;
  background: transparent !important;
  color: var(--orange) !important;
  border-color: var(--orange) !important;
}

.sd-insp-btn:hover {
  background: rgba(243, 100, 24, 0.08) !important;
  color: var(--orange) !important;
}

/* ── Sticky footer update ── */
.sd-sticky-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 480px) {
  .insp-modal {
    border-radius: var(--radius-xl, 20px) var(--radius-xl, 20px) 0 0;
    max-height: 95dvh;
  }

  .insp-step-body {
    padding: 16px 16px 20px;
  }

  .insp-pay-num {
    font-size: 18px;
  }

  .insp-id-val {
    font-size: 20px;
  }

  .insp-steps-bar {
    padding: 16px 16px 0;
  }
}

/* =================================
   🚀 EXTRA FORCEFUL MOBILE FIXES (Path Grid)
   ================================= */
@media (max-width: 768px) {
  .path-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .path-sep {
    display: none !important;
  }

  .path-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   ⭐ القسم: السمعة والتقييمات المستلمة (لوحة المستأجر)
   تُستخدم بواسطة loadUserRatings في app.js
   ============================================================ */

/* ── الحالة الفارغة ── */
.rep-empty {
  text-align: center;
  padding: 38px 22px;
  background: linear-gradient(180deg, var(--surface2) 0%, var(--bg) 100%);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
}

.rep-empty-ico {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.rep-empty-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 7px;
}

.rep-empty-sub {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto;
}

/* ── لوحة السمعة (الشارة + المعايير) ── */
.rep-panel {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

/* بطاقة الشارة الرئيسية */
.rep-badge {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--surface2);
}

.rep-badge-emoji {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}

.rep-score {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -1px;
}

.rep-stars {
  margin: 6px 0 4px;
  letter-spacing: 1px;
}

.rep-badge-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}

.rep-count {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  width: 100%;
  font-weight: 600;
}

/* تلوين الشارة حسب المستوى */
.rep-badge.rep-excellent {
  background: linear-gradient(160deg, #FCF6E3 0%, #FBF0CE 100%);
  border-color: var(--egyptian-gold);
}

.rep-badge.rep-excellent .rep-badge-label {
  color: var(--egyptian-bronze);
}

.rep-badge.rep-excellent .rep-score {
  color: var(--egyptian-bronze);
}

.rep-badge.rep-trusted {
  background: var(--green-light);
  border-color: var(--success-500);
}

.rep-badge.rep-trusted .rep-badge-label {
  color: var(--success-700);
}

.rep-badge.rep-good {
  background: var(--accent-tint);
  border-color: var(--accent);
}

.rep-badge.rep-good .rep-badge-label {
  color: var(--accent-press);
}

.rep-badge.rep-weak {
  background: var(--warning-50);
  border-color: var(--warning-500);
}

.rep-badge.rep-weak .rep-badge-label {
  color: var(--warning-700);
}

.rep-badge.rep-new {
  background: var(--surface2);
  border-color: var(--border);
}

.rep-badge.rep-new .rep-badge-label {
  color: var(--ink3);
}

/* قائمة المعايير */
.rep-criteria {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg);
}

.rep-crit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rep-crit-label {
  flex: 0 0 138px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}

.rep-crit-bar {
  flex: 1;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
  overflow: hidden;
  position: relative;
}

.rep-crit-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent) 0%, var(--egyptian-gold) 100%);
  transition: width var(--dur-slow) var(--ease-out);
}

.rep-crit-val {
  flex: 0 0 34px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

/* ── قائمة التقييمات المستلمة ── */
.recv-ratings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recv-rating-card {
  padding: 15px 17px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.recv-rating-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.recv-rating-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.recv-rater {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.recv-context {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 3px;
  font-weight: 500;
}

.recv-rating-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.recv-date {
  font-size: 11px;
  color: var(--ink3);
  font-weight: 500;
}

.recv-comment {
  margin-top: 11px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border-right: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink2);
}

@media (max-width: 720px) {
  .rep-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rep-crit-label {
    flex-basis: 116px;
    font-size: 12px;
  }
}

/* ==========================================================================
   ✨ التعديلات والتحسينات المحدثة لعام 2026 (الصفحة الرئيسية)
   ========================================================================== */

/* ── 1. قسم المسارات الزجاجي المضيء (Sleek Glassmorphic Path Cards) ── */
.how-section {
  background: radial-gradient(circle at top left, var(--navy-900), var(--navy-700)) !important;
}

.path-card {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.path-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(243, 100, 24, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.path-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(243, 100, 24, 0.45) !important;
  background: rgba(243, 100, 24, 0.03) !important;
  box-shadow: 0 15px 45px rgba(243, 100, 24, 0.12), 0 0 0 1px rgba(243, 100, 24, 0.2) !important;
}

.path-card:hover::after {
  opacity: 1;
}

.path-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(243, 100, 24, 0.15), rgba(243, 100, 24, 0.03)) !important;
  border: 1px solid rgba(243, 100, 24, 0.25) !important;
  border-radius: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.path-card:hover .path-icon-wrap {
  background: var(--orange) !important;
  color: #fff !important;
  border-color: var(--orange) !important;
  box-shadow: 0 8px 24px rgba(243, 100, 24, 0.35) !important;
  transform: scale(1.08) rotate(3deg);
}

.path-pill {
  border-radius: 20px !important;
  padding: 4px 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.path-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.path-card:hover .path-btn {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(243, 100, 24, 0.3) !important;
  transform: translateY(-2px);
}

/* ── 2. قسم البازارات المطور (Split Grid Layout) ── */
.bz-home-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 18px;
}

/* البازار المتميز (Featured Bazaar Card) */
.bz-featured-wrapper {
  display: flex;
  flex-direction: column;
}

.bz-featured-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--orange-pale);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(243, 100, 24, 0.05);
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
}

.bz-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #ff8d4f);
  z-index: 10;
}

.bz-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(243, 100, 24, 0.15);
  border-color: var(--orange);
}

.bz-featured-img-container {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--surface2);
}

.bz-featured-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bz-featured-card:hover .bz-featured-img-container img {
  transform: scale(1.05);
}

.bz-featured-badges {
  position: absolute;
  top: 15px;
  right: 15px;
  left: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.bz-featured-cat {
  background: rgba(14, 18, 24, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bz-featured-soldout {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.bz-featured-available {
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* العداد التنازلي التفاعلي (Countdown Box) */
.bz-countdown {
  position: absolute;
  bottom: 15px;
  right: 15px;
  left: 15px;
  background: rgba(14, 18, 24, 0.85);
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  direction: ltr;
}

.bz-countdown-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.bz-countdown-units {
  display: flex;
  gap: 8px;
}

.bz-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
}

.bz-countdown-val {
  font-size: 18px;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

.bz-countdown-lbl {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
  font-family: var(--font-display);
}

.bz-featured-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bz-featured-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.bz-featured-location {
  font-size: 13.5px;
  color: var(--ink2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bz-featured-desc {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bz-featured-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.bz-featured-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--orange);
}

.bz-featured-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink3);
  margin-right: 4px;
}

.bz-featured-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: 0 4px 14px rgba(243, 100, 24, 0.2);
}

.bz-featured-btn:hover {
  background: var(--orange-hover, #d95a14);
  box-shadow: 0 6px 18px rgba(243, 100, 24, 0.3);
  transform: translateY(-1px);
}

/* القائمة الجانبية المدمجة للبزارات الأخرى */
.bz-others-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bz-compact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 100px 1fr;
  height: 104px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.bz-compact-card:hover {
  border-color: var(--orange-pale);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.bz-compact-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.bz-compact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bz-compact-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(243, 100, 24, 0.1), rgba(243, 100, 24, 0.02));
}

.bz-compact-date {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(14, 18, 24, 0.8);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
  text-align: center;
  backdrop-filter: blur(2px);
}

.bz-compact-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.bz-compact-kicker {
  font-size: 9.5px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 2px;
}

.bz-compact-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bz-compact-location {
  font-size: 11px;
  color: var(--ink2);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bz-compact-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bz-compact-price {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--orange);
}

.bz-compact-slots {
  font-size: 10px;
  font-weight: 800;
}

/* ── 3. قسم المشروعات المعروضة للبيع الجديد (Full Projects for Sale) ── */
.market-showcase-section {
  background: var(--surface);
  padding: 80px 24px;
  position: relative;
}

.market-showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.market-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 44px;
}

.market-showcase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.market-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(243, 100, 24, 0.35);
}

.market-showcase-img-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--surface2);
}

.market-showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.market-showcase-card:hover .market-showcase-img-wrap img {
  transform: scale(1.06);
}

.market-showcase-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 18, 24, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.market-showcase-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.market-showcase-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
  /* تثبيت الارتفاع لتوحيد الحجم */
}

.market-showcase-desc {
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.market-showcase-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink2);
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.market-showcase-price {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--orange);
  margin-right: auto;
  /* دفع السعر لليسار */
}

.market-showcase-action {
  text-align: center;
}

.market-showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-700);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: 0 4px 18px rgba(14, 18, 24, 0.15);
}

.market-showcase-cta:hover {
  background: var(--orange);
  box-shadow: 0 6px 20px rgba(243, 100, 24, 0.3);
  transform: translateY(-2px);
}

/* ── 4. شاشات الموبايل والتجاوبية للأقسام المحدثة ── */
@media (max-width: 980px) {
  .bz-home-split-grid {
    grid-template-columns: 1fr;
  }

  .bz-featured-img-container {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .market-showcase-section {
    padding: 50px 16px;
  }

  .market-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0 28px;
  }

  .market-showcase-card {
    max-width: 100%;
  }

  .bz-compact-card {
    height: 94px;
    grid-template-columns: 88px 1fr;
  }
}