@import url('./brand-wordmark.css');
/* ==========================================================================
   عماري AMMARI — نظام التصميم الموحد
   خط Cairo للعربي + Plus Jakarta Sans للإنجليزي، هوية فيروزية/ذهبية على داكن.
   ========================================================================== */

:root {
  --primary: #127876;
  --primary-light: #189e9b;
  --primary-dark: #0a4f4e;
  --primary-glow: rgba(18, 120, 118, 0.4);
  --amber: #E0941E;
  --amber-light: #f5ab3c;
  --amber-dark: #b87510;
  --amber-glow: rgba(224, 148, 30, 0.35);
  --dark-bg: #070D0E;
  --surface: rgba(18, 30, 32, 0.72);
  --surface-2: rgba(23, 40, 42, 0.88);
  --surface-solid: #0E1819;
  --border: rgba(18, 120, 118, 0.28);
  --border-light: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --text-secondary: #ADC0BF;
  --text-muted: #8E9F9F;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --blue: #2563EB;
  --purple: #8B5CF6;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark-bg);
  color: var(--text);
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: -200px; right: 10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(18, 120, 118, 0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -150px; left: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(224, 148, 30, 0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── الشعار ── */
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  color: inherit !important;
  flex-shrink: 0;
}
.brand-link:visited, .brand-link:hover, .brand-link:active, .brand-link:focus {
  text-decoration: none !important;
  color: inherit !important;
}
.brand-logo-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 6px 20px rgba(18, 120, 118, 0.4));
}
.brand-logo-box img { width: 100%; height: 100%; object-fit: contain; }
/* ── الرأس ── */
header {
  background: rgba(7, 13, 14, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 900;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.header-center { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 700px; margin: 0 16px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.location-picker-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(18, 120, 118, 0.12);
  border: 1px solid var(--border); color: #FFF;
  padding: 10px 16px; border-radius: var(--radius-full);
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all 0.25s;
}
.location-picker-btn:hover { background: rgba(18, 120, 118, 0.25); border-color: var(--primary-light); transform: translateY(-1px); }
.location-picker-btn .icon { color: var(--amber); font-size: 14px; }

.header-search {
  flex: 1; display: flex; align-items: center;
  background: rgba(14, 23, 24, 0.9);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 4px 6px 4px 16px; transition: all 0.25s;
}
.header-search:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(18, 120, 118, 0.25); }
.search-icon { color: var(--text-muted); font-size: 16px; margin-left: 8px; }
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #FFF; font-family: inherit; font-size: 13px; font-weight: 600; text-align: right;
}
.search-input::placeholder { color: var(--text-muted); }
.search-filter-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(224, 148, 30, 0.14); color: var(--amber);
  border: 1px solid rgba(224, 148, 30, 0.3); padding: 6px 12px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.search-filter-badge:hover { background: rgba(224, 148, 30, 0.28); }

.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: all 0.2s; font-size: 16px;
}
.icon-btn:hover { background: rgba(18, 120, 118, 0.25); border-color: var(--primary-light); transform: translateY(-2px); }
.icon-btn .badge-dot {
  position: absolute; top: 8px; left: 8px; width: 9px; height: 9px;
  background: var(--amber); border-radius: 50%; border: 2px solid var(--dark-bg);
}

.chat-btn-link {
  display: flex; align-items: center; gap: 6px;
  background: rgba(18, 120, 118, 0.18); border: 1px solid var(--border);
  color: #FFF; padding: 9px 16px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.25s;
}
.chat-btn-link:hover { background: rgba(18, 120, 118, 0.35); border-color: var(--primary-light); }
.chat-btn-link .live-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; }

.cta-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #0d5c5a 100%);
  color: #FFF; border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 22px; border-radius: var(--radius-full);
  font-family: inherit; font-size: 14px; font-weight: 800;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; box-shadow: 0 4px 18px var(--primary-glow); transition: all 0.25s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18, 120, 118, 0.55); background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); }
.cta-btn.amber { background: linear-gradient(135deg, var(--amber), var(--amber-dark)); box-shadow: 0 4px 18px var(--amber-glow); }
.cta-btn.amber:hover { background: linear-gradient(135deg, var(--amber-light), var(--amber)); }
.cta-btn.ghost { background: transparent; border-color: var(--border); box-shadow: none; }
.cta-btn.ghost:hover { background: rgba(18, 120, 118, 0.2); }
.cta-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── الأقسام ── */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0 16px; flex-wrap: wrap; }
.section-title-wrap { display: flex; align-items: center; gap: 10px; }
.section-badge-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(18, 120, 118, 0.2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.section-badge-icon.amber { background: rgba(224, 148, 30, 0.18); border-color: rgba(224, 148, 30, 0.35); }
.section-badge-icon.silver { background: rgba(99, 114, 113, 0.2); border-color: rgba(99, 114, 113, 0.35); }
.section-badge-icon.bronze { background: rgba(164, 139, 82, 0.2); border-color: rgba(164, 139, 82, 0.35); }
.section-badge-icon.teal { background: rgba(18, 120, 118, 0.25); border-color: rgba(18, 120, 118, 0.45); }
.section-title { font-size: 20px; font-weight: 900; }
.section-see-all { color: var(--primary-light); font-size: 13px; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 4px; cursor: pointer; transition: color 0.2s; }
.section-see-all:hover { color: #FFF; }
.reset-filter-link {
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171; padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 800; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.reset-filter-link:hover { background: rgba(239, 68, 68, 0.25); color: #FFF; }
.section-note { color: var(--text-muted); font-size: 13px; font-weight: 600; }

/* ── حلقات القصص ── */
.top-bar-strip { padding: 22px 0 12px; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.top-bar-strip::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; text-decoration: none; transition: transform 0.2s; }
.story-item:hover { transform: translateY(-3px); }
.story-ring { width: 62px; height: 62px; border-radius: 50%; padding: 2.5px; display: flex; align-items: center; justify-content: center; position: relative; }
.story-ring.teal { background: linear-gradient(135deg, #127876, #189e9b); }
.story-ring.amber { background: linear-gradient(135deg, #E0941E, #f5ab3c); }
.story-ring.silver { background: linear-gradient(135deg, #637271, #8E9F9F); }
.story-ring.bronze { background: linear-gradient(135deg, #A48B52, #d1b87b); }
.story-circle {
  width: 100%; height: 100%; border-radius: 50%;
  background: #0E1A1B; display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 22px; border: 2px solid var(--dark-bg);
}
.story-circle img { width: 100%; height: 100%; object-fit: cover; }
.story-online-dot { position: absolute; bottom: 2px; left: 2px; width: 13px; height: 13px; background: var(--success); border: 2px solid var(--dark-bg); border-radius: 50%; }
.story-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); max-width: 76px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── لافتات Hero ── */
.hero-banner-row { margin: 16px 0 8px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) { .hero-banner-row { grid-template-columns: 1fr; } }
.hero-card {
  background: linear-gradient(135deg, rgba(18, 30, 32, 0.85) 0%, rgba(10, 18, 19, 0.95) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  cursor: pointer; transition: all 0.3s; text-align: right;
}
.hero-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.hero-card.amber-theme { border-color: rgba(224, 148, 30, 0.4); }
.hero-card.amber-theme:hover { border-color: var(--amber); }
.hero-card-content { display: flex; align-items: center; gap: 16px; }
.hero-icon-box {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; box-shadow: 0 4px 16px var(--primary-glow);
}
.hero-icon-box.amber-box { background: linear-gradient(135deg, var(--amber), var(--amber-dark)); box-shadow: 0 4px 16px var(--amber-glow); }
.hero-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.hero-title { font-size: 16px; font-weight: 800; }
.pill-badge { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(18, 120, 118, 0.25); color: var(--primary-light); border: 1px solid var(--border); }
.pill-badge.amber { background: rgba(224, 148, 30, 0.18); color: var(--amber); border-color: rgba(224, 148, 30, 0.35); }
.hero-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.hero-action-btn { padding: 10px 18px; border-radius: var(--radius-full); font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; border: none; }
.btn-teal { background: var(--primary); color: #FFF; }
.btn-teal:hover { background: var(--primary-light); }
.btn-amber { background: var(--amber); color: #FFF; }
.btn-amber:hover { background: var(--amber-light); }

/* ── مبدّل المعروضات/الطلبات ── */
.feed-switcher-wrap { display: flex; justify-content: center; margin: 24px 0 20px; }
.feed-switcher-bar { background: rgba(18, 30, 32, 0.85); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 5px; display: inline-flex; gap: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.feed-tab {
  display: flex; align-items: center; gap: 8px; padding: 10px 24px;
  border-radius: var(--radius-full); border: none; background: transparent;
  color: var(--text-muted); font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: all 0.25s;
}
.feed-tab:hover { color: #FFF; }
.feed-tab.active-offers { background: linear-gradient(135deg, var(--primary), #0e5e5c); color: #FFF; box-shadow: 0 4px 16px var(--primary-glow); }
.feed-tab.active-requests { background: linear-gradient(135deg, var(--amber), var(--amber-dark)); color: #FFF; box-shadow: 0 4px 16px var(--amber-glow); }
.feed-tab-count { background: rgba(255, 255, 255, 0.18); font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: var(--radius-full); }

/* ── حبوب الأقسام ── */
.categories-strip { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 20px; scrollbar-width: none; }
.categories-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.cat-pill:hover { border-color: var(--primary-light); color: #FFF; transform: translateY(-1px); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: #FFF; box-shadow: 0 4px 14px var(--primary-glow); }

/* ── شبكة الريلز (صف واحد) ── */
.reels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) {
  .reels-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .reels-grid .reel-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
}
@media (max-width: 480px) {
  .reels-grid .reel-card {
    flex: 0 0 210px;
  }
}

.reel-card {
  background: #111A1B; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 9/15; position: relative; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reel-card:hover { transform: translateY(-6px); border-color: var(--primary-light); box-shadow: 0 16px 40px rgba(18, 120, 118, 0.35); }
.reel-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.reel-card:hover .reel-card-img { transform: scale(1.05); }
.reel-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 13, 14, 0.3) 0%, rgba(7, 13, 14, 0.1) 40%, rgba(7, 13, 14, 0.95) 100%); pointer-events: none; }
.reel-top-badges { position: absolute; top: 12px; right: 12px; left: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.reel-pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-full); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.reel-pill.cash { background: rgba(16, 185, 129, 0.92); color: #FFF; }
.reel-pill.installment { background: rgba(37, 99, 235, 0.92); color: #FFF; }
.reel-pill.verified { background: rgba(18, 120, 118, 0.92); color: #FFF; }
.reel-views-badge { display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); padding: 4px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; color: #FFF; }
.reel-content { position: relative; z-index: 2; }
.reel-play-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(224, 148, 30, 0.9); color: #FFF;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  box-shadow: 0 4px 14px var(--amber-glow); transition: transform 0.25s;
}
.reel-card:hover .reel-play-icon { transform: scale(1.1); background: var(--amber); }
.reel-price { font-size: 19px; font-weight: 900; color: var(--amber); line-height: 1.2; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.reel-title {
  font-size: 14px; font-weight: 800; color: #FFF; line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reel-location { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); font-weight: 700; }

/* ── الشارات ── */
.specs-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.spec-badge {
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(4px);
  padding: 3px 8px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700; color: #E2E8F0;
  display: inline-flex; align-items: center; gap: 4px;
}
.spec-item {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-light);
  border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 700;
  color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px;
}

/* ── لافتة السوق ── */
.market-banner {
  background: linear-gradient(135deg, rgba(18, 30, 32, 0.95) 0%, rgba(14, 24, 25, 0.95) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 32px; margin: 36px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  position: relative; overflow: hidden; cursor: pointer; text-decoration: none; transition: all 0.3s;
}
.market-banner::before { content: ''; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--amber), var(--primary)); }
.market-banner:hover { border-color: var(--amber); transform: translateY(-2px); }
.market-banner-right { display: flex; align-items: center; gap: 20px; }
.market-icon-circle {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #FFF; flex-shrink: 0; box-shadow: 0 6px 20px var(--primary-glow);
}
.market-banner-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.market-title { font-size: 19px; font-weight: 900; }
.live-pill {
  background: rgba(224, 148, 30, 0.16); border: 1px solid rgba(224, 148, 30, 0.35);
  color: var(--amber); padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px;
}
.live-pill .green-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); }
.market-desc { font-size: 14px; color: var(--text-secondary); max-width: 640px; }
.market-enter-btn {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark)); color: #FFF;
  padding: 12px 24px; border-radius: var(--radius-full); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  box-shadow: 0 4px 16px var(--amber-glow); transition: all 0.25s;
}
.market-banner:hover .market-enter-btn { transform: translateX(-4px); }

/* ── شبكة العقارات ── */
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .properties-grid { grid-template-columns: 1fr; } }

.prop-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.prop-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.prop-img-box { height: 220px; position: relative; background: #142022; overflow: hidden; cursor: pointer; }
.prop-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.prop-card:hover .prop-img { transform: scale(1.06); }
.prop-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%); }
.prop-deal-badge { position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 800; color: #FFF; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.prop-deal-badge.sale { background: var(--amber); }
.prop-deal-badge.rent { background: var(--primary); }
.prop-play-trigger {
  position: absolute; top: 14px; left: 14px; background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.2); color: #FFF;
  padding: 5px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; gap: 5px;
}
.prop-featured-badge {
  position: absolute; bottom: 14px; right: 14px; padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 800; color: #FFF;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); display: flex; align-items: center; gap: 4px;
}
.prop-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prop-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.prop-price { font-size: 21px; font-weight: 900; color: var(--amber); line-height: 1; }
.prop-payment-pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-full); background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); white-space: nowrap; }
.prop-title {
  font-size: 15px; font-weight: 800; color: #FFF; line-height: 1.4; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prop-location { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); font-weight: 700; margin-bottom: 14px; }
.prop-specs-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.prop-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.publisher-info { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.publisher-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: #FFF;
  font-weight: 800; font-size: 13px; border: 1.5px solid var(--primary-light);
  overflow: hidden; flex-shrink: 0;
}
.publisher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.publisher-name { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.publisher-verified { color: var(--amber); font-size: 12px; }
.publisher-sub { font-size: 11px; color: var(--text-muted); }
.prop-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-chat-mini {
  background: rgba(18, 120, 118, 0.18); color: var(--primary-light); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: all 0.2s;
  font-family: inherit; white-space: nowrap;
}
.btn-chat-mini:hover { background: var(--primary); color: #FFF; }
.btn-chat-mini.amber { background: rgba(224, 148, 30, 0.15); color: var(--amber); border-color: rgba(224, 148, 30, 0.35); }
.btn-chat-mini.amber:hover { background: var(--amber); color: #FFF; }

/* ── بطاقات الطلبات ── */
.requests-section { display: none; }
.requests-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .requests-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .requests-grid { grid-template-columns: 1fr; } }
.request-card {
  background: var(--surface); border: 1px solid rgba(224, 148, 30, 0.35);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative; transition: all 0.3s;
}
.request-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.request-badge-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.req-category-badge { background: var(--amber); color: #FFF; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-full); }
.req-cash-badge { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.4); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-full); }
.request-title { font-size: 16px; font-weight: 800; color: #FFF; line-height: 1.4; margin-bottom: 8px; }
.request-budget-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.budget-label { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.budget-value { font-size: 18px; font-weight: 900; color: var(--amber); }
.request-specs-box { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.request-action-btn {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark)); color: #FFF; border: none;
  padding: 10px 16px; border-radius: var(--radius-full); font-family: inherit; font-size: 13px;
  font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: auto; transition: all 0.2s;
}
.request-action-btn:hover { background: var(--amber-light); transform: translateY(-2px); }

/* ── التحميل ── */
.skeleton-loading {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: 12px;
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; font-weight: 600; grid-column: 1 / -1; }

/* ── الزر العائم ── */
.floating-copilot-btn {
  position: fixed; bottom: 28px; left: 28px; z-index: 1000;
  background: linear-gradient(135deg, var(--primary), #0a5250);
  border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-full);
  padding: 12px 22px; display: flex; align-items: center; gap: 10px; color: #FFF;
  font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 30px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.floating-copilot-btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 40px rgba(18, 120, 118, 0.7); }
.copilot-pulse { width: 10px; height: 10px; background: var(--success); border-radius: 50%; box-shadow: 0 0 10px var(--success); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── النوافذ ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(12px);
  z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.active { display: flex; }
.modal-box {
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 24px;
  width: 100%; overflow: hidden; position: relative; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  display: flex; flex-direction: column;
}
.modal-close-btn {
  position: absolute; top: 16px; left: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65); border: 1px solid rgba(255, 255, 255, 0.2); color: #FFF;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: background 0.2s;
}
.modal-close-btn:hover { background: rgba(0, 0, 0, 0.9); }
.modal-close-btn.static { position: static; flex-shrink: 0; }
.modal-head { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(18, 30, 32, 0.6); }
.modal-head h3 { font-size: 17px; font-weight: 900; }
.modal-body { padding: 20px 24px; overflow-y: auto; }

/* مشغّل الفيديو */
.video-modal-card { max-width: 480px; height: 85vh; max-height: 840px; }
.video-container { flex: 1; position: relative; background: #000; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.modal-video-elem { width: 100%; height: 100%; object-fit: cover; max-height: 60vh; }
.video-modal-info { padding: 20px; border-top: 1px solid var(--border); }
.modal-price { font-size: 22px; font-weight: 900; color: var(--amber); margin-bottom: 4px; }
.modal-title { font-size: 16px; font-weight: 800; color: #FFF; margin-bottom: 12px; line-height: 1.3; }
.modal-actions-row { display: flex; gap: 10px; }
.modal-cta-btn {
  flex: 1; background: var(--primary); color: #FFF; padding: 12px; border-radius: var(--radius-full);
  font-family: inherit; font-size: 14px; font-weight: 800; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.modal-cta-btn.amber-cta { background: var(--amber); }

/* تفاصيل العقار */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-media { border-radius: var(--radius-md); overflow: hidden; background: #142022; border: 1px solid var(--border); }
.detail-media img, .detail-media video { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.detail-info h2 { font-size: 20px; font-weight: 900; margin-bottom: 8px; line-height: 1.35; }
.detail-price { font-size: 26px; font-weight: 900; color: var(--amber); margin-bottom: 6px; }
.detail-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 14px 0; white-space: pre-wrap; }
.detail-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.detail-spec {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.detail-spec .k { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.detail-spec .v { font-size: 14px; font-weight: 800; color: #FFF; }
.detail-contact {
  background: rgba(18, 120, 118, 0.12); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; margin-top: 16px; text-align: center;
}
.detail-contact-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
.thumb-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.thumb-strip img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex-shrink: 0; cursor: pointer; }

/* أسفل البطاقة */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0 10px; flex-wrap: wrap; }
.page-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
  padding: 8px 14px; border-radius: var(--radius-sm); font-family: inherit; font-size: 13px;
  font-weight: 800; cursor: pointer; transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary-light); color: #FFF; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #FFF; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { color: var(--text-muted); font-size: 13px; font-weight: 700; margin: 0 8px; }

/* ── النماذج ── */
.form-group { margin-bottom: 16px; text-align: right; }
.form-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.form-label .req { color: var(--danger); }
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(7, 13, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px;
  padding: 12px 14px; color: #FFF; font-family: inherit; font-size: 14px; outline: none;
  transition: all 0.2s; text-align: right;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(18, 120, 118, 0.25);
}
.form-select option { background: #0E1819; color: #FFF; }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 768px) { .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.checkbox-row label { font-size: 14px; font-weight: 700; cursor: pointer; }

/* ── التنبيهات ── */
.toast-host { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 10px; width: min(420px, 90vw); }
.toast {
  background: #0E1819; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: flex-start; gap: 12px;
  animation: toast-in 0.3s ease-out; font-size: 14px; font-weight: 700;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }
.toast.warn { border-color: rgba(245, 158, 11, 0.5); }
.toast.info { border-color: var(--border); }
.toast .toast-icon { font-size: 18px; flex-shrink: 0; }
.toast .toast-body { flex: 1; line-height: 1.5; }
.toast .toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0; line-height: 1; }

/* ==========================================================================
   نافذة السوق الذكية الطافية (Floating Smart Market Dock)
   تسمح بتصفح الموقع بحرية كاملة دون أي حجب أو تعطيل للشاشة
   ========================================================================== */
.market-dock-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none; /* يسمح بالتصفح والنقر على ما خلفه */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* الزر المصغر الذكي */
.market-minimized-pill {
  display: none;
  pointer-events: auto;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(10, 18, 20, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--primary-glow);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.market-minimized-pill:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--primary-light);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 24px var(--primary-glow);
}
.market-dock-wrap.minimized .market-minimized-pill {
  display: inline-flex;
  animation: pillSlideUp 0.3s ease-out;
}
@keyframes pillSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.market-minimized-pill .pill-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 1.8s infinite;
}
.market-minimized-pill .pill-badge {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}

/* بطاقة نافذة السوق العائمة */
.market-dock-card {
  display: none;
  pointer-events: auto;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 100px);
  background: #091315;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(18, 120, 118, 0.25);
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(24px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: dockSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dockSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.market-dock-wrap.active .market-dock-card {
  display: flex;
}
.market-dock-wrap.minimized .market-dock-card {
  display: none;
}

/* الوضع الموسع / الجانبي الذكي */
.market-dock-wrap.expanded .market-dock-card {
  width: 480px;
  height: calc(100vh - 60px);
  border-radius: 20px;
}

.market-dock-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 25, 27, 0.98);
}
.dock-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dock-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.dock-header-title {
  font-weight: 800;
  font-size: 14.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot-glow {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}
.dock-header-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 1px;
}
.dock-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dock-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dock-action-btn:hover {
  background: rgba(18, 120, 118, 0.25);
  color: #fff;
  border-color: var(--primary);
}
.dock-action-btn.close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
}

.drawer-gov-strip { display: flex; gap: 8px; padding: 10px 16px; background: rgba(7, 13, 14, 0.6); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.drawer-gov-strip::-webkit-scrollbar { display: none; }
.gov-chip {
  background: rgba(18, 30, 32, 0.7); border: 1px solid var(--border); color: var(--text-muted);
  padding: 5px 12px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all 0.2s; font-family: inherit;
}
.gov-chip.active { background: var(--amber); color: #FFF; border-color: var(--amber-dark); box-shadow: 0 2px 10px var(--amber-glow); }
.drawer-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.msg-bubble { background: rgba(18, 30, 32, 0.7); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; max-width: 88%; align-self: flex-start; }
.msg-bubble.mine { align-self: flex-end; background: rgba(18, 120, 118, 0.25); border-color: var(--primary-light); }
.msg-author { font-size: 12px; font-weight: 800; color: var(--amber); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.msg-text { font-size: 13px; color: #FFF; line-height: 1.45; word-break: break-word; }
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.drawer-input { padding: 12px 16px; border-top: 1px solid var(--border); background: rgba(14, 23, 24, 0.95); display: flex; gap: 8px; }
.drawer-input input {
  flex: 1; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 10px 16px; color: #FFF;
  font-family: inherit; font-size: 13px; outline: none;
}
.drawer-input input:focus { border-color: var(--primary-light); }
.drawer-input button {
  background: var(--amber); color: #FFF; border: none; border-radius: var(--radius-full);
  padding: 10px 18px; font-family: inherit; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.drawer-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* تجاوب الشاشات الصغيرة للموبايل */
@media (max-width: 768px) {
  .market-dock-wrap {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    align-items: stretch;
  }
  .market-dock-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 75vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none;
  }
  .market-minimized-pill {
    margin: 0 auto 16px;
  }
}

/* ── نافذة المحافظة ── */
.loc-modal-box { max-width: 560px; padding: 24px; }
.loc-search-box {
  width: 100%; background: rgba(7, 13, 14, 0.85); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; color: #FFF; font-family: inherit;
  font-size: 14px; margin: 16px 0; outline: none;
}
.loc-search-box:focus { border-color: var(--primary-light); }
.gov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 46vh; overflow-y: auto; }
@media (max-width: 560px) { .gov-grid { grid-template-columns: 1fr; } }
.gov-item-btn {
  background: rgba(18, 30, 32, 0.7); border: 1px solid var(--border); color: var(--text-secondary);
  padding: 12px 16px; border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; text-align: right; transition: all 0.2s;
}
.gov-item-btn:hover { border-color: var(--primary-light); color: #FFF; background: rgba(18, 120, 118, 0.2); }
.gov-item-btn.active { border-color: var(--amber); background: rgba(224, 148, 30, 0.15); color: #FFF; }

.gps-detect-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(18, 120, 118, 0.15); border: 1.5px solid var(--primary-light);
  color: #FFF; padding: 13px 18px; border-radius: 14px; font-family: inherit;
  font-size: 14px; font-weight: 800; cursor: pointer; transition: all 0.25s; margin-top: 14px;
}
.gps-detect-btn:hover { background: rgba(18, 120, 118, 0.32); transform: translateY(-1px); }

.loc-match-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(18, 30, 32, 0.7); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s;
}
.loc-match-item:hover { border-color: var(--primary-light); background: rgba(18, 120, 118, 0.2); }
.loc-match-title { font-weight: 800; font-size: 14px; color: #FFF; }
.loc-match-parent { font-size: 12px; color: var(--amber); font-weight: 700; margin-top: 2px; }
.loc-match-badge { font-size: 11px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,0.08); color: var(--text-muted); font-weight: 700; }

/* ── المساعد الذكي ── */
.copilot-box { max-width: 560px; height: 78vh; max-height: 700px; }
.copilot-chat { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.6; max-width: 90%; }
.bubble.ai { background: rgba(18, 120, 118, 0.18); border: 1px solid var(--border); align-self: flex-start; }
.bubble.user { background: rgba(224, 148, 30, 0.15); border: 1px solid rgba(224, 148, 30, 0.3); align-self: flex-end; }
.suggestion-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.suggestion-chip {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); padding: 6px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.suggestion-chip:hover { background: rgba(18, 120, 118, 0.25); border-color: var(--primary-light); }
.copilot-input-row { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; background: rgba(14, 23, 24, 0.95); }
.copilot-input-row input {
  flex: 1; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  border-radius: 20px; padding: 11px 18px; color: #FFF; font-family: inherit; font-size: 14px; outline: none;
}
.copilot-input-row input:focus { border-color: var(--primary-light); }
.copilot-input-row button {
  background: var(--primary); color: #FFF; border: none; border-radius: 20px; padding: 11px 20px;
  font-family: inherit; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); animation: typing 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ── التذييل ── */
footer { border-top: 1px solid var(--border); padding: 50px 0 30px; margin-top: 60px; background: rgba(7, 13, 14, 0.95); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 16px; font-weight: 800; color: #FFF; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: color 0.2s; cursor: pointer; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--border-light); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom .fb-right { display: flex; gap: 16px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   لوحة التحكم (Admin) — تُستخدم مع نفس نظام التصميم
   ═══════════════════════════════════════════════════════════ */
.adm-body { background: var(--bg-primary); }

.adm-shell { display: flex; min-height: 100vh; }

.adm-side {
  width: 264px; flex-shrink: 0; background: var(--surface-solid);
  border-left: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.adm-side-head { padding: 20px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 11px; }
.adm-side-title { font-size: 16px; font-weight: 900; color: #FFF; }
.adm-side-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.adm-nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.adm-nav-label { font-size: 10px; font-weight: 800; color: var(--text-muted); padding: 14px 12px 7px; letter-spacing: .4px; }
.adm-nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px;
  background: none; border: none; color: var(--text-secondary); font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; text-align: right; width: 100%;
  transition: background .18s, color .18s;
}
.adm-nav-item:hover { background: rgba(18, 120, 118, .16); color: #FFF; }
.adm-nav-item.active { background: linear-gradient(90deg, var(--primary), rgba(18,120,118,.35)); color: #FFF; box-shadow: 0 4px 14px rgba(18,120,118,.28); }
.adm-nav-ico { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.adm-nav-badge {
  margin-right: auto; background: var(--amber); color: #1A1207; font-size: 10px;
  font-weight: 900; padding: 2px 8px; border-radius: 999px;
}
.adm-side-foot { padding: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
.adm-me { display: flex; align-items: center; gap: 10px; padding: 9px; background: rgba(0,0,0,.28); border-radius: 12px; }
.adm-me-name { font-size: 12.5px; font-weight: 800; color: #FFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-me-mail { font-size: 10.5px; color: var(--text-muted); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  position: sticky; top: 0; z-index: 60; background: rgba(11,20,21,.93); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 14px 24px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.adm-page-title { font-size: 19px; font-weight: 900; color: #FFF; }
.adm-page-sub { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.adm-top-actions { margin-right: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-search {
  display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.32);
  border: 1px solid var(--border); border-radius: 12px; padding: 8px 13px; min-width: 260px;
}
.adm-search input { background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 13.5px; font-weight: 600; width: 100%; }
.adm-search input::placeholder { color: var(--text-muted); }
.adm-content { padding: 24px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.adm-panel { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.adm-panel-head { padding: 15px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(0,0,0,.16); }
.adm-panel-title { font-size: 15px; font-weight: 900; color: #FFF; }
.adm-panel-note { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.adm-panel-actions { margin-right: auto; display: flex; gap: 7px; flex-wrap: wrap; }
.adm-panel-body { padding: 16px 18px; }
.adm-panel-body.flush { padding: 0; }

.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.adm-kpi {
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 17px; position: relative; overflow: hidden;
}
.adm-kpi::after { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.adm-kpi.amber::after { background: var(--amber); }
.adm-kpi.green::after { background: var(--success); }
.adm-kpi.red::after { background: var(--danger); }
.adm-kpi.silver::after { background: #8E9F9F; }
.adm-kpi-label { font-size: 11.5px; color: var(--text-muted); font-weight: 700; margin-bottom: 7px; }
.adm-kpi-value { font-size: 27px; font-weight: 900; color: #FFF; line-height: 1.1; }
.adm-kpi-ico { position: absolute; top: 13px; left: 15px; font-size: 19px; opacity: .5; }
.adm-kpi-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-top: 5px; }

.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.adm-table th {
  text-align: right; padding: 12px 14px; font-size: 11px; font-weight: 800; color: var(--text-muted);
  background: rgba(0,0,0,.28); border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: .3px;
}
.adm-table td { padding: 12px 14px; font-size: 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.adm-table tbody tr:hover { background: rgba(18, 120, 118, .07); }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-t-main { font-weight: 800; color: #FFF; font-size: 13.5px; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-t-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.adm-t-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #142022; }
.adm-t-num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.adm-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.adm-btn {
  border: 1px solid var(--border); background: rgba(255,255,255,.045); color: var(--text-secondary);
  border-radius: 9px; padding: 6px 11px; font-family: inherit; font-size: 12px; font-weight: 800;
  cursor: pointer; transition: all .16s; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.adm-btn:hover { border-color: var(--primary-light); color: #FFF; background: rgba(18,120,118,.2); }
.adm-btn.ok:hover { border-color: var(--success); color: var(--success); background: rgba(16,185,129,.14); }
.adm-btn.warn:hover { border-color: var(--amber); color: var(--amber); background: rgba(224,148,30,.14); }
.adm-btn.danger:hover { border-color: var(--danger); color: #FCA5A5; background: rgba(239,68,68,.14); }
.adm-btn.sm { padding: 4px 9px; font-size: 11px; }
.adm-btn[disabled] { opacity: .45; cursor: not-allowed; }

.adm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.adm-chip.ok { background: rgba(16,185,129,.16); color: var(--success); border: 1px solid rgba(16,185,129,.35); }
.adm-chip.warn { background: rgba(245,158,11,.14); color: #FCD34D; border: 1px solid rgba(245,158,11,.35); }
.adm-chip.err { background: rgba(239,68,68,.14); color: #FCA5A5; border: 1px solid rgba(239,68,68,.35); }
.adm-chip.info { background: rgba(37,99,235,.16); color: #93C5FD; border: 1px solid rgba(37,99,235,.35); }
.adm-chip.mute { background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border); }
.adm-chip.gold { background: rgba(224,148,30,.16); color: var(--amber); border: 1px solid rgba(224,148,30,.38); }

.adm-bars { display: flex; flex-direction: column; gap: 11px; }
.adm-bar-row { display: flex; align-items: center; gap: 11px; font-size: 12.5px; }
.adm-bar-name { width: 118px; flex-shrink: 0; font-weight: 700; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bar-track { flex: 1; height: 9px; background: rgba(0,0,0,.34); border-radius: 999px; overflow: hidden; }
.adm-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width .5s ease; }
.adm-bar-fill.amber { background: linear-gradient(90deg, var(--amber-dark), var(--amber)); }
.adm-bar-val { width: 46px; text-align: left; font-weight: 800; color: #FFF; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.adm-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.adm-login-box {
  width: 100%; max-width: 420px; background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: 24px; padding: 34px 30px; box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.adm-login-logo { width: 62px; height: 62px; border-radius: 19px; background: linear-gradient(135deg, var(--primary), #0a5250); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 16px; }
.adm-login-title { text-align: center; font-size: 20px; font-weight: 900; color: #FFF; }
.adm-login-sub { text-align: center; font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin: 6px 0 24px; }
.adm-alert { border-radius: 11px; padding: 11px 14px; font-size: 12.5px; font-weight: 700; margin-bottom: 16px; }
.adm-alert.err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.34); color: #FCA5A5; }
.adm-alert.ok { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.32); color: #6EE7B7; }
.adm-alert.warn { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.32); color: #FCD34D; }
.adm-alert.info { background: rgba(18,120,118,.14); border: 1px solid var(--border); color: var(--text-secondary); }

.adm-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.adm-stat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 12.5px; }
.adm-stat-row:last-child { border-bottom: none; }
.adm-stat-row .k { color: var(--text-muted); font-weight: 700; }
.adm-stat-row .v { color: #FFF; font-weight: 800; font-variant-numeric: tabular-nums; }

.adm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-sel {
  background: rgba(0,0,0,.32); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 8px 12px; outline: none; cursor: pointer;
}
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.adm-mail-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.adm-mail-row:last-child { border-bottom: none; }
.adm-mail-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(18,120,118,.18); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.adm-mail-body { flex: 1; min-width: 0; }
.adm-mail-subject { font-size: 13.5px; font-weight: 800; color: #FFF; margin-bottom: 3px; }
.adm-mail-meta { font-size: 11px; color: var(--text-muted); font-weight: 600; direction: ltr; text-align: right; }
.adm-mail-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin-top: 7px; white-space: pre-wrap; }

.adm-empty { text-align: center; padding: 46px 20px; color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.adm-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--border); border-top-color: var(--primary-light); border-radius: 50%; animation: adm-spin .7s linear infinite; }
@keyframes adm-spin { to { transform: rotate(360deg); } }
.adm-row-loading td { padding: 26px 14px; text-align: center; color: var(--text-muted); }

.adm-mobile-toggle { display: none; }

@media (max-width: 1000px) {
  .adm-side {
    position: fixed; inset-inline-end: 0; top: 0; z-index: 90; transform: translateX(100%);
    transition: transform .25s ease; box-shadow: -12px 0 40px rgba(0,0,0,.6);
  }
  html[dir="rtl"] .adm-side { transform: translateX(100%); }
  .adm-side.open { transform: translateX(0) !important; }
  .adm-mobile-toggle { display: inline-flex; }
  .adm-content { padding: 16px; }
  .adm-top { padding: 12px 16px; }
  .adm-search { min-width: 0; width: 100%; order: 5; }
}

/* ── شريط حالة الاتصال ── */
.conn-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: rgba(14, 23, 24, 0.97); border-top: 1px solid var(--border);
  padding: 7px 20px; display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 11px; font-weight: 700; color: var(--text-muted); flex-wrap: wrap;
}
.conn-bar .item { display: flex; align-items: center; gap: 5px; }
.conn-bar .dot { width: 7px; height: 7px; border-radius: 50%; }
.conn-bar .dot.ok { background: var(--success); box-shadow: 0 0 6px var(--success); }
.conn-bar .dot.err { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.conn-bar .dot.warn { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
body.has-conn-bar { padding-bottom: 34px; }

@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; }
  .header-center { order: 3; width: 100%; max-width: none; margin: 0; }
  .header-actions { margin-right: auto; }
  .header-search { width: 100%; }
  .brand-slogan { display: none; }
  .market-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .floating-copilot-btn { bottom: 46px; left: 16px; padding: 10px 16px; font-size: 13px; }
}

.detail-views{font-size:12.5px;color:#8FA0B5;font-weight:700;margin-top:6px}

/* ==========================================================================
   القائمة الجانبية الذكية (Smart Drawer)
   ========================================================================== */
.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(18, 120, 118, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.menu-toggle-btn:hover {
  background: rgba(18, 120, 118, 0.25);
  border-color: var(--primary-light);
  transform: scale(1.04);
}

.smart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.smart-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.smart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #091214;
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.smart-drawer-backdrop.active .smart-drawer {
  transform: translateX(0);
}

.smart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 24, 26, 0.95);
}
.drawer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(18, 120, 118, 0.35));
}
.drawer-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.drawer-brand-text { display: flex; flex-direction: column; }
.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.4);
}

.smart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 24px;
}

.smart-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  width: 100%;
}
.drawer-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: var(--border-light);
  transform: translateX(-4px);
}
.drawer-nav-item.active {
  background: rgba(18, 120, 118, 0.2);
  border-color: var(--primary);
  color: #fff;
}
.drawer-nav-item.highlight-teal {
  background: rgba(18, 120, 118, 0.15);
  border-color: rgba(18, 120, 118, 0.4);
  color: #2cd5d1;
}
.drawer-nav-item.highlight-amber {
  background: rgba(224, 148, 30, 0.12);
  border-color: rgba(224, 148, 30, 0.35);
  color: var(--amber-light);
}

.drawer-badge {
  margin-right: auto;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}
.drawer-badge.amber { background: var(--amber); color: #fff; }
.drawer-badge.teal { background: var(--primary); color: #fff; }

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  margin-right: auto;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--success); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.drawer-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 20px 10px 8px;
}
.drawer-gov-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-gov-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.drawer-gov-chip:hover, .drawer-gov-chip.active {
  background: rgba(18, 120, 118, 0.15);
  border-color: var(--primary);
  color: #fff;
}
.drawer-gov-chip .chip-cnt {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
}

.drawer-promo-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(18, 120, 118, 0.2), rgba(224, 148, 30, 0.12));
  border: 1px solid var(--border);
}
.drawer-promo-card .promo-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 4px;
}
.drawer-promo-card .promo-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.drawer-promo-card .promo-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.smart-drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: rgba(10, 18, 20, 0.95);
  font-size: 11.5px;
  color: var(--text-muted);
}
.drawer-contact-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   مشغل الريلز نمط تيك توك على الديسكتوب (TikTok Reels 3-Column Overlay)
   ========================================================================== */
.tiktok-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(3, 7, 8, 0.96);
  backdrop-filter: blur(28px);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.tiktok-overlay.active {
  display: flex;
}

.tiktok-close-btn {
  position: fixed;
  top: 18px;
  left: 24px;
  z-index: 2400;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.tiktok-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  transform: rotate(90deg);
}

.tiktok-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* العمود الأيمن (عقارات مشابهة في RTL) */
.tiktok-side-col {
  width: 320px;
  flex-shrink: 0;
  background: rgba(9, 16, 17, 0.88);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2250;
}
.tiktok-similar-col {
  border-left: 1px solid var(--border);
}
.tiktok-col-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 25, 27, 0.95);
}
.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.col-icon { font-size: 22px; }
.col-title { font-size: 15px; font-weight: 800; color: #fff; }
.col-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.tiktok-similar-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.similar-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}
.similar-card:hover {
  background: rgba(18, 120, 118, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.similar-card.active-reel {
  border-color: var(--amber);
  background: rgba(224, 148, 30, 0.15);
}
.similar-card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}
.similar-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.similar-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.similar-card-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--amber);
  margin-bottom: 4px;
}
.similar-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* العمود الأوسط (فيديو الريلز 9:16) */
.tiktok-center-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #020405;
  overflow: hidden;
  padding: 16px 20px;
}

.tiktok-nav-arrow {
  position: absolute;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2300;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.tiktok-nav-arrow:hover {
  background: rgba(18, 120, 118, 0.4);
  border-color: var(--primary);
  transform: scale(1.1);
}
.tiktok-nav-arrow.up { top: 35%; }
.tiktok-nav-arrow.down { bottom: 35%; }

.tiktok-player-wrapper {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 92vh;
  max-height: 860px;
  aspect-ratio: 9/16;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
  cursor: pointer;
}

.tiktok-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}
.tiktok-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.tiktok-play-indicator {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.tiktok-play-indicator.show {
  opacity: 1;
  transform: scale(1);
}

/* شريط التفاعل الجانبي العائم (ستايل تيك توك) */
.tiktok-actions-bar {
  position: absolute;
  bottom: 84px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 20;
}
.tiktok-actions-bar .action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tiktok-actions-bar .action-item:hover {
  transform: scale(1.15);
}
.action-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.tiktok-actions-bar .action-item.active-liked .action-icon-circle {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
}
.tiktok-actions-bar .action-item.active-saved .action-icon-circle {
  background: rgba(224, 148, 30, 0.35);
  border-color: var(--amber);
}
.tiktok-actions-bar .action-count {
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.avatar-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  overflow: hidden;
}
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; }

/* شريط التقدم */
.tiktok-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 25;
  cursor: pointer;
}
.tiktok-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--amber));
  transition: width 0.1s linear;
}

/* تفاصيل العقار السفلية فوق الفيديو */
.tiktok-bottom-info {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 74px;
  z-index: 15;
  color: #fff;
  text-align: right;
  pointer-events: auto;
}
.tiktok-publisher-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tiktok-pub-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  flex-shrink: 0;
}
.tiktok-pub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tiktok-pub-name {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tiktok-pub-time {
  font-size: 11px;
  color: var(--text-muted);
}
.tiktok-follow-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  margin-right: auto;
  transition: all 0.2s ease;
}
.tiktok-follow-btn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}
.tiktok-prop-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tiktok-prop-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--amber);
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.tiktok-prop-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.tiktok-prop-location {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* العمود الأيسر (بيانات العقار والتعليقات في RTL) */
.tiktok-details-col {
  width: 390px;
  border-right: 1px solid var(--border);
  background: rgba(10, 18, 19, 0.95);
}
.tiktok-col-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 25, 27, 0.98);
}
.tiktok-col-tab {
  flex: 1;
  padding: 16px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tiktok-col-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}
.tiktok-col-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
  background: rgba(18, 120, 118, 0.08);
}
.tab-badge {
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 900;
  background: var(--card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.tiktok-col-tab.active .tab-badge {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tiktok-tab-content {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.tiktok-tab-content.active {
  display: flex;
}

.detail-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prop-highlight-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(18, 120, 118, 0.12);
  border: 1px solid var(--border);
}
.highlight-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--amber);
  margin-bottom: 8px;
}
.highlight-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.highlight-badge {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
}
.highlight-badge.deal { background: var(--primary); color: #fff; }
.highlight-badge.payment { background: rgba(255,255,255,0.08); color: var(--text-secondary); }
.highlight-badge.category { background: rgba(224,148,30,0.2); color: var(--amber-light); }

.spec-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.modern-spec-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  text-align: center;
}
.modern-spec-val {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.modern-spec-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.detail-block {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
}
.block-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.block-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.publisher-card .pub-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pub-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
}
.pub-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pub-card-name { font-size: 15px; font-weight: 800; color: #fff; }
.pub-card-meta { font-size: 11.5px; color: var(--text-muted); }
.pub-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-pub-action {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-pub-action.call { background: var(--primary); color: #fff; }
.btn-pub-action.call:hover { background: var(--primary-light); }
.btn-pub-action.whatsapp { background: #25D366; color: #fff; }
.btn-pub-action.whatsapp:hover { background: #20BA5C; }
.btn-pub-action.chat { background: rgba(224, 148, 30, 0.15); border: 1px solid var(--amber); color: var(--amber-light); }
.btn-pub-action.chat:hover { background: var(--amber); color: #fff; }

/* قسم التعليقات المباشر */
.comments-scroll-box {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.empty-comments {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}
.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.comment-content {
  flex: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.comment-author {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.comment-time {
  font-size: 10.5px;
  color: var(--text-muted);
}
.comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.comments-input-area {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: rgba(14, 25, 27, 0.98);
}
.comment-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 8px 5px 16px;
  transition: border-color 0.2s;
}
.comment-input-wrap:focus-within {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
}
.comment-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}
.comment-input-wrap input::placeholder {
  color: var(--text-muted);
}
.btn-send-comment {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-send-comment:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(18, 120, 118, 0.5);
}

/* تجاوب الشاشات الصغيرة للمشغل */
@media (max-width: 1060px) {
  .tiktok-side-col.tiktok-similar-col { display: none; }
  .tiktok-details-col { width: 340px; }
}
@media (max-width: 768px) {
  .tiktok-layout { flex-direction: column; }
  .tiktok-details-col {
    width: 100%;
    height: 45vh;
    border-right: none;
    border-top: 1px solid var(--border);
  }
  .tiktok-center-col { height: 55vh; padding: 0; }
  .tiktok-player-wrapper { height: 100%; max-height: none; border-radius: 0; }
  .tiktok-nav-arrow { display: none; }
}

/* ==========================================================================
   حركات التمرير والأكشن والتأثيرات السينمائية (Scroll Motion & Dynamic Actions)
   ========================================================================== */

/* ── حركة الظهور التدريجي السلسة عند التمرير (Scroll-Driven Reveal) ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* تأخير متتابع (Staggered Animation) لبطاقات العقارات والريلز */
.properties-grid .prop-card.scroll-reveal:nth-child(1),
.requests-grid .request-card.scroll-reveal:nth-child(1),
.reels-grid .reel-card.scroll-reveal:nth-child(1) { transition-delay: 0.04s; }
.properties-grid .prop-card.scroll-reveal:nth-child(2),
.requests-grid .request-card.scroll-reveal:nth-child(2),
.reels-grid .reel-card.scroll-reveal:nth-child(2) { transition-delay: 0.10s; }
.properties-grid .prop-card.scroll-reveal:nth-child(3),
.requests-grid .request-card.scroll-reveal:nth-child(3),
.reels-grid .reel-card.scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.properties-grid .prop-card.scroll-reveal:nth-child(4),
.requests-grid .request-card.scroll-reveal:nth-child(4),
.reels-grid .reel-card.scroll-reveal:nth-child(4) { transition-delay: 0.22s; }
.properties-grid .prop-card.scroll-reveal:nth-child(5),
.requests-grid .request-card.scroll-reveal:nth-child(5) { transition-delay: 0.28s; }
.properties-grid .prop-card.scroll-reveal:nth-child(6),
.requests-grid .request-card.scroll-reveal:nth-child(6) { transition-delay: 0.34s; }

/* ── تحسين حركة وتأثيرات بطاقات العقارات (Spring Lift & Golden Glow) ── */
.prop-card {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s ease, border-color 0.38s ease !important;
}
.prop-card:hover {
  transform: translateY(-8px) scale(1.015) !important;
  border-color: var(--primary-light) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 26px var(--primary-glow) !important;
}
.prop-card:hover .prop-price {
  background: linear-gradient(90deg, #E0941E 0%, #FFF385 50%, #E0941E 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 2s linear infinite;
}
@keyframes shine-text {
  to { background-position: 200% center; }
}

/* ── تأثيرات الريلز (Pulse & Glow) ── */
.reel-card {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s ease, border-color 0.38s ease !important;
}
.reel-card:hover {
  transform: translateY(-8px) scale(1.025) !important;
  border-color: var(--amber) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.85), 0 0 26px var(--amber-glow) !important;
}
.reel-card:hover .reel-play-icon {
  transform: scale(1.18);
  box-shadow: 0 0 22px var(--amber-glow);
  animation: heart-pulse 1.3s infinite;
}
@keyframes heart-pulse {
  0% { transform: scale(1.1); }
  50% { transform: scale(1.24); }
  100% { transform: scale(1.1); }
}

/* ── بطاقات الطلبات (Request Cards Spring) ── */
.request-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}
.request-card:hover {
  transform: translateY(-6px) scale(1.012) !important;
  border-color: var(--amber) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.8), 0 0 22px var(--amber-glow) !important;
}

/* ── رأس الصفحة التفاعلي مع السكرول (Header Scroll Dynamics) ── */
header {
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
header.header-scrolled {
  background: rgba(5, 10, 11, 0.96) !important;
  backdrop-filter: blur(22px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(18, 120, 118, 0.45);
}
header.header-scrolled .nav-inner {
  padding: 10px 0 !important;
}

/* ── زر الصعود للأعلى الطافي الذكي (Scroll to Top Floating Button) ── */
.scroll-top-btn {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 2100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 25, 27, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--primary-glow);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.scroll-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 24px var(--primary-glow);
}
.scroll-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.scroll-top-btn:hover .scroll-arrow {
  transform: translateY(-3px);
}

/* ── تفاعل رؤوس الأقسام واللافتات (Section Header & Banners Dynamics) ── */
.section-badge-icon {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.section-head:hover .section-badge-icon {
  transform: rotate(-12deg) scale(1.2);
}
.hero-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease !important;
}
.hero-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 24px var(--primary-glow) !important;
}
.hero-card.amber-theme:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 24px var(--amber-glow) !important;
}

/* ── أزرار التبويب والفلاتر التفاعلية المرنة ── */
.feed-tab {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.feed-tab:active {
  transform: scale(0.96);
}
.cat-pill {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.cat-pill:hover {
  transform: translateY(-2px);
}
.cat-pill:active {
  transform: scale(0.95);
}

/* ── لافتة السوق التفاعلية ── */
.market-banner {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.market-banner:hover {
  transform: translateY(-5px) scale(1.008) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 28px rgba(224, 148, 30, 0.3) !important;
}

/* ══════════════════════════════════════════════════════════════
   أزرار ولافتات تطبيق Google Play (Ammari Mobile App)
   ══════════════════════════════════════════════════════════════ */
.header-playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(18, 120, 118, 0.25), rgba(7, 13, 14, 0.8));
  border: 1px solid rgba(18, 120, 118, 0.45);
  color: #5EEAD4 !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.header-playstore-btn:hover {
  background: linear-gradient(135deg, rgba(18, 120, 118, 0.4), rgba(24, 158, 155, 0.2));
  border-color: #2DD4BF;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 120, 118, 0.4);
}
@media (max-width: 900px) {
  .header-playstore-btn { display: none; }
}

/* لافتة إطلاق التطبيق الفاخرة */
.app-launch-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 30, 32, 0.95) 0%, rgba(7, 15, 17, 0.98) 60%, rgba(18, 40, 42, 0.9) 100%);
  border: 1.5px solid rgba(18, 120, 118, 0.45);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin: 12px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.app-launch-banner:hover {
  border-color: rgba(24, 158, 155, 0.7);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(18, 120, 118, 0.25);
}
.app-launch-glow {
  position: absolute;
  top: -60px;
  left: 20%;
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(18, 120, 118, 0.35) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.app-launch-content {
  flex: 1;
  z-index: 2;
  text-align: right;
}
.app-launch-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.app-live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.app-launch-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.app-launch-edition {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.app-launch-heading {
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.app-launch-subtext {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 720px;
}

/* زر Google Play الرسمي */
.app-launch-action {
  flex-shrink: 0;
  z-index: 2;
}
.google-play-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.google-play-badge-link:hover {
  background: #0B1315;
  border-color: #2DD4BF;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(18, 120, 118, 0.4);
}
.play-svg-icon {
  flex-shrink: 0;
}
.play-btn-texts {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.15;
}
.play-sub {
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.5px;
}
.play-main {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.2px;
}

/* زر Google Play داخل الدرج الجانبي */
.drawer-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #127876, #0A4F4E);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none !important;
  margin-top: 14px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.drawer-play-btn:hover {
  background: linear-gradient(135deg, #189e9b, #127876);
  transform: translateY(-1px);
}

/* شريط التثبيت العائم للموبايل */
.mobile-floating-app-bar {
  display: none;
}
@media (max-width: 768px) {
  .app-launch-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
    margin: 8px 0 16px;
  }
  .google-play-badge-link {
    justify-content: center;
    width: 100%;
  }
  .mobile-floating-app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 13, 14, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(18, 120, 118, 0.35);
    padding: 10px 16px;
    z-index: 9999;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
  }
  .mobile-app-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
  }
  .mobile-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
  }
  .mobile-app-name {
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-app-tag {
    font-size: 10.5px;
    color: #2DD4BF;
    white-space: nowrap;
  }
  .mobile-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #127876;
    color: #FFFFFF !important;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none !important;
    flex-shrink: 0;
  }
  .mobile-app-dismiss {
    color: #64748B;
    font-size: 14px;
    padding: 4px;
    cursor: pointer;
  }
}

