/* ==========================================================================
   منصة ذلول الإبل - الهوية البدوية ونظام الألوان الصحراوي الفاخر
   ========================================================================== */

:root {
  /* ألوان الذهب الصحراوي والرمال */
  --gold-primary: #d4af37;
  --gold-light: #f5e7b8;
  --gold-dark: #9e7d23;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --sand-50: #fbf8f2;
  --sand-100: #f4eee1;
  --sand-200: #e7dac3;
  --sand-300: #d5be9b;
  --sand-400: #c29b68;
  --sand-500: #aa7f4a;
  --sand-600: #885f34;
  --sand-800: #422d17;
  --sand-900: #23170b;

  /* خلفية ليل الصحراء الفخمة */
  --bg-deep: #090806;
  --bg-surface: #13100c;
  --bg-card: rgba(22, 18, 13, 0.78);
  --border-subtle: rgba(212, 175, 55, 0.2);
  --border-active: rgba(212, 175, 55, 0.6);

  /* خطوط وتأثيرات */
  --font-arabic: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-gold: 0 8px 32px -4px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.6);

  /* ==========================================================================
     مقاسات التصميم والكتابة (UI/UX Typography & Layout) المعتمدة عالمياً
     لأنظمة أندرويد وآيفون (Points/Dp & Sp Standard System)
     ========================================================================== */
  /* 1. العناوين الرئيسية الكبيرة (Titles / H1): 24sp إلى 32sp */
  --sp-h1-max: 32px;
  --sp-h1-min: 24px;
  --sp-h1: clamp(24px, 4.5vw, 32px);

  /* 2. عناوين الأقسام الفرعية (Subtitles / H2): 18sp إلى 22sp */
  --sp-h2-max: 22px;
  --sp-h2-min: 18px;
  --sp-h2: clamp(18px, 2.8vw, 22px);

  /* 3. النصوص الأساسية والعادية (Body Text): 14sp أو 16sp لراحة العين */
  --sp-body: 15px;
  --sp-body-large: 16px;
  --sp-body-small: 14px;

  /* 4. نصوص الأزرار والعناصر الصغيرة (Buttons & Captions): 11sp إلى 13sp */
  --sp-btn-caption: 12px;
  --sp-caption-max: 13px;
  --sp-caption-min: 11px;

  /* 5. نظام الشبكة والهوامش بمضاعفات 4 و 8 (Grid & Padding: 16dp / 24dp) */
  --dp-spacing-4: 4px;
  --dp-spacing-8: 8px;
  --dp-spacing-12: 12px;
  --dp-spacing-16: 16px;  /* الهامش المعياري الأساسي للهواتف */
  --dp-spacing-24: 24px;  /* الهامش المعياري للهواتف الكبيرة والكمبيوتر */
  --dp-spacing-32: 32px;

  /* 6. مساحات اللمس والعناصر التفاعلية المعتمدة (Touch Targets: 48x48 dp) */
  --dp-touch-min: 48px;
}

/* ==========================================================================
   نمط شمس الصياهد النهاري المشرق (Royal Daylight Theme)
   ========================================================================== */
body.light-theme {
  --bg-deep: #f7f4ee;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --border-subtle: rgba(194, 155, 104, 0.35);
  --border-active: rgba(184, 138, 36, 0.75);
  
  --sand-50: #1a140e;
  --sand-100: #1c150e;
  --sand-200: #2c2217;
  --sand-300: #52402e;
  --sand-400: #73593f;
  --sand-500: #9e7d23;
  --sand-600: #b88a24;
  --sand-800: #e2d3be;
  --sand-900: #f5eee3;

  --gold-primary: #b88a24;
  --gold-light: #8f6713;
  --gold-dark: #6e4e0b;
  --gold-glow: rgba(184, 138, 36, 0.25);

  background: radial-gradient(circle at 50% 15%, #ffffff 0%, #f7f2e7 55%, #eae0ce 100%) !important;
  color: #1c150e !important;
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(194, 155, 104, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .brand-title h1 {
  background: linear-gradient(90deg, #1c150e, #7a5e1e, #b88a24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .nav-item a {
  color: #3b2e20;
}

body.light-theme .nav-item a:hover,
body.light-theme .nav-item a.active {
  color: var(--gold-primary);
}

body.light-theme .auction-card-glass {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(184, 138, 36, 0.5);
  box-shadow: 0 16px 45px rgba(110, 78, 11, 0.12);
}

body.light-theme .camel-title-box h2 {
  color: #1c150e;
}

body.light-theme .metric-item .countdown {
  color: #1c150e;
}

body.light-theme .camera-btn,
body.light-theme .spec-chip {
  background: rgba(255, 255, 255, 0.9);
  color: #1c150e;
  border-color: rgba(194, 155, 104, 0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

body.light-theme .spec-chip .value {
  color: #1c150e;
}

body.light-theme .interaction-hint {
  background: rgba(255, 255, 255, 0.85);
  color: #3b2e20;
  border-color: rgba(194, 155, 104, 0.4);
}

body.light-theme .suhail-greeting-popup,
body.light-theme .suhail-chat-window,
body.light-theme .bid-modal-content,
body.light-theme .ai-modal-card {
  background: #ffffff;
  color: #1c150e;
  border-color: rgba(184, 138, 36, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.light-theme .greeting-text,
body.light-theme .modal-header h3,
body.light-theme .ai-modal-header h2,
body.light-theme .chat-header-name {
  color: #1c150e;
}

body.light-theme .message-bubble.bot {
  background: #f4eee2;
  color: #1c150e;
  border-color: rgba(194, 155, 104, 0.3);
}

body.light-theme .raw-textarea,
body.light-theme .chat-text-input {
  background: #fcfbfa;
  color: #1c150e;
  border-color: rgba(194, 155, 104, 0.4);
}

/* زر تبديل الثيم الفاخر (متساوي ومتوسط في المنتصف بدقة متناهية) */
.btn-theme-toggle {
  background: rgba(212, 175, 55, 0.12);
  border: none;
  color: var(--gold-light);
  width: 38px;
  height: 38px;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  transition: var(--transition-smooth);
}

.btn-theme-toggle span,
#theme-toggle-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.btn-theme-toggle:hover {
  background: var(--gold-primary);
  color: #0c0a07;
  transform: translateY(-1px);
}

body.light-theme .btn-theme-toggle {
  background: rgba(184, 138, 36, 0.12);
  color: #52402e;
  border-color: rgba(184, 138, 36, 0.5);
}

body.light-theme .btn-theme-toggle:hover {
  background: var(--gold-primary);
  color: #fff;
}

/* إعادة الضبط الأساسية */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-arabic);
  background-color: var(--bg-deep);
  color: var(--sand-100);
  direction: rtl;
  text-align: right;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at 50% 25%, #23190e 0%, #0d0a07 65%, #050403 100%);
}

/* خلفية النجوم والرمال الناعمة */
.desert-ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(194, 155, 104, 0.08) 0%, transparent 45%);
  z-index: 1;
}

/* ==========================================================================
   الشريط العلوي البسيط (Header / Navbar)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  background: rgba(12, 10, 7, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

/* الشعار الرسمي المعتمد لمنصة وتطبيق ذلول الإبل (بحجم أكبر وواضح في المنصة) */
.official-brand-logo {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}

.official-brand-logo:hover {
  transform: scale(1.03);
}

/* شعار القائمة الجانبية مصغر قليلاً ومفصول عن أيقونة القمر لتفادي الالتصاق */
.drawer-official-logo {
  width: auto;
  max-width: 135px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(136, 95, 52, 0.1));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.brand-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--gold-primary);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title span {
  font-size: 0.78rem;
  color: var(--sand-400);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* روابط التصفح البسيطة */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-item a {
  color: var(--sand-200);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

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

.nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-primary);
}

/* إجراءات الشريط العلوي */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* إخفاء زر مزايدة سريعة من القائمة والشريط العلوي في جميع الأجهزة والموقع وتطبيقات الآيفون والأندرويد */
.header-bid-desktop,
.btn-primary-header,
#open-bid-modal-btn {
  display: none !important;
}

.btn-ambient {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-300);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-ambient:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--sand-500));
  color: #0d0a07;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

/* ==========================================================================
   المساحة الرئيسية والعارض ثلاثي الأبعاد (3D Viewer)
   ========================================================================== */

.main-stage {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 10;
}

/* حاوية الكانفاس */
#viewer-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: grab;
}

#viewer-container:active {
  cursor: grabbing;
}

/* ==========================================================================
   المسرح السينمائي الفاخر (Ultra-Luxury Showcase Stage)
   ========================================================================== */

.luxury-showcase-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stage-lighting-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.18) 0%, rgba(194, 155, 104, 0.05) 50%, transparent 80%);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.luxury-showcase-stage.night-mode .stage-lighting-ambient {
  background: radial-gradient(circle at 50% 45%, rgba(100, 160, 255, 0.22) 0%, rgba(40, 70, 120, 0.08) 50%, transparent 80%);
}

/* حلقة المنصة الملكية ثلاثية الأبعاد */
.pedestal-hologram-ring {
  position: absolute;
  bottom: 14vh;
  width: 55vw;
  max-width: 650px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.35), inset 0 0 30px rgba(212, 175, 55, 0.2);
  transform: rotateX(68deg);
  pointer-events: none;
}

.inner-glow-ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.6);
  animation: rotatePedestal 25s linear infinite;
}

@keyframes rotatePedestal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* هيكل العرض الواقعي ثلاثي الأبعاد - مصغر بنسبة 20% لراحة وأناقة أكبر */
.camel-3d-chassis {
  position: relative;
  max-width: 700px; /* تم التصغير بنسبة 20% */
  width: 67vw;
  max-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: grab;
}

.camel-real-image {
  max-width: 100%;
  max-height: 45vh; /* تم التصغير بنسبة 20% */
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 25px rgba(212, 175, 55, 0.25));
  transition: var(--transition-smooth);
  user-select: none;
  -webkit-user-drag: none;
}

/* نقاط الفحص التفاعلية الذكية (Interactive Hotspots) */
.inspection-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.inspection-hotspot:hover {
  transform: scale(1.2);
}

.spot-head {
  top: 18%;
  right: 23%;
}

.spot-saddle {
  top: 26%;
  left: 36%;
}

.spot-hump {
  top: 19%;
  left: 48%;
}

.hotspot-point {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #0c0a07;
  font-size: 0.76rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--gold-primary);
}

.hotspot-pulse {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

.hotspot-tooltip {
  position: absolute;
  bottom: 120%;
  right: 50%;
  transform: translateX(50%);
  background: rgba(14, 11, 7, 0.95);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hotspot-tooltip strong {
  font-size: 0.78rem;
  color: var(--gold-light);
}

.hotspot-tooltip span {
  font-size: 0.7rem;
  color: var(--sand-300);
}

.inspection-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(50%) translateY(-6px);
}

/* كانفاس ذرات الذهب */
.gold-dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

/* صورة سهيل الواقعية الفاخرة */
.suhail-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* أزرار التكبير والتقريب في المنتصف أفقياً بشكل مستقيم (Desktop) */
.stage-zoom-controls {
  position: absolute;
  top: 250px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 30;
  pointer-events: auto;
}

.btn-zoom-action {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 50%;
  background: rgba(22, 17, 12, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ffe066;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.btn-zoom-action:hover {
  background: var(--gold-primary);
  color: #0c0a07;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.btn-zoom-action:active {
  transform: scale(0.92);
}

/* ==========================================================================
   أيقونة مزايدة سريعة المستطيلة ثلاثية الأبعاد الذهبية تحت الجمل في المنتصف (3D Golden Rectangular Icon)
   ========================================================================== */
.stage-quick-action-zone {
  position: absolute;
  bottom: calc(2rem + 115px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 35;
  pointer-events: auto;
}

/* الأيقونة المستطيلة ثلاثية الأبعاد الذهبية الملكية الفاخرة بحجم 1 سانتي مصغر وأنيق */
.btn-stage-quick-bid.btn-quick-bid-3d-rect {
  pointer-events: auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 3px 2px !important;
  /* سبيكة ذهب ملكية ثلاثية الأبعاد بتدرج لامع */
  background: linear-gradient(145deg, #fff7c2 0%, #fbd561 22%, #d4af37 50%, #b88a1e 78%, #785208 100%) !important;
  border-radius: 8px !important;
  border: 1.5px solid #ffe57f !important;
  outline: 1px solid rgba(138, 98, 18, 0.95) !important;
  outline-offset: -2px !important;
  box-shadow: 
    0 6px 14px rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(212, 175, 55, 0.5),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(100, 68, 8, 0.6) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: visible !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.btn-stage-quick-bid.btn-quick-bid-3d-rect::after {
  content: '';
  position: absolute;
  inset: -6px;
  background: transparent;
  pointer-events: auto;
}

.btn-stage-quick-bid.btn-quick-bid-3d-rect:hover {
  transform: translateY(-2px) scale(1.06) !important;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(255, 215, 0, 0.8),
    inset 0 1.5px 2px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(100, 68, 8, 0.7),
    0 0 0 1.5px #ffd700 !important;
}

.btn-stage-quick-bid.btn-quick-bid-3d-rect:active {
  transform: translateY(1px) scale(0.96) !important;
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(90, 60, 5, 0.8) !important;
}

/* شريط الإضاءة واللمعان البلوري ثلاثي الأبعاد */
.rect-3d-light-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  border-radius: 7px 7px 50% 50% / 7px 7px 15% 15%;
  pointer-events: none;
}

/* أيقونة الصاعقة المشعة في الأعلى */
.rect-3d-lightning-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0px !important;
  line-height: 1 !important;
  z-index: 2 !important;
}

.rect-3d-lightning-icon .lightning-symbol {
  font-size: 0.85rem !important;
  color: #ffffff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 5px #ffeb3b) !important;
  display: inline-block !important;
  animation: lightning-pulse 2s infinite ease-in-out;
}

@keyframes lightning-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 5px #ffeb3b); }
  50% { transform: scale(1.1); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px #ffffff); }
}

/* كتلة النص: مزايدة سريعة محفورة باللون البني المحروق والأسود الملكي البارز على الذهب */
.rect-3d-text-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.05 !important;
  z-index: 2 !important;
}

.rect-3d-text-block .word-bid,
.rect-3d-text-block .word-quick {
  font-family: var(--font-arabic), 'Cairo', sans-serif !important;
  font-size: 0.54rem !important;
  font-weight: 900 !important;
  color: #140d04 !important;
  text-shadow: 0 0.5px 0 rgba(255, 245, 190, 0.85);
  letter-spacing: -0.2px !important;
  white-space: nowrap !important;
}

/* رسالة التفاعل السريع */
.interaction-hint {
  position: relative;
  background: rgba(18, 14, 9, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--sand-300);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: fadeInDown 1s ease-out;
  z-index: 15;
}

.interaction-hint svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-primary);
}

/* عناصر تحكم الكاميرا وزوايا الرؤية */
.camera-controls-bar {
  position: absolute;
  top: 145px;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.camera-btn {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-200);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.camera-btn:hover,
.camera-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateX(-3px);
}

/* شارات تفاعلية فوق النموذج (3D Hotspots) */
.spec-badge-floating {
  position: absolute;
  top: 145px;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.spec-chip {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 3px solid var(--gold-primary);
  padding: 10px 16px;
  border-radius: 10px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 160px;
}

.spec-chip .label {
  font-size: 0.72rem;
  color: var(--sand-400);
  font-weight: 500;
}

.spec-chip .value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--sand-100);
}

/* ==========================================================================
   بطاقة المزاد الذكية العائمة في الأسفل (Live Auction Dock)
   ========================================================================== */

.auction-dock-wrapper {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 960px;
  z-index: 30;
}

.auction-card-glass {
  background: var(--bg-card);
  border: none;
  border-radius: 20px;
  padding: 1.4rem 2rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-gold), var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.auction-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.camel-profile-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.camel-status-indicator {
  position: relative;
  width: 14px;
  height: 14px;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  display: block;
}

.status-pulse {
  position: absolute;
  inset: -3px;
  border: 2px solid #10b981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
  opacity: 0.6;
}

.camel-title-box h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.camel-tag {
  font-size: 0.72rem;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.camel-lineage {
  font-size: 0.85rem;
  color: var(--sand-300);
}

/* مؤشرات السوم والعداد */
.auction-metrics {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-item .title {
  font-size: 0.75rem;
  color: var(--sand-400);
  font-weight: 500;
  margin-bottom: 2px;
}

.metric-item .amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-light);
  font-feature-settings: "tnum";
}

.metric-item .currency {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-right: 4px;
}

.metric-item .countdown {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-family: monospace, var(--font-arabic);
  letter-spacing: 1px;
}

/* أزرار المزايدة */
.auction-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-bid-quick {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #ba8a24 100%);
  color: #0c0a07;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-bid-quick:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #f0ca4f 0%, var(--gold-primary) 100%);
}

.btn-secondary-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-200);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary-icon:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* ==========================================================================
   نافذة المزايدة السريعة التفاعلية (Bid Modal)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 2, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9995 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bid-modal-content {
  background: var(--bg-surface);
  border: none;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-gold), var(--shadow-card);
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.modal-backdrop.active .bid-modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 8px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 10, 8, 0.85);
  border: 1.5px solid var(--gold-primary);
  color: #f7d774;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #fff;
  transform: scale(1.1);
}

.single-line-title {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.single-line-subtitle {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 600px) {
  .single-line-title {
    font-size: 1.05rem !important;
  }
  .single-line-subtitle {
    font-size: 0.76rem !important;
  }
}

.modal-header h3 {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--sand-300);
  margin-bottom: 1.5rem;
}

.bid-stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 1.5rem;
}

.step-btn {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border: none;
  color: var(--gold-light);
  border-radius: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.step-btn:hover {
  background: var(--gold-primary);
  color: #0c0a07;
}

.bid-input-display {
  text-align: center;
}

.bid-input-display .number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
}

.bid-input-display .currency {
  font-size: 0.85rem;
  color: var(--sand-400);
  margin-right: 4px;
}

.quick-increments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.8rem;
}

.inc-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-200);
  padding: 10px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.inc-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

/* إشعار نجاح السوم والتنبيهات الذكية (Compact Luxury Pill) */
.toast-notice {
  position: fixed;
  bottom: 5.6rem;
  right: 50%;
  transform: translateX(50%) translateY(16px);
  background: rgba(18, 14, 9, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.6);
  padding: 9px 18px;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), 0 0 16px rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: normal !important;
  line-height: 1.45;
  max-width: min(90vw, 420px);
  width: auto;
  box-sizing: border-box;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

@media (max-width: 768px) {
  .toast-notice {
    bottom: 5.2rem !important;
    padding: 8px 14px !important;
    font-size: 0.74rem !important;
    border-radius: 16px !important;
    white-space: normal !important;
    max-width: min(88vw, 360px) !important;
  }
}

/* ==========================================================================
   التجاوب مع الشاشات (Responsive Design) - موبايل، تابلت، ديسكتوب
   ========================================================================== */

@media (max-width: 960px) and (min-width: 769px) {
  .site-header {
    padding: 0 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .auction-dock-wrapper {
    width: calc(100% - 2rem);
    bottom: 1.2rem;
  }

  .auction-card-glass {
    padding: 1rem 1.4rem;
    gap: 1.2rem;
  }

  .camera-controls-bar {
    top: 110px;
    left: 1.2rem;
  }

  .spec-badge-floating {
    top: 110px;
    right: 1.2rem;
  }
}

/* أنيميشن */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   المرحلة الثانية: محرك الذكاء الاصطناعي للبائعين (AI Content & Pricing)
   ========================================================================== */

/* زر إضافة الحلال بالذكاء الاصطناعي في الشريط العلوي */
.btn-ai-upload {
  background: transparent;
  border: none;
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  transition: var(--transition-smooth);
}

.btn-ai-upload:hover {
  background: transparent;
  color: var(--gold-light);
  transform: none;
  box-shadow: none;
}

.ai-sparkle-icon {
  font-size: 1.1rem;
  animation: sparkleRotate 3s infinite linear;
}

@keyframes sparkleRotate {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* نافذة محرك الذكاء الاصطناعي الكبرى */
.ai-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 2, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.ai-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ai-modal-card {
  background: var(--bg-surface);
  border: none;
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  box-shadow: var(--shadow-gold), var(--shadow-card);
  transform: scale(0.96);
  transition: var(--transition-smooth);
}

.ai-modal-backdrop.active .ai-modal-card {
  transform: scale(1);
}

.ai-modal-header {
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.2rem;
  position: relative;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: none;
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ai-modal-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.ai-modal-header p {
  font-size: 0.88rem;
  color: var(--sand-300);
}

/* منطقة رفع الوسائط (صورة + فيديو 30 ثانية) */
.media-upload-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.upload-box {
  background: rgba(255, 255, 255, 0.025);
  border: 2px dashed var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 0.5rem; min-height: 90px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-box:hover,
.upload-box.has-file {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.06);
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  color: var(--gold-primary);
}

.upload-box .title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sand-100);
  margin-bottom: 2px;
}

.upload-box .subtitle {
  font-size: 0.74rem;
  color: var(--sand-400);
}

.duration-pill {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 6px;
  font-weight: 600;
}

.media-preview-area {
  display: none;
  margin-top: 10px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-height: 240px;
}

.media-preview-area img,
.media-preview-area video {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 10px;
  background-color: rgba(0,0,0,0.2);
}

/* زر استوديو تحسين الخلفية بالذكاء الاصطناعي */
.btn-open-bg-studio {
  display: none;
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(16, 185, 129, 0.15));
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-open-bg-studio:hover {
  background: linear-gradient(135deg, var(--gold-primary), #10b981);
  color: #0c0a07;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* نافذة استوديو تحسين الخلفيات */
.bg-studio-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 2, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.bg-studio-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bg-studio-card {
  background: var(--bg-surface);
  border: none;
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-gold), var(--shadow-card);
  position: relative;
  transform: scale(0.96);
  transition: var(--transition-smooth);
}

.bg-studio-modal-backdrop.active .bg-studio-card {
  transform: scale(1);
}

/* شاشة معاينة الدمج الذكي */
.studio-stage-viewer {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #120e0a;
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-backdrop-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.studio-isolated-camel {
  position: relative;
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  z-index: 5;
  filter: drop-shadow(0 16px 25px rgba(0, 0, 0, 0.75));
  transition: var(--transition-smooth);
}

.studio-comparison-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(12, 10, 7, 0.85);
  border: none;
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 10;
  backdrop-filter: blur(10px);
}

/* قائمة اختيار الخلفيات الصحراوية الملكية */
.studio-backdrops-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

.backdrop-option-card {
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
}

.backdrop-option-card.active,
.backdrop-option-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.backdrop-option-card img {
  width: 100%;
  height: 65px;
  object-fit: cover;
  display: block;
}

.backdrop-option-card .name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--sand-200);
  padding: 6px 4px;
}

/* منطقة إدخال البيانات الخام */
.raw-input-section {
  margin-bottom: 1.5rem;
}

.section-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sand-200);
  margin-bottom: 8px;
}

.raw-textarea {
  width: 100%;
  height: 110px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: var(--transition-smooth);
}

.raw-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

/* أمثلة للإدخال السريع */
.sample-prompts-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-300);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.74rem;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sample-chip:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}

/* زر التحليل بالذكاء الاصطناعي */
.btn-analyze-ai {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #a87920 100%);
  color: #0a0806;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
}

.btn-analyze-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.55);
}

/* مؤشر المعالجة الذكية */
.ai-processing-state {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.ai-pulse-rings {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  margin: 0 auto 1.2rem;
  position: relative;
  animation: pulse 1.5s infinite;
}

.ai-step-text {
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 700;
}

/* لوحة النتائج الذكية والتسعير العادل */
.ai-results-panel {
  display: none;
  margin-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  animation: fadeInDown 0.6s ease-out;
}

/* بطاقة القيمة السوقية العادلة */
.valuation-hero-card {
  background: linear-gradient(135deg, rgba(35, 27, 18, 0.9), rgba(20, 16, 11, 0.95));
  border: none;
  border-radius: 18px;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.valuation-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold-primary);
}

.valuation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.valuation-top .title {
  font-size: 0.85rem;
  color: var(--sand-300);
  font-weight: 600;
}

.valuation-demand-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
}

.valuation-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.fair-price-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  font-feature-settings: "tnum";
}

.fair-price-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.fair-range-text {
  font-size: 0.84rem;
  color: var(--sand-400);
  margin-bottom: 12px;
}

.club-standard-box {
  background: rgba(212, 175, 55, 0.08);
  border-right: 3px solid var(--gold-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--sand-200);
  line-height: 1.5;
}

/* بطاقة الصياغة الاحترافية */
.listing-preview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.preview-title-field {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-desc-field {
  font-size: 0.88rem;
  color: var(--sand-200);
  line-height: 1.7;
  white-space: pre-line;
}

.action-publish-row {
  display: flex;
  gap: 12px;
}

.btn-publish-live {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: var(--transition-smooth);
}

.btn-publish-live:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-2px);
}

/* ==========================================================================
   المرحلة الثالثة: الوكيل الصوتي التفاعلي والشات بوت ("سهيل")
   ========================================================================== */

/* الحاوية العائمة لسهيل */
.suhail-widget-wrapper,
.camera-controls-bar .suhail-widget-wrapper {
  position: fixed;
  bottom: 2.2rem;
  right: 2rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* فقاعة الترحيب الفورية العائمة */
.suhail-greeting-popup {
  background: var(--bg-card);
  border: none;
  border-radius: 18px 18px 4px 18px;
  padding: 12px 18px;
  max-width: 290px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-gold), var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  transition: var(--transition-smooth);
}

.suhail-greeting-popup.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
}

.greeting-text {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
}

.greeting-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 6px;
  margin-top: 2px;
}

.btn-hear-voice {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.btn-hear-voice:hover {
  background: rgba(212, 175, 55, 0.12);
}

.btn-open-chat-quick {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-200);
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-open-chat-quick:hover {
  background: var(--gold-primary);
  color: #0c0a07;
}

/* زر والأيقونة المرئية التفاعلية لسهيل */
.suhail-avatar-btn {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c150c, #0a0806);
  border: 2px solid var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  overflow: visible;
}

.suhail-avatar-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.6);
}

/* هالة الموجات الصوتية الحية حول سهيل */
.suhail-voice-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.suhail-avatar-btn.speaking .suhail-voice-aura {
  opacity: 0.8;
  animation: auraPulse 1.4s infinite ease-out;
}

@keyframes auraPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* الشاشة الداخلية المتحركة للوجه التفاعلي */
.suhail-screen-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #2f2316 0%, #120e08 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* رسم شخصية سهيل الكرتونية الرقمية بالزي التراثي الأصيل */
.suhail-persona-face {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suhail-eyes {
  position: absolute;
  top: 24px;
  display: flex;
  gap: 12px;
}

.suhail-eye {
  width: 5px;
  height: 5px;
  background: #fdf8e2;
  border-radius: 50%;
  animation: suhailBlink 3.8s infinite;
}

@keyframes suhailBlink {
  0%, 96%, 100% { transform: scaleY(1); }
  98% { transform: scaleY(0.1); }
}

.suhail-mouth {
  position: absolute;
  bottom: 20px;
  width: 10px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.suhail-avatar-btn.speaking .suhail-mouth {
  animation: suhailTalk 0.28s infinite alternate ease-in-out;
}

@keyframes suhailTalk {
  0% { height: 3px; width: 8px; border-radius: 2px; }
  100% { height: 10px; width: 14px; border-radius: 8px; }
}

/* مؤشر الحالة الأخضر */
.suhail-status-indicator {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #090806;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* شارة الاسم العائمة */
.suhail-name-badge {
  position: absolute;
  bottom: -22px;
  right: 50%;
  transform: translateX(50%);
  background: rgba(18, 14, 9, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ==========================================================================
   نافذة الشات بوت المصغرة لسهيل (Mini Chatbot Drawer)
   ========================================================================== */

.suhail-chat-window {
  position: fixed;
  bottom: 8.5rem;
  right: 2rem;
  width: 360px;
  max-width: calc(100vw - 4rem);
  height: 500px;
  max-height: calc(100vh - 11rem);
  background: var(--bg-surface);
  border: none;
  border-radius: 22px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-gold), var(--shadow-card);
  display: flex;
  flex-direction: column;
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.suhail-chat-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 12px 16px;
  background: rgba(212, 175, 55, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #251b11;
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.chat-header-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.chat-header-sub {
  font-size: 0.72rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-icon-btn {
  background: none;
  border: none;
  color: var(--sand-300);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.chat-icon-btn:hover {
  color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* مساحة الرسائل */
.chat-messages-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  animation: fadeInDown 0.3s ease-out;
}

.message-bubble.bot {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-100);
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}

.message-bubble.user {
  background: linear-gradient(135deg, var(--gold-primary), var(--sand-500));
  color: #0c0a07;
  font-weight: 700;
  align-self: flex-end;
  border-bottom-left-radius: 4px;
}

/* شريط الأسئلة السريعة */
.chat-quick-suggestions {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-quick-suggestions::-webkit-scrollbar {
  display: none;
}

.quick-q-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-300);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 14px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-q-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

/* شريط إدخال الرسالة */
.chat-input-row {
  padding: 10px 14px;
  background: rgba(15, 12, 9, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-text-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.chat-text-input:focus {
  border-color: var(--gold-primary);
}

.btn-send-message {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-primary);
  color: #090806;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-send-message:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

.btn-mic-voice {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--sand-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-mic-voice:hover,
.btn-mic-voice.recording {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   المظهر التفاعلي الحقيقي لتطبيق الجوال (Native Smartphone App Architecture)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh;
    padding-bottom: 0px !important;
  }

  /* الشريط العلوي كشريط تطبيق أنيق (القائمة ثم جنبها الشعار على سطر وخط واحد) بدون فراغ علوي */
  .site-header {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 10px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 95 !important;
    background: rgba(14, 11, 8, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
  }

  @supports (padding-top: env(safe-area-inset-top)) {
    @media all and (display-mode: standalone) {
      .site-header {
        height: calc(56px + env(safe-area-inset-top, 0px)) !important;
        min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
        max-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
      }
    }
  }

  /* مجموعة القائمة والشعار: على سطر وخط واحد أفقي وبشكل أكبر للشعار */
  .header-right-cluster {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
  }

  .btn-drawer-trigger {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .brand-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: 6px !important; /* مسافة فاصلة متوازنة لمنع التزاحم */
  }

  /* تصغير حجم الشعار قليلاً لإعطاء مسافة مريحة لجميع الأزرار */
  .site-header .official-brand-logo {
    height: 32px !important;
    width: auto !important;
    max-width: 95px !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  .nav-links {
    display: none !important;
  }

  /* زر إدراج حلال في سطر واحد وبحجم صغير */
  .btn-ai-upload {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 3px 6px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }

  .btn-ai-upload::after {
    display: none !important;
  }

  .btn-ai-upload .btn-text-nowrap {
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 0.8rem !important;
  }

  /* إخفاء زر مزايدة سريعة من الشريط العلوي على الجوال لأنه تم نقله للأسفل في الفراغ */
  .header-bid-desktop,
  .btn-primary-header,
  .site-header .btn-primary {
    display: none !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 1 !important;
  }

  .btn-header-auth {
    padding: 3px 8px !important;
    font-size: 0.70rem !important;
    height: 28px !important;
    gap: 4px !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
  }

  .btn-theme-toggle {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .btn-theme-toggle span,
  #theme-toggle-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* المسرح الرئيسي للجوال بطريقة تطبيق حقيقي يملأ الشاشة بتناسق تام */
  .main-stage {
    position: relative !important;
    height: auto !important;
    min-height: calc(100vh - 56px) !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    padding: 0 0 6px 0 !important;
  }

  /* الآية القرآنية الكريمة المذهبة فوق الجمل في الجوال - بنظام 3D ومقاسات مدروسة */
  .quranic-verse-banner {
    margin: 11px auto 8px auto !important;
    padding: 4px 28px !important;
    max-width: 94% !important;
    border-radius: 40px !important;
    perspective: 600px !important;
    transform-style: preserve-3d !important;
    animation: quranFloat3DMobile 5.5s ease-in-out infinite !important;
  }

  .quran-bracket {
    font-size: 0.85rem !important;
    margin: 0 3px !important;
    transform: translateZ(6px) !important;
  }

  .quran-verse-text {
    font-size: 0.79rem !important;
    letter-spacing: 0.2px !important;
    padding: 2px 10px !important;
    transform: translateZ(8px) !important;
  }

  @keyframes quranFloat3DMobile {
    0%, 100% {
      transform: perspective(600px) rotateX(0deg) rotateY(0deg) translateZ(0px);
      box-shadow: 0 5px 16px rgba(0, 0, 0, 0.65), 0 0 14px rgba(212, 175, 55, 0.22);
    }
    25% {
      transform: perspective(600px) rotateX(3deg) rotateY(-3deg) translateZ(6px);
      box-shadow: -3px 8px 20px rgba(0, 0, 0, 0.75), 0 0 20px rgba(212, 175, 55, 0.35);
    }
    50% {
      transform: perspective(600px) rotateX(0deg) rotateY(1.5deg) translateZ(10px) translateY(-2px);
      box-shadow: 0 10px 22px rgba(0, 0, 0, 0.8), 0 0 22px rgba(255, 223, 115, 0.42);
    }
    75% {
      transform: perspective(600px) rotateX(-3deg) rotateY(3deg) translateZ(6px);
      box-shadow: 3px 8px 20px rgba(0, 0, 0, 0.75), 0 0 20px rgba(212, 175, 55, 0.35);
    }
  }

  /* مسرح العرض وصورة الذلول التفاعلية */
  #viewer-container {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-top: 4px !important;
  }

  /* أزرار التكبير والتقريب في المنتصف أفقياً بشكل مستقيم (Centered Horizontal Zoom Controls) */
  .stage-zoom-controls {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 8px auto 25px auto !important;
    z-index: 30 !important;
  }

  .btn-zoom-action {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    border-radius: 50% !important;
    background: rgba(22, 17, 12, 0.88) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    color: #ffe066 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  }

  .btn-zoom-action:active {
    background: var(--gold-primary) !important;
    color: #000 !important;
    transform: scale(0.92) !important;
  }

  .camel-3d-chassis {
    width: 90vw;
    max-height: 44vh !important;
    margin: 0 auto;
  }

  .camel-real-image {
    max-height: 42vh !important;
  }

  .pedestal-hologram-ring {
    width: 82vw;
    max-width: 360px;
    height: 70px;
    bottom: 5px;
  }

  /* كبسولة أزرار زوايا الرؤية الفاخرة مصغرة وأنيقة حتى لا تحجب صورة الإبل */
  .camera-controls-bar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 3px 6px !important;
    margin: 8px 12px 6px 12px !important;
    background: rgba(18, 14, 10, 0.75) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    z-index: 25 !important;
  }

  .camera-btn {
    flex: 1 !important;
    padding: 4px 6px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--sand-300) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
  }

  .camera-btn i {
    font-size: 0.72rem !important;
    color: var(--gold-primary) !important;
  }

  .camera-btn span {
    display: inline !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }

  .camera-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(180, 140, 40, 0.45)) !important;
    border: 1px solid var(--gold-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35) !important;
  }

  /* شارات التفاصيل: كروت بنية مصغرة بنظام مسطرة متساوي الأطراف ومحاذاة دقيقة */
  .spec-badge-floating {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 0 12px !important;
    margin: 4px 0 6px 0 !important;
    z-index: 20 !important;
  }

  .spec-chip {
    min-width: unset !important;
    padding: 4px 4px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-top: 2px solid var(--gold-primary) !important;
    background: rgba(20, 16, 12, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
  }

  .spec-chip .label {
    font-size: 0.58rem !important;
    color: #a39580 !important;
    white-space: nowrap !important;
  }

  .spec-chip .value {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
  }

  /* منطقة الأكشن: أيقونة مزايدة سريعة المستطيلة ثلاثية الأبعاد الذهبية منزلة للأسفل 2 سم تحت صورة الجمل في المكان الفاضي */
  .stage-quick-action-zone {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 12px auto 10px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 3px !important;
    z-index: 35 !important;
    width: auto !important;
    pointer-events: auto !important;
  }

  .btn-stage-quick-bid.btn-quick-bid-3d-rect {
    width: 38px !important;
    min-width: 38px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 2px 2px !important;
    border-radius: 7px !important;
    border: 1.5px solid #ffe57f !important;
    outline: 1px solid rgba(138, 98, 18, 0.95) !important;
    outline-offset: -1.5px !important;
    box-shadow: 
      0 5px 12px rgba(0, 0, 0, 0.8),
      0 2px 4px rgba(0, 0, 0, 0.5),
      0 0 10px rgba(212, 175, 55, 0.5),
      inset 0 1px 1.5px rgba(255, 255, 255, 0.9),
      inset 0 -1.5px 2px rgba(100, 68, 8, 0.6) !important;
  }

  .rect-3d-lightning-icon .lightning-symbol {
    font-size: 0.78rem !important;
  }

  .rect-3d-text-block .word-bid,
  .rect-3d-text-block .word-quick {
    font-size: 0.50rem !important;
    font-weight: 900 !important;
    color: #140d04 !important;
    text-shadow: 0 0.5px 0 rgba(255, 245, 190, 0.85) !important;
  }

  /* شارة تلميح التدوير 360° */
  .interaction-hint {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    font-size: 0.65rem !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    background: rgba(14, 11, 8, 0.8) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    z-index: 15 !important;
  }

  .interaction-hint svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* ==========================================================================
     الشريط المتحرك ثلاثي الأبعاد لعروض بيع المشتركين (3D Live Marketplace Ticker)
     ========================================================================== */
  .market-ticker-3d-section {
    position: relative !important;
    width: calc(100% - 24px) !important;
    margin: 15px 12px 6px 12px !important;
    padding: 6px 8px !important;
    background: linear-gradient(145deg, rgba(24, 19, 13, 0.92), rgba(14, 11, 8, 0.96)) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 230, 160, 0.15) !important;
    perspective: 800px !important;
    z-index: 25 !important;
  }

  .ticker-header-bar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 5px !important;
    padding-bottom: 3px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
  }

  .ticker-live-status {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    gap: 5px !important;
  }

  .ticker-live-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #ef4444 !important;
    box-shadow: 0 0 6px #ef4444 !important;
    animation: livePulse 1.8s infinite !important;
  }

  .ticker-header-title {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .ticker-badge-live {
    font-size: 0.55rem !important;
    font-weight: 800 !important;
    padding: 1px 5px !important;
    border-radius: 10px !important;
    background: rgba(212, 175, 55, 0.2) !important;
    color: var(--gold-light) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
  }

  .ticker-dots-nav {
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 2 !important;
  }

  .ticker-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
  }

  .ticker-dot.active {
    width: 12px !important;
    border-radius: 4px !important;
    background: var(--gold-primary) !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6) !important;
  }

  .ticker-3d-stage {
    position: relative !important;
    width: 100% !important;
    min-height: 52px !important;
  }

  .ticker-stage-slide {
    display: none !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    width: 100% !important;
    opacity: 0 !important;
    transform: translateY(6px) rotateX(10deg) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .ticker-stage-slide.active {
    display: grid !important;
    opacity: 1 !important;
    transform: translateY(0) rotateX(0deg) !important;
  }

  .ticker-mini-card {
    background: rgba(26, 20, 14, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 8px !important;
    padding: 4px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .ticker-mini-card:active {
    transform: scale(0.94) !important;
    border-color: var(--gold-primary) !important;
  }

  .mini-card-head {
    font-size: 0.64rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }

  .mini-card-price {
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    color: var(--gold-primary) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .mini-card-sub {
    font-size: 0.54rem !important;
    color: #a89a85 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }

  /* نظام المسطرة المتساوي من الطرفين والتنسيق الجمالي المحكم */
  .ai-modal-header h2 {
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
    margin: 4px 0 6px 0 !important;
    color: #ffffff !important;
  }

  .bg-studio-card h2,
  .bid-modal-card h2 {
    font-size: 1.05rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    margin: 4px 0 6px 0 !important;
  }

  .ai-modal-header p,
  .bg-studio-card p,
  .drawer-menu-card p,
  .ai-result-desc {
    text-align: justify !important;
    text-justify: inter-word !important;
    line-height: 1.6 !important;
    font-size: 0.78rem !important;
    margin: 0 2px !important;
  }

  /* صورة الشخص المتحدث (سهيل): مثبتة بأسفل اليمين في الجوال */
  .suhail-widget-wrapper {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.2rem !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    z-index: 99 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* إخفاء الفقاعة التلقائية لمنع حجب الشاشة */
  .suhail-greeting-popup {
    display: none !important;
  }

  .suhail-avatar-btn {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  }

  .suhail-screen-avatar {
    width: 38px;
    height: 38px;
  }

  .suhail-name-badge {
    display: none !important;
  }

  /* نافذة شات سهيل كـ Bottom Sheet للجوال */
  .suhail-chat-window {
    position: fixed;
    right: 8px;
    left: 8px;
    width: calc(100vw - 16px);
    bottom: 8px;
    max-height: calc(100vh - 75px);
    border-radius: 20px;
    z-index: 100;
  }

  /* شريط المزاد السفلي الثابت بحجم صغير وأناقة عالية (Compact Luxury Auction Dock) */
  .auction-dock-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    z-index: 80 !important;
    margin: 0 !important;
  }

  .auction-card-glass {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 6px 14px calc(env(safe-area-inset-bottom, 6px) + 6px) 14px !important;
    border-radius: 20px 20px 0 0 !important;
    background: rgba(13, 10, 7, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.9) !important;
  }

  .dock-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 3px !important;
  }

  .dock-camel-name {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .status-live-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 6px #22c55e !important;
  }

  .dock-title-text {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
  }

  .dock-pill-tag {
    font-size: 0.58rem !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--gold-light) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    font-weight: 700 !important;
  }

  .dock-timer-badge {
    font-size: 0.7rem !important;
    color: var(--gold-light) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    padding: 1px 6px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
  }

  .dock-main-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding-top: 1px !important;
  }

  .dock-price-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 1px !important;
    flex-shrink: 0 !important;
    min-width: 72px !important;
  }

  .dock-price-label {
    font-size: 0.62rem !important;
    color: var(--sand-400) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .dock-price-val {
    display: flex !important;
    align-items: baseline !important;
    gap: 2px !important;
    line-height: 1 !important;
  }

  .dock-price-val .amount {
    font-size: 1.02rem !important;
    font-weight: 900 !important;
    color: var(--gold-primary) !important;
    line-height: 1 !important;
    font-feature-settings: "tnum" !important;
  }

  .dock-price-val .currency {
    font-size: 0.62rem !important;
    color: var(--sand-300) !important;
    margin-right: 1px !important;
  }

  .dock-actions-col {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  /* تنسيق الأزرار الثلاثة الموحد والمتساوي بدون خروج عن الشاشة */
  .btn-bid-dock,
  .btn-switch-auction,
  .btn-checkout-dock {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 4px !important;
    font-size: 0.67rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 86px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    border: none !important;
  }

  .btn-bid-dock {
    background: rgba(212, 175, 55, 0.14) !important;
    color: var(--gold-light) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
  }

  .btn-switch-auction {
    background: rgba(212, 175, 55, 0.14) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    color: var(--gold-light) !important;
  }

  .btn-checkout-dock {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: var(--sand-200) !important;
  }

  .btn-bid-dock span,
  .btn-switch-auction span,
  .btn-checkout-dock span {
    font-size: 0.64rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    }

  .btn-bid-dock i,
  .btn-switch-auction i,
  .btn-checkout-dock i {
    font-size: 0.65rem !important;
    flex-shrink: 0 !important;
  }

  .btn-bid-dock:active,
  .btn-switch-auction:active,
  .btn-checkout-dock:active {
    transform: scale(0.96) !important;
  }

  /* النوافذ المنبثقة للجوال */
  .bid-modal-content,
  .modal-content-glass,
  .bg-studio-card,
  .ai-modal-card {
    max-width: 95vw !important;
    width: 95vw !important;
    padding: 1rem 0.85rem !important;
    border-radius: 18px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .ai-modal-header {
    margin-bottom: 0.9rem !important;
    padding-bottom: 0.7rem !important;
  }

  .ai-badge {
    padding: 3px 8px !important;
    font-size: 0.66rem !important;
    margin-bottom: 6px !important;
    display: inline-flex !important;
  }

  .media-upload-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 0.8rem !important;
  }

  .upload-box {
    padding: 0.55rem 0.35rem !important;
    border-radius: 12px !important;
    min-height: 80px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .upload-box .icon {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 3px !important;
  }

  .upload-box .title {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: var(--sand-100) !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
  }

  .upload-box .subtitle {
    font-size: 0.58rem !important;
    color: var(--sand-400) !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
  }

  .duration-pill {
    font-size: 0.54rem !important;
    padding: 1px 5px !important;
    border-radius: 8px !important;
    margin-top: 3px !important;
  }

  .raw-input-section {
    margin-bottom: 0.7rem !important;
  }

  .section-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    display: block !important;
    color: var(--sand-300) !important;
  }

  .raw-textarea {
    min-height: 60px !important;
    height: 65px !important;
    font-size: 0.74rem !important;
    padding: 6px 8px !important;
    line-height: 1.4 !important;
    border-radius: 10px !important;
  }

  .sample-prompts-bar {
    gap: 4px !important;
    margin-top: 5px !important;
  }

  .sample-chip {
    font-size: 0.65rem !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    flex: 1 1 auto !important;
    text-align: center !important;
  }
  .sample-prompts-bar {
    justify-content: flex-start !important;
  }

  .btn-analyze-ai {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    margin-top: 6px !important;
  }

  .btn-open-bg-studio {
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
    border-radius: 8px !important;
    margin-top: 6px !important;
  }

  /* بطاقة العرض الدوارة السفلية (Bottom Rotating Ad Card) مرفوعة بمقدار 2 ملي فوق خط السحب */
  .bottom-rotating-ad-container {
    width: 100% !important;
    max-width: 580px !important;
    margin: 4px auto 14px auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   الشريط المتحرك ثلاثي الأبعاد لعروض بيع المشتركين (3D Live Marketplace Ticker)
   (قواعد عامة للموقع وتطبيق الجوال معاً ودعم الثيمين الليلي والنهاري)
   ========================================================================== */
.market-ticker-3d-section {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 6px auto 12px auto;
  padding: 8px 12px;
  background: linear-gradient(145deg, rgba(24, 19, 13, 0.92), rgba(14, 11, 8, 0.96));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 230, 160, 0.15);
  perspective: 800px;
  z-index: 25;
}

@media (min-width: 769px) {
  .market-ticker-3d-section {
    position: absolute;
    top: 91px; /* إنزال الشريط 3 ملم عن الهيدر */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 580px;
    margin: 0;
    z-index: 30;
  }
}

.ticker-header-bar {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.ticker-live-status {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  gap: 6px;
}

.ticker-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: livePulse 1.8s infinite;
}

.ticker-header-title {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  text-align: center;
}

.ticker-badge-live {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.ticker-dots-nav {
  position: absolute !important;
  left: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  z-index: 2 !important;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.ticker-dot.active {
  width: 14px;
  border-radius: 4px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.ticker-3d-stage {
  position: relative;
  width: 100%;
  min-height: 56px;
}

.ticker-stage-slide {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  opacity: 0;
  transform: translateY(6px) rotateX(10deg);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker-stage-slide.active {
  display: grid;
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.ticker-mini-card {
  background: rgba(26, 20, 14, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 9px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  background: rgba(38, 28, 18, 0.95);
  box-shadow: 0 6px 14px rgba(212, 175, 55, 0.2);
}

.ticker-mini-card:active {
  transform: scale(0.95);
}

.mini-card-head {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.mini-card-price {
  font-size: 0.66rem;
  font-weight: 900;
  color: var(--gold-primary);
  white-space: nowrap;
  line-height: 1.2;
}

.mini-card-sub {
  font-size: 0.58rem;
  color: #a89a85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* دعم الثيم النهاري لشريط عروض المشتركين ثلاثي الأبعاد */
body.light-theme .market-ticker-3d-section {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(184, 142, 40, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .ticker-header-bar {
  border-bottom-color: rgba(184, 142, 40, 0.2);
}

body.light-theme .ticker-header-title {
  color: #1a1612;
}

body.light-theme .ticker-mini-card {
  background: #fdfbf7;
  border-color: rgba(184, 142, 40, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.light-theme .ticker-mini-card:hover {
  background: #f8f4ec;
  border-color: var(--gold-primary);
}

body.light-theme .mini-card-head {
  color: #1a1612;
}

body.light-theme .mini-card-price {
  color: #8a681c;
}

body.light-theme .mini-card-sub {
  color: #6d6355;
}

body.light-theme .ticker-dot {
  background: rgba(0, 0, 0, 0.2);
}

body.light-theme .ticker-dot.active {
  background: var(--gold-primary);
}

/* ==========================================================================
/* ==========================================================================
   الآية القرآنية الكريمة المذهبة فوق الجمل (Golden Quranic Verse Banner - 3D Animated)
   ========================================================================== */
.quranic-verse-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px auto 10px auto;
  padding: 5px 34px;
  background: linear-gradient(180deg, rgba(28, 22, 16, 0.92) 0%, rgba(14, 11, 8, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7),
              0 0 16px rgba(212, 175, 55, 0.22),
              inset 0 1px 1px rgba(255, 235, 170, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: fit-content;
  max-width: 92%;
  z-index: 28;
  position: relative;
  direction: rtl;
  perspective: 800px;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  animation: quranFloat3DDesktop 6s ease-in-out infinite;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quranic-verse-banner:hover {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85),
              0 0 26px rgba(212, 175, 55, 0.45),
              inset 0 1px 2px rgba(255, 235, 170, 0.6);
}

.quran-bracket {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 1.0rem;
  font-weight: 700;
  color: #f7d774;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  line-height: 1;
  user-select: none;
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px;
  transform: translateZ(8px);
}

.quran-verse-text {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 0.945rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(120deg, #FFFFFF 0%, #FFF4C2 20%, #FFDF73 40%, #FFE899 55%, #E5B842 70%, #C29324 85%, #FFFFFF 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: quranGoldWave 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.45));
  white-space: nowrap;
  line-height: 1.5;
  padding: 3px 16px;
  transform: translateZ(10px);
}

/* حركة ثلاثية الأبعاد سلسة للآية بالديسكتوب */
@keyframes quranFloat3DDesktop {
  0%, 100% {
    transform: translateX(-50%) perspective(800px) rotateX(0deg) rotateY(0deg) translateZ(0px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 16px rgba(212, 175, 55, 0.22), inset 0 1px 1px rgba(255, 235, 170, 0.35);
  }
  25% {
    transform: translateX(-50%) perspective(800px) rotateX(3.5deg) rotateY(-3.5deg) translateZ(8px);
    box-shadow: -4px 9px 24px rgba(0, 0, 0, 0.75), 0 0 22px rgba(212, 175, 55, 0.38), inset 0 1px 2px rgba(255, 235, 170, 0.5);
  }
  50% {
    transform: translateX(-50%) perspective(800px) rotateX(0deg) rotateY(1.5deg) translateZ(12px) translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 26px rgba(255, 223, 115, 0.45), inset 0 1px 2px rgba(255, 235, 170, 0.6);
  }
  75% {
    transform: translateX(-50%) perspective(800px) rotateX(-3.5deg) rotateY(3.5deg) translateZ(8px);
    box-shadow: 4px 9px 24px rgba(0, 0, 0, 0.75), 0 0 22px rgba(212, 175, 55, 0.38), inset 0 1px 2px rgba(255, 235, 170, 0.5);
  }
}

/* حركة تموج لمعان الذهب القرآني */
@keyframes quranGoldWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* في الشاشات الكبيرة (Desktop) */
@media (min-width: 769px) {
  .quranic-verse-banner {
    position: absolute;
    top: 159px; /* إنزال الآية الكريمة 5 ملم لفاصل مريح وأنيق */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 28;
    padding: 6px 36px;
  }
}

/* في الثيم النهاري (Day Theme) */
body.light-theme .quranic-verse-banner,
body.day-theme .quranic-verse-banner {
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.94) 0%, rgba(248, 240, 224, 0.98) 100%);
  border: 1px solid rgba(184, 134, 11, 0.5);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

body.light-theme .quran-bracket,
body.day-theme .quran-bracket {
  color: #996515;
  text-shadow: 0 0 8px rgba(184, 134, 11, 0.5);
}

body.light-theme .quran-verse-text,
body.day-theme .quran-verse-text {
  background: linear-gradient(120deg, #5C3D00 0%, #8C6200 25%, #B8860B 50%, #8C6200 75%, #5C3D00 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: quranGoldWave 5s ease-in-out infinite;
  filter: drop-shadow(0 1px 2px rgba(184, 134, 11, 0.3));
}

/* ==========================================================================
   القائمة الجانبية الحديثة للتطبيق (Modern App Drawer)
   مطابقة لنمط التطبيقات الحديثة لعرض الخدمات والمعلومات الإضافية دون ازدحام
   ========================================================================== */

/* زر فتح القائمة الجانبية بالهيدر */
.header-right-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-drawer-trigger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--gold-light);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
}

.btn-drawer-trigger:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: #ffffff;
  transform: scale(1.04);
}

/* خلفية تعتيم الشاشة عند فتح القائمة - فائقة الخفة وبدون أي وميض أو تكسير */
.app-drawer-backdrop {
  position: fixed;
  cursor: pointer; /* iOS fix */
  inset: 0;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.app-drawer-backdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* لوحة القائمة الجانبية المنزلقة فائقة السرعة والسلاسة بتقنية التسريع العتادي GPU */
.app-drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0 !important;
  width: 88vw;
  max-width: 410px;
  background: #13100c;
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 9999;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.92);
  transform: translate3d(100%, 0, 0) !important;
  -webkit-transform: translate3d(100%, 0, 0) !important;
  will-change: transform;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-transition: -webkit-transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: paint layout;
}

.app-drawer-panel.active {
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
}

/* الشريط العلوي للقائمة الجانبية (تباعد أنيق لمنع التصاق الشعار بأيقونة القمر) */
.drawer-header-bar {
  padding: 14px 16px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.drawer-brand-identity {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.drawer-quick-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.drawer-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--sand-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.drawer-icon-btn:hover {
  background: var(--gold-primary);
  color: #0c0a07;
}

.drawer-pill-toggle {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--sand-100);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-pill-toggle:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

.drawer-brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.drawer-brand-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.drawer-brand-text span {
  font-size: 0.7rem;
  color: #a39580;
}

.drawer-brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4af37, #8c6d23);
  color: #0c0a07;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

/* بطاقة حساب المربي والمستخدم */
.drawer-profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 12px 14px 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.drawer-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.avatar-edit-badge {
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0c0a07;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-user-info {
  flex: 1;
  min-width: 0;
}

.user-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.user-name-row h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.user-role-badge {
  background: #000000;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-primary);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.user-meta-sub {
  font-size: 0.72rem;
  color: #a39580;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.user-meta-sub .dot-sep {
  opacity: 0.5;
}

.user-meta-sub .edit-link {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}

/* القائمة القابلة للتمرير */
.drawer-menu-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* كروت الخيارات الذكية (مطابقة لنمط تطبيق المستخدم المرفق) */
.drawer-menu-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.drawer-menu-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-primary);
  transform: translateX(-3px);
}

.card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.card-title-row h5 {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #ffffff;
  margin: 0;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2;
}

.card-content p {
  font-size: 0.71rem;
  color: #9f917c;
  margin: 0;
  line-height: 1.35;
}

.card-arrow {
  color: #786d5e;
  font-size: 0.78rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-menu-card:hover .card-arrow {
  color: var(--gold-primary);
  transform: translateX(-2px);
}

/* الشارات الملونة داخل الكروت */
.card-pill-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-dark {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-gold {
  background: linear-gradient(135deg, #d4af37, #997523);
  color: #0c0a07;
}

.badge-sparkle {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.badge-teal {
  background: #0f766e;
  color: #99f6e4;
}

/* زر تسجيل الخروج السفلي */
.drawer-footer-row {
  padding: 10px 14px 18px 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.drawer-btn-logout {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ded8ce;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.drawer-btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* دعم النمط النهاري (شمس الصياهد) للقائمة الجانبية لتطابق صورة المستخدم 100% */
body.light-theme .app-drawer-panel {
  background: #f7f5f0;
  border-left: 1px solid #ded5c5;
  color: #1e1b18;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
}

body.light-theme .drawer-header-bar,
body.light-theme .drawer-footer-row {
  border-color: #e5dac9;
}

body.light-theme .drawer-brand-text h3 {
  color: #1a1612;
}

body.light-theme .drawer-profile-card {
  background: #ffffff;
  border-color: #e2d8c7;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.light-theme .user-name-row h4 {
  color: #1a1612;
}

body.light-theme .drawer-menu-card {
  background: #ffffff;
  border: 1px solid #e5dccf;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .drawer-menu-card:hover {
  background: #faf6ee;
  border-color: var(--gold-primary);
}

body.light-theme .card-title-row h5 {
  color: #1a1612;
}

body.light-theme .card-content p {
  color: #6d6355;
}

body.light-theme .card-icon-box {
  background: #f4efe4;
  border-color: #e2d5be;
  color: #8a681c;
}

body.light-theme .drawer-btn-logout {
  background: #ffffff;
  border: 1px solid #ded5c5;
  color: #332d26;
}

/* ==========================================================================
   ركائز الذكاء الاصطناعي الستة - منصة ذلول الإبل (AI 6 Core Pillars Styling)
   ========================================================================== */

/* 1. طبقة التحليل البصري والتشريحي الدقيق للإبل (Anatomical AI Hotspots Layer) */
.anatomical-ai-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.3s ease;
}

.anatomical-ai-layer.hidden {
  opacity: 0;
  pointer-events: none;
}

.anatomical-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 20;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.anatomical-pin:hover, .anatomical-pin.active {
  transform: scale(1.12);
}

.pin-radar {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  opacity: 0.8;
  animation: radarPulse 2s infinite ease-out;
  left: -5px;
  top: -5px;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #856214);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 0.72rem;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.8);
  transition: all 0.2s ease;
}

.pin-title {
  background: rgba(12, 10, 8, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #f7eedb;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* كرت الفحص التشريحي المنبثق */
.anatomical-detail-card {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  background: rgba(15, 12, 9, 0.94);
  border: 1.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 14px 18px;
  z-index: 50;
  pointer-events: auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideUpCard 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCard {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.anatomical-detail-card .card-close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.detail-card-header h4 {
  color: var(--gold-light);
  font-size: 1.02rem;
  margin: 0;
  font-weight: 800;
}

.detail-badge {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-body .detail-row {
  margin-bottom: 8px;
}

.detail-body .detail-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand-200);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.detail-body p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #eee4d3;
  margin: 0;
}

.text-gold { color: var(--gold-primary); }
.text-green { color: #10b981; }

/* شريط ميزات الفحص الذكي (Smart Features Bar) */
.smart-features-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 12px auto;
  max-width: 580px;
  padding: 0 10px;
  flex-wrap: wrap;
}

.feat-pill-btn {
  background: rgba(20, 16, 12, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--sand-200);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feat-pill-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: #fff;
}

.feat-pill-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(133, 98, 20, 0.35));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* خانة الشريحة الإلكترونية لمنع التكرار */
.chip-input-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.chip-input-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.chip-tag-input {
  flex: 1;
  min-width: 0 !important;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chip-tag-input:focus {
  border-color: var(--gold-primary);
}

.btn-check-dup-action {
  flex-shrink: 0;
  box-sizing: border-box;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-check-dup-action:hover {
  background: var(--gold-primary);
  color: #000;
}

@media (max-width: 500px) {
  .chip-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-check-dup-action {
    width: 100%;
    justify-content: center;
    padding: 9px;
  }
}

.dup-alert-box {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dup-alert-box.duplicate-found {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.dup-alert-box.unique-confirmed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

/* عداد كلمات الصياغة وتأكيد العميل */
.client-review-container {
  margin-top: 14px;
}

.review-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.word-counter-indicator {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--sand-300);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.word-counter-indicator .tag-status {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.word-counter-indicator .tag-status.valid {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* اختيار باقة الإعلان (100 ريال تفاعلي مقابل مجاني عادي) */
.listing-tier-section {
  margin-top: 14px;
}

.tier-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.tier-card {
  background: rgba(25, 20, 15, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(30, 24, 18, 0.8);
}

.tier-card.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: none;
}

.tier-card-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.tier-card.active .tier-card-radio {
  border-color: var(--gold-primary);
}

.tier-card.active .radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.tier-card-content {
  flex: 1;
}

.tier-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.tier-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.tier-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.tier-price.free {
  color: #10b981;
}

.tier-explanation {
  font-size: 0.72rem;
  color: var(--sand-400);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   2. نافذة رسوم الوكيل الصوتي التفاعلي (Voice Paywall Modal)
   ========================================================================== */
.paywall-modal-backdrop, .plain-text-modal-backdrop, .deal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.paywall-modal-backdrop.active, .plain-text-modal-backdrop.active, .deal-modal-backdrop.active {
  display: flex;
}

.paywall-card {
  background: linear-gradient(170deg, #18130d 0%, #0c0906 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.25);
  animation: zoomModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomModal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.paywall-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.paywall-avatar-halo {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px auto;
}

.paywall-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.paywall-sound-waves {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
}

.paywall-sound-waves span {
  width: 3px;
  background: var(--gold-primary);
  border-radius: 2px;
  animation: soundBar 1s infinite alternate ease-in-out;
}
.paywall-sound-waves span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.paywall-sound-waves span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.paywall-sound-waves span:nth-child(3) { height: 14px; animation-delay: 0.3s; }
.paywall-sound-waves span:nth-child(4) { height: 8px; animation-delay: 0.4s; }

@keyframes soundBar {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

.paywall-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.paywall-mandatory-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  position: relative;
  text-align: right;
}

.paywall-mandatory-box .quote-mark {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-left: 6px;
}

.mandatory-text {
  color: #f7eedb;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 600;
}

.paywall-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.paywall-fee-row .fee-label {
  font-size: 0.82rem;
  color: var(--sand-300);
}

.paywall-fee-row .fee-amount .num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-light);
}

.paywall-fee-row .fee-amount .cur {
  font-size: 0.76rem;
  color: var(--sand-400);
  margin-right: 4px;
}

.paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-pay-voice {
  background: linear-gradient(135deg, #d4af37, #a47c1a);
  color: #0c0a07;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
  transition: all 0.2s;
}

.btn-pay-voice:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-free-text {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e5dac9;
  border-radius: 12px;
  padding: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-free-text:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================================
   3. نافذة الشكل الكتابي العادي للإعلان (Plain Text Modal - Free)
   ========================================================================== */
.plain-text-card {
  background: #15110c;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.plain-text-header {
  margin-bottom: 14px;
}

.plain-text-header .free-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.plain-text-header h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 4px 0;
  font-weight: 800;
}

.plain-text-header p {
  color: var(--sand-400);
  font-size: 0.8rem;
  margin: 0;
}

.plain-text-content-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  color: #f1e7d6;
  font-size: 0.86rem;
  line-height: 1.7;
  max-height: 52vh;
  overflow-y: auto;
}

.plain-text-content-box h4 {
  color: var(--gold-light);
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.plain-divider {
  border: none;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin: 10px 0;
}

.plain-text-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ==========================================================================
   4. نافذة التفاوض والصفقات والعمولة 2.50% (AI Deal & Negotiation Modal)
   ========================================================================== */
.deal-modal-card {
  background: linear-gradient(170deg, #17130e 0%, #0d0a07 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.deal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.deal-header h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.deal-header p {
  color: var(--sand-300);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0 0 14px 0;
}

.offer-input-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.deal-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 14px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
}

.currency-tag {
  padding: 0 14px;
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.btn-evaluate-offer {
  width: 100%;
  background: linear-gradient(135deg, #d4af37, #9b7216);
  border: none;
  color: #000;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-evaluate-offer:hover {
  filter: brightness(1.1);
}

.deal-ai-response {
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.response-status-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.response-status-badge.accepted {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

.response-status-badge.counter {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.response-status-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

.response-notes {
  color: var(--sand-200);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.escrow-invoice-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px;
}

.escrow-invoice-card .invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
}

.rate-pill {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.invoice-table .inv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--sand-300);
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.invoice-table .inv-row.total-row {
  border-top: 1.5px solid rgba(212, 175, 55, 0.4);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.4);
  padding: 8px 0;
  margin: 6px 0;
  font-size: 0.86rem;
  color: #fff;
  font-weight: 700;
}

.text-gold-bright { color: #facc15; }

.escrow-guarantee-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0 12px 0;
  font-size: 0.72rem;
  color: var(--sand-400);
  line-height: 1.4;
}

.btn-confirm-deal {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}

.btn-confirm-deal:hover {
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .tier-options-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tier-explanation {
    display: none !important;
  }
  .tier-card-title-row {
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
  }
  .tier-card {
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .tier-card-radio {
    margin-left: 0;
    margin-bottom: 8px;
  }
  .tier-name {
    font-size: 0.8rem !important;
  }
  .tier-price {
    font-size: 0.75rem !important;
  }
  .plain-text-footer {
    flex-direction: column;
  }
}

/* ==========================================================================
   الخدمات المتقدمة الأربعة - منصة ذلول الإبل
   1. دردشة ذلول الإبل
   2. سناب ذلول الإبل (30 ثانية)
   3. لوحة إدارة ذلول الإبل الشاملة
   4. إشعارات ذلول الإبل والخزينة غير المتصلة
   ========================================================================== */

/* شريط التنبيه عند تصفح المنصة بدون إنترنت */
.offline-status-banner {
  background: linear-gradient(90deg, #92400e, #d97706, #b45309);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: sticky;
  top: 60px;
  z-index: 99;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  animation: pulseOffline 2s infinite ease-in-out;
}

@keyframes pulseOffline {
  0% { opacity: 0.95; }
  50% { opacity: 1; filter: brightness(1.1); }
  100% { opacity: 0.95; }
}

/* زر إشعارات ذلول الإبل في الهيدر */
.btn-icon-header {
  background: transparent;
  border: none;
  color: var(--gold-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.btn-icon-header:hover {
  background: transparent;
  transform: scale(1.06);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #000;
}

/* القائمة المنسدلة لإشعارات ذلول الإبل */
/* القائمة المنسدلة لإشعارات ذلول الإبل */
.dhalool-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -50px;
  left: auto;
  width: 290px;
  max-width: min(320px, calc(100vw - 24px));
  background: #14100c;
  border: 1.5px solid var(--gold-primary);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9);
  z-index: 500;
  overflow: hidden;
  animation: zoomModal 0.2s ease;
}

@media (max-width: 768px) {
  .dhalool-notif-dropdown {
    position: fixed !important;
    top: 56px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: 310px !important;
    margin: 0 auto !important;
    z-index: 9999 !important;
  }
}

.notif-drop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.btn-clear-notifs {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 6px;
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 7px;
  transition: all 0.2s;
}

.btn-clear-notifs:hover {
  background: var(--gold-primary);
  color: #000;
}

.notif-drop-body {
  max-height: 270px;
  overflow-y: auto;
}

/* بطاقات الإشعارات الداخلية المصغرة والأنيقة */
.notif-item-row,
.notif-card-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
  cursor: pointer;
  text-align: right;
}

.notif-item-row.unread,
.notif-card-item.unread {
  background: rgba(212, 175, 55, 0.08);
}

.notif-item-row:hover,
.notif-card-item:hover {
  background: rgba(212, 175, 55, 0.14);
}

.notif-icon-col,
.notif-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-text-col,
.notif-content-box {
  flex: 1;
  min-width: 0;
}

.notif-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.notif-title-row strong,
.notif-content-box h5 {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #FAF6EE !important;
  line-height: 1.3;
  margin: 0;
}

.notif-time,
.notif-content-box .time {
  font-size: 0.60rem !important;
  color: var(--sand-400) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.notif-body-text,
.notif-content-box p {
  font-size: 0.8rem !important;
  color: #C7BAA7 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  word-break: break-word;
}

/* زر لوحة إدارة ذلول الإبل في الهيدر */
.btn-admin-header {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin-header:hover {
  background: var(--gold-primary);
  color: #000;
}

/* ==========================================================================
   2. سناب ذلول الإبل (شريط القصص الميدانية 30 ثانية)
   ========================================================================== */
.dhalool-snaps-tray-wrapper {
  max-width: 1200px;
  width: 95%;
  margin: 8px auto 6px auto;
  background: rgba(18, 14, 10, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 8px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.snaps-tray-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.snaps-tray-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
}

.btn-add-snap-trigger {
  background: linear-gradient(135deg, #d4af37, #9b7216);
  border: none;
  color: #000;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.snaps-bubbles-tray {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.snap-bubble-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  width: 78px;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.snap-bubble-card:hover {
  transform: translateY(-2px);
}

.snap-avatar-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #d4af37, #f39c12, #e67e22, #d4af37);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  position: relative;
}

.snap-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #0c0a08;
}

.snap-live-tag {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 8px;
  white-space: nowrap;
}

.snap-bubble-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sand-200);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* مشغل سناب ذلول الإبل بملء الشاشة */
.snap-player-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.snap-player-card {
  background: #0d0a07;
  border: 1.5px solid var(--gold-primary);
  border-radius: 22px;
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 720px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95);
}

.snap-progress-bars {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 30;
}

.progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold-primary);
  width: 0%;
  transition: width 0.1s linear;
}

.snap-top-bar {
  position: absolute;
  top: 18px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
}

.snap-author-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.snap-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  object-fit: cover;
}

.snap-author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.snap-author-name-row .name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.snap-author-name-row .badge {
  font-size: 0.65rem;
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.snap-author-details .time {
  font-size: 0.68rem;
  color: var(--sand-300);
}

.snap-top-actions {
  display: flex;
  gap: 6px;
}

.snap-action-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.snap-media-viewport {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.snap-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snap-touch-nav-left, .snap-touch-nav-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 20;
  cursor: pointer;
}
.snap-touch-nav-left { right: 0; }
.snap-touch-nav-right { left: 0; }

.snap-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  padding: 20px 14px 14px 14px;
  z-index: 30;
}

.snap-camel-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 16, 12, 0.85);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.snap-camel-pill .camel-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.snap-camel-pill .camel-price {
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.btn-snap-bid-quick {
  background: var(--gold-primary);
  border: none;
  color: #000;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.snap-caption-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #f1ede4;
  margin: 0 0 10px 0;
}

.snap-interaction-bar {
  display: flex;
  gap: 8px;
}

.snap-like-pill, .snap-share-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.snap-like-pill.active i {
  color: #ef4444;
}

/* ==========================================================================
   3. نافذة دردشة ذلول الإبل وغرف المحادثة
   ========================================================================== */
.chat-rooms-modal-backdrop, .admin-cms-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.chat-rooms-card {
  background: #130f0a;
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  height: 82vh;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95);
}

.rooms-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.rooms-brand-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-logo-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.rooms-brand-info h3 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0;
  font-weight: 800;
}

.online-indicator-text {
  font-size: 0.72rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.rooms-nav-pills {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: thin;
}

.room-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--sand-300);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s;
}

.room-pill.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.room-unread-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
}

.room-messages-container {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-bubble-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  object-fit: cover;
  flex-shrink: 0;
}

.chat-bubble-body {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  max-width: 82%;
}

.chat-bubble-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-bubble-sender {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-light);
}

.chat-bubble-badge {
  font-size: 0.62rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 700;
}

.chat-bubble-time {
  font-size: 0.65rem;
  color: var(--sand-400);
}

.chat-bubble-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #fff;
  margin: 0;
}

.chat-reactions-row {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.chat-reaction-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.72rem;
  color: var(--sand-200);
  cursor: pointer;
}

.room-input-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.chat-tool-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
}

.room-text-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.chat-send-btn {
  background: linear-gradient(135deg, #d4af37, #9b7216);
  border: none;
  color: #000;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   4. لوحة إدارة ذلول الإبل الشاملة (Admin CMS Dashboard)
   ========================================================================== */
.admin-cms-card {
  background: #110e0a;
  border: 1.5px solid var(--gold-primary);
  border-radius: 22px;
  width: 95vw;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95);
  box-sizing: border-box;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.admin-brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-shield-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.admin-brand-cluster h3 {
  color: #fff;
  margin: 0 0 3px 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-brand-cluster p {
  color: var(--sand-300);
  font-size: 0.78rem;
  margin: 0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
}

.kpi-title {
  font-size: 0.72rem;
  color: var(--sand-400);
  font-weight: 700;
  display: block;
}

.kpi-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  margin: 4px 0 2px 0;
}

.kpi-val .cur {
  font-size: 0.7rem;
  color: var(--sand-400);
}

.kpi-sub {
  font-size: 0.65rem;
  color: var(--sand-400);
  display: block;
}

.admin-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(12, 10, 7, 0.75);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(8px);
}

.admin-tab-btn {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 5px rgba(0, 0, 0, 0.4);
  color: var(--sand-300);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-tab-btn i {
  font-size: 0.8rem;
  color: var(--gold-light);
  transition: transform 0.2s;
}

.admin-tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.admin-tab-btn:hover i {
  transform: scale(1.15);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-color: #f7e096;
  color: #110d05;
  font-weight: 800;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 3px 10px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.admin-tab-btn.active i {
  color: #110d05;
}

.admin-tab-content {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.admin-pane {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* بطاقة رأس لوحة المزاد */
.admin-auction-card-head {
  background: rgba(25, 20, 14, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.admin-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffb703;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: 20px;
  padding: 2px 8px;
}

/* أزرار التحكم بالمزاد ثلاثية الأبعاد والمتحركة */
.admin-3d-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.btn-3d-admin {
  position: relative;
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-3d-admin .btn-3d-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-3d-admin .btn-3d-label-wrap {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 2px;
}

.btn-3d-admin .btn-3d-main-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.btn-3d-admin .btn-3d-sub-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

/* زر التمديد الذهبي ثلاثي الأبعاد */
.btn-3d-extend {
  background: linear-gradient(135deg, #38280f 0%, #1c1407 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-bottom: 3px solid #997300;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-3d-extend .btn-3d-icon-wrap {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #ffd700;
}

.btn-3d-extend:hover {
  transform: translateY(-2px);
  border-bottom-width: 4px;
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-3d-extend:hover .btn-3d-icon-wrap {
  transform: rotate(-35deg) scale(1.1);
}

.btn-3d-extend:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* زر الترسية الزمردي الملكي ثلاثي الأبعاد والمتحرك (بديل الزر الأبيض) */
.btn-3d-finalize {
  background: linear-gradient(135deg, #063923 0%, #031e13 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-bottom: 3px solid #059669;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 14px rgba(5, 150, 105, 0.35);
  animation: finalizeGlowPulse 2.8s infinite ease-in-out;
}

@keyframes finalizeGlowPulse {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 14px rgba(5, 150, 105, 0.3);
    border-color: rgba(52, 211, 153, 0.45);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 22px rgba(16, 185, 129, 0.55);
    border-color: rgba(110, 231, 183, 0.7);
  }
}

.btn-3d-finalize .btn-3d-icon-wrap {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #6ee7b7;
}

.btn-3d-finalize:hover {
  transform: translateY(-2px);
  border-bottom-width: 4px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
}

.btn-3d-finalize:hover .btn-3d-icon-wrap {
  transform: scale(1.18) rotate(12deg);
}

.btn-3d-finalize:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

.admin-notice-note {
  font-size: 0.72rem;
  color: var(--sand-300);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin: 6px 0 14px 0;
  background: rgba(0, 0, 0, 0.4);
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.76rem;
  box-sizing: border-box;
}

.admin-table th {
  padding: 9px 10px;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  font-weight: 700;
  background: rgba(22, 18, 12, 0.95);
  white-space: nowrap;
  font-size: 0.74rem;
}

.admin-table td {
  padding: 9px 10px;
  color: #eee4d3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  white-space: nowrap;
}

.admin-table .btn-action-sm {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  margin-left: 4px;
}

.btn-approve { background: #10b981; color: #fff; }
.btn-reject { background: #ef4444; color: #fff; }

/* بطاقات سجل العمليات والذكاء الاصطناعي الأنيقة والمتناسقة */
.admin-logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-log-card {
  background: rgba(20, 16, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 9px 12px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.admin-log-card:hover {
  background: rgba(28, 22, 16, 0.85);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(-2px);
}

.log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 8px;
}

.log-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.log-user-badge.role-ai {
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

.log-user-badge.role-voice {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.log-user-badge.role-escrow {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.log-user-badge.role-auction {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffd700;
}

.log-user-badge.role-system {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.log-timestamp {
  font-size: 0.65rem;
  color: var(--sand-400);
  font-family: 'Courier New', Courier, monospace;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.log-action-text {
  font-size: 0.73rem;
  color: #ede2cf;
  line-height: 1.45;
  font-weight: 500;
}

.log-chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-size: 0.67rem;
  font-family: monospace;
}

.log-price-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 700;
}

.log-pct-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
}

.log-item-row {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.log-time { color: var(--gold-primary); font-weight: 700; }
.log-user { color: #fff; font-weight: 700; }
.log-action { color: var(--sand-300); }

@media (max-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-tabs-bar {
    gap: 4px;
    padding: 6px 8px;
  }
  .admin-tab-btn {
    font-size: 0.68rem;
    padding: 5px 6px;
  }
  .btn-3d-admin {
    min-width: 100%;
  }
}

/* ==========================================================================
   تحسينات التباين الفائق والخطوط البيضاء الصريحة للدوك السفلي والأزرار
   ========================================================================== */
.btn-checkout-dock,
#open-deal-modal-btn {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(18, 14, 10, 0.95)) !important;
  border: 1px solid rgba(212, 175, 55, 0.75) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.btn-checkout-dock span,
#open-deal-modal-btn span {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px #000000 !important;
}

.btn-checkout-dock i,
#open-deal-modal-btn i {
  color: #ffd700 !important;
  font-size: 0.9rem !important;
}

.dock-price-label {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px #000000 !important;
}

.dock-price-val .amount {
  color: #ffd700 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4) !important;
}

.dock-price-val .currency {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.dock-title-text {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.feat-pill-btn {
  color: #ffffff !important;
  font-weight: 800 !important;
  background: rgba(18, 14, 10, 0.88) !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.feat-pill-btn span {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.feat-pill-btn i {
  color: #ffd700 !important;
}

.feat-pill-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45), rgba(35, 25, 15, 0.95)) !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4) !important;
}

.feat-pill-btn.active span {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.btn-snap-header {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(0, 0, 0, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-snap-header:hover {
  background: var(--gold-primary);
  color: #000;
}
.btn-snap-header:hover i {
  color: #000 !important;
}

/* ==========================================================================
   سهم توجيهي ثلاثي الأبعاد محدد للرأس والهامة الملكية
   ========================================================================== */
.anatomical-pointer-arrow {
  position: absolute;
  top: 14%;
  right: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 45;
  pointer-events: none;
  animation: bounceHeadPointer 1.6s ease-in-out infinite;
}

@keyframes bounceHeadPointer {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.arrow-content-box {
  background: linear-gradient(135deg, #d4af37, #99731b);
  color: #000000;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
  border: 1px solid #fff;
  white-space: nowrap;
}

.arrow-down-tip {
  margin-top: -2px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

/* ==========================================================================
   تصميم دردشة ذلول الإبل على طراز الواتساب الملكي (WhatsApp-Grade UI)
   ========================================================================== */
.wa-chat-window-card {
  width: 95%;
  max-width: 580px;
  height: 86vh;
  max-height: 820px;
  background: #0b141a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  position: relative;
}

.wa-chat-header {
  background: #075e54;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  color: #ffffff;
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.wa-avatar-box {
  position: relative;
  width: 40px;
  height: 40px;
}

.wa-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffd700;
}

.wa-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #25d366;
  border: 2px solid #075e54;
  border-radius: 50%;
}

.wa-contact-meta {
  display: flex;
  flex-direction: column;
}

.wa-contact-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.wa-contact-subtitle {
  font-size: 0.74rem;
  color: #bbf7d0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-icon-action-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.wa-icon-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.wa-rooms-tab-bar {
  background: #111b21;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.wa-rooms-tab-bar::-webkit-scrollbar {
  display: none;
}

.wa-tab-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd9df;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 0.2s;
}

.wa-tab-pill.active {
  background: #00a884;
  color: #ffffff;
  border-color: #00a884;
}

.wa-pill-badge {
  background: #25d366;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 6px;
}

.wa-messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-msg-bubble {
  max-width: 82%;
  padding: 8px 12px 6px 12px;
  border-radius: 12px;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.wa-msg-incoming {
  align-self: flex-start;
  background: #202c33;
  color: #ffffff;
  border-top-right-radius: 2px;
}

.wa-msg-outgoing {
  align-self: flex-end;
  background: #005c4b;
  color: #ffffff;
  border-top-left-radius: 2px;
}

.wa-msg-sender {
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 3px;
}

.wa-msg-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.wa-msg-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}

.wa-ticks {
  color: #53bdeb;
  font-size: 0.72rem;
  font-weight: 700;
}

.wa-input-bottom-bar {
  background: #111b21;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-bar-icon-btn {
  background: transparent;
  border: none;
  color: #8696a0;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.wa-bar-icon-btn:hover {
  color: #ffffff;
}

.wa-input-pill-wrapper {
  flex: 1;
  background: #2a3942;
  border-radius: 24px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-message-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  padding: 9px 0;
  font-family: inherit;
}

.wa-message-input::placeholder {
  color: #8696a0;
}

.wa-send-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00a884;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 168, 132, 0.4);
  transition: transform 0.2s;
}

.wa-send-circle-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   تنسيقات مسار الصفقات والضمان المالي 2.50% (Deal Stepper)
   ========================================================================== */
.deal-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px 0;
  padding: 0 10px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--sand-300);
}

.step-item .num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-item.active {
  color: #ffd700;
  font-weight: 800;
}

.step-item.active .num {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 6px 14px 6px;
}

.step-line.active {
  background: var(--gold-primary);
}

.deal-camel-summary-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 10px;
}

.deal-thumb {
  width: 65px;
  height: 65px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
}

/* =========================================================================
   1. شريط التحكم ثلاثي الأبعاد للجمل في المزايدة (4 جهات ودوران 360)
   ========================================================================= */
.camel-3d-toolbar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 40px;
  padding: 6px 14px;
  z-index: 45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 18px rgba(212, 175, 55, 0.2);
  max-width: 96%;
  overflow-x: auto;
  scrollbar-width: none;
}
.camel-3d-toolbar::-webkit-scrollbar {
  display: none;
}
.camel-angles-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-camel-angle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.btn-camel-angle:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.6);
  color: #fff;
  transform: translateY(-2px);
}
.btn-camel-angle.active {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #080d1a;
  border-color: #f7d774;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.45);
  font-weight: 700;
}
.btn-camel-spin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.btn-camel-spin:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  color: #fff;
}
.btn-camel-spin.spinning {
  background: rgba(16, 185, 129, 0.35);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.camel-angle-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #f7d774;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================================
   2. دردشة ذلول الإبل - نمط المنصة الرياضية الفاخرة المظلمة (Sport Chat)
   ========================================================================= */
.sport-chat-window-card {
  width: 95vw;
  max-width: 780px;
  height: 88vh;
  max-height: 850px;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
              linear-gradient(180deg, #090e18 0%, #05080e 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.sport-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  gap: 12px;
}
.sport-chat-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sport-chat-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(16, 185, 129, 0.2));
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}
.sport-title-text {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #f7d774);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sport-subtitle-text {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sport-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10b981;
  font-weight: 700;
  font-size: 0.72rem;
}
.sport-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLive 1.5s infinite;
}
@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.sport-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sport-self-destruct-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.sport-chat-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sport-chat-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}
.sport-rooms-tab-bar {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(10, 15, 26, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.sport-rooms-tab-bar::-webkit-scrollbar {
  display: none;
}
.sport-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.sport-tab-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: #fff;
}
.sport-tab-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
  border-color: var(--gold-primary);
  color: #f7d774;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
  font-weight: 700;
}
.sport-bot-ticker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(16, 185, 129, 0.1);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.78rem;
  color: #34d399;
}
.ticker-badge {
  background: #10b981;
  color: #052e16;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.ticker-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e2e8f0;
}
.sport-messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
              transparent;
}
.sport-msg-card {
  display: flex;
  gap: 12px;
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 18px;
  animation: fadeInMsg 0.3s ease;
  position: relative;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.sport-msg-card.incoming {
  align-self: flex-start;
  background: rgba(18, 25, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-right-radius: 4px;
}
.sport-msg-card.outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-top-left-radius: 4px;
}
.sport-msg-card.bot-alert {
  align-self: center;
  max-width: 92%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 14px;
  text-align: center;
  justify-content: center;
}
.sport-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sport-msg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sport-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}
.sport-user-name {
  font-weight: 700;
  color: #f1f5f9;
}
.sport-badge-tag {
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.2);
  color: #f7d774;
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.sport-time-text {
  color: #64748b;
  font-size: 0.68rem;
  margin-right: auto;
}
.sport-msg-content {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
  word-break: break-word;
}
.sport-msg-deal-chip {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sport-deal-btn {
  padding: 5px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border: none;
  color: #0b101b;
  font-weight: 700;
  font-size: 0.74rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.sport-deal-btn:hover {
  transform: scale(1.04);
}
.sport-input-bottom-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.sport-input-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 25px;
  padding: 10px 18px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.sport-input-field:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}
.sport-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border: none;
  color: #0a0f1d;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s ease;
}
.sport-send-btn:hover {
  transform: scale(1.06);
}
.sport-action-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sport-action-icon-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f7d774;
}

/* =========================================================================
   3. سناب ذلول الإبل بنمط سناب شات والقصص الرياضية (Vertical 9:16)
   ========================================================================= */
.snap-modal-card {
  width: 95vw;
  max-width: 420px;
  height: 92vh;
  max-height: 840px;
  aspect-ratio: 9/16;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.snap-media-stage {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}
.snap-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.snap-top-progress-bars {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 50;
}
.snap-prog-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  overflow: hidden;
}
.snap-prog-fill {
  width: 0%;
  height: 100%;
  background: #fff;
  transition: width 0.1s linear;
}
.snap-top-author-bar {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding-bottom: 20px;
}
.snap-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.snap-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  object-fit: cover;
}
.snap-author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.snap-author-time {
  font-size: 0.72rem;
  color: #cbd5e1;
}
.snap-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.snap-floating-stickers {
  position: absolute;
  top: 75px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 45;
  pointer-events: none;
}
.snap-sticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px;
  padding: 5px 12px;
  color: #f7d774;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
/* =========================================================================
   شريط سناب ذلول الإبل الرقمي ثلاثي الأبعاد الموحد (Snapchat 3D Digital iOS Dock)
   تصميم حضاري رقمي فخم ثلاثي الأبعاد في سطر واحد تحت الكتابة دون تشويه منظر الشاشة
   ========================================================================= */

.snap-vertical-actions-rail {
  display: none !important; /* إخفاء الشريط العمودي تماماً لمنع تشويه صورة الإبل */
}

.snap-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(5, 7, 12, 0.96) 0%, rgba(9, 12, 20, 0.75) 50%, rgba(9, 12, 20, 0.2) 85%, transparent 100%);
  padding: 24px 14px 16px 14px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snap-caption-box {
  background: rgba(12, 16, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 9px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.snap-caption-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 7px;
  position: relative;
  z-index: 60;
  pointer-events: auto;
}

.btn-snap-create-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(26, 20, 10, 0.96) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.85);
  color: #ffd700;
  padding: 6px 18px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: snapCreatePulse 3s infinite ease-in-out;
  position: relative;
  z-index: 70;
  pointer-events: auto !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes snapCreatePulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.85);
  }
  50% {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 22px rgba(212, 175, 55, 0.65);
    border-color: #ffd700;
  }
}

.btn-snap-create-post:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, #d4af37 0%, #b38728 100%);
  color: #0b0f19;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.7);
  border-color: #ffffff;
}

.btn-snap-create-post:active {
  transform: translateY(1px) scale(0.97);
}

.btn-snap-create-post i {
  font-size: 0.92rem;
}

.snap-caption-text {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  color: #f8fafc;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* الشريط الرقمي ثلاثي الأبعاد الموحد في سطر واحد جنب بعض */
.snap-3d-digital-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

/* 1. حقل أرسل رداً إلى المالك ثلاثي الأبعاد */
.snap-3d-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 44px;
  background: linear-gradient(180deg, rgba(30, 38, 54, 0.72) 0%, rgba(14, 18, 28, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 0 12px 0 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.28),
              inset 0 -2px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.snap-3d-input-wrap:focus-within {
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6),
              0 0 14px rgba(212, 175, 55, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.snap-3d-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0 4px;
}

.snap-3d-input::placeholder {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
}

.snap-3d-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 50%, #997510 100%);
  color: #0b0f17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  flex-shrink: 0;
}

.snap-3d-send-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.7);
}

.snap-3d-send-btn:active {
  transform: scale(0.92);
}

/* الأزرار الرقمية ثلاثية الأبعاد بنمط الآيفون (iOS 3D Glass Capsules) */
.snap-3d-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 13px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(35, 43, 62, 0.72) 0%, rgba(16, 20, 30, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.32),
              inset 0 -2px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease,
              background 0.2s ease;
  flex-shrink: 0;
}

.snap-3d-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.snap-3d-pill-btn:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 2. زر صفقة 2.50% ثلاثي الأبعاد الملكي */
.snap-3d-deal-btn {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.32) 0%, rgba(28, 23, 15, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5),
              0 0 14px rgba(212, 175, 55, 0.22),
              inset 0 1px 1px rgba(255, 238, 170, 0.5),
              inset 0 -2px 3px rgba(0, 0, 0, 0.4);
}

.snap-3d-deal-btn i {
  color: #ffd700;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.65));
  font-size: 0.88rem;
}

.snap-3d-deal-btn:hover {
  border-color: #ffd700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65),
              0 0 18px rgba(212, 175, 55, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

/* 3. زر مشاركة ثلاثي الأبعاد رقمي */
.snap-3d-share-btn {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 22, 34, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5),
              0 0 12px rgba(56, 189, 248, 0.18),
              inset 0 1px 1px rgba(186, 230, 253, 0.4),
              inset 0 -2px 3px rgba(0, 0, 0, 0.4);
}

.snap-3d-share-btn i {
  color: #38bdf8;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.6));
  font-size: 0.88rem;
}

.snap-3d-share-btn:hover {
  border-color: #38bdf8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65),
              0 0 18px rgba(56, 189, 248, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* 4. زر الإعجاب مع الرقم 512 ثلاثي الأبعاد بنمط الآيفون */
.snap-3d-like-btn {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.24) 0%, rgba(28, 14, 20, 0.9) 100%);
  border: 1px solid rgba(244, 63, 94, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5),
              0 0 12px rgba(244, 63, 94, 0.2),
              inset 0 1px 1px rgba(254, 205, 211, 0.45),
              inset 0 -2px 3px rgba(0, 0, 0, 0.4);
  padding: 0 13px;
}

.snap-3d-like-btn i {
  color: #f43f5e;
  font-size: 0.96rem;
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.75));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.snap-3d-like-btn:hover i {
  transform: scale(1.18);
}

.pill-btn-count {
  font-size: 0.88rem;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* التجاوب الذكي مع الشاشات الصغيرة والهواتف */
@media (max-width: 480px) {
  .snap-bottom-overlay {
    padding: 16px 10px 12px 10px;
    gap: 6px;
  }
  .snap-3d-digital-bar {
    gap: 5px;
  }
  .snap-3d-pill-btn {
    height: 38px;
    padding: 0 9px;
    font-size: 0.75rem;
    gap: 4px;
    border-radius: 19px;
  }
  .snap-3d-input-wrap {
    height: 38px;
    padding: 0 9px 0 4px;
    border-radius: 19px;
  }
  .snap-3d-input {
    font-size: 0.75rem;
  }
  .snap-3d-input::placeholder {
    font-size: 0.72rem;
  }
  .snap-3d-send-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .pill-btn-count {
    font-size: 0.8rem;
  }
  .snap-caption-text {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* =========================================================================
   4. موسوعة الجمال (Camel Encyclopedia Modal & Dossier)
   ========================================================================= */
.encyclopedia-modal-card {
  width: 95vw;
  max-width: 980px;
  max-height: 90vh;
  background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, #0d1322 0%, #060911 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.encyclopedia-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.encyclopedia-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.encyclopedia-icon-emblem {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.encyclopedia-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #f7d774);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.encyclopedia-subheading {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}
.camel-encyclopedia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
}
.camel-encyclopedia-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.camel-encyclopedia-card:hover {
  transform: translateY(-6px) perspective(1000px) rotateX(2deg);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.25);
}
.encyclopedia-card-media-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.encyclopedia-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.camel-encyclopedia-card:hover .encyclopedia-card-img {
  transform: scale(1.06);
}
.encyclopedia-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 3px 9px;
  color: #f7d774;
  font-size: 0.72rem;
  font-weight: 700;
}
.encyclopedia-play-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 20px;
  padding: 3px 8px;
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.encyclopedia-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.encyclopedia-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}
.encyclopedia-card-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.encyclopedia-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}
.encyclopedia-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 10px;
  color: #e2e8f0;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.encyclopedia-like-btn.liked {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}
.encyclopedia-open-dossier-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(184, 134, 11, 0.2));
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 6px 12px;
  color: #f7d774;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.encyclopedia-open-dossier-btn:hover {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #0b101b;
}
.encyclopedia-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.encyclopedia-share-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-primary);
  color: #f7d774;
}

/* Dossier Modal */
.dossier-modal-card {
  width: 95vw;
  max-width: 720px;
  max-height: 88vh;
  background: #090e18;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  padding: 24px;
  position: relative;
}
.dossier-video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 16px;
}
.dossier-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.dossier-meta-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.dossier-meta-item span:first-child {
  color: #94a3b8;
}
.dossier-meta-item span:last-child {
  color: #f7d774;
  font-weight: 700;
}

/* Share Article Modal */
.share-article-modal-card {
  width: 90vw;
  max-width: 440px;
  background: #0d1424;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}
.share-targets-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.btn-share-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s ease;
  min-width: 70px;
}
.btn-share-target:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

/* =========================================================================
   5. تباعد الأيقونات والبطاقات والحركة ثلاثية الأبعاد (3D Touch & Card Spacing)
   ========================================================================= */
.card-3d-touch {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-3d-touch:hover, .card-3d-touch:focus-visible {
  transform: translateY(-5px) perspective(1000px) rotateX(1.8deg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 18px rgba(212, 175, 55, 0.25) !important;
}
.card-3d-touch:active {
  transform: translateY(-1px) scale(0.99);
}
.cards-spaced-grid {
  display: grid;
  gap: 14px;
  margin: 10px 0;
}
/* =========================================================================
   6. تنسيقات النوافذ والخدمات التفاعلية الشاملة (Universal Interactive Services)
   ========================================================================= */
.service-modal-card {
  background: var(--bg-surface);
  border: none;
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.8rem;
  position: relative;
  box-shadow: var(--shadow-gold), 0 20px 50px rgba(0, 0, 0, 0.85);
  transform: scale(0.96);
  transition: var(--transition-smooth);
}

.modal-backdrop.active .service-modal-card {
  transform: scale(1);
}

.service-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  padding-left: 54px; /* مسافة أمان لمنع تداخل زر الإغلاق مع العناوين */
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.service-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-title-group .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-primary);
}

.service-title-group h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.service-title-group span.sub-text {
  font-size: 0.76rem;
  color: var(--sand-400);
  display: block;
  margin-top: 2px;
}

.service-nav-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 1.4rem;
}

.service-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--sand-300);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.service-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-primary), #a68128);
  color: #0c0a07;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.service-tab-pane {
  display: none;
}

.service-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* بطاقات الخدمات التفاعلية */
.service-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 1.2rem;
}

.service-action-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 1.1rem;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-action-card:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.service-action-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.service-action-card h4 {
  font-size: 0.94rem;
  color: #fff;
  font-weight: 800;
  margin: 0;
}

.service-action-card p {
  font-size: 0.78rem;
  color: var(--sand-300);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.service-action-card .card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--gold-light);
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

/* بطاقة الهوية الرقمية الذكية NFC */
.nfc-pass-card {
  background: linear-gradient(135deg, #1b1713 0%, #0d0b09 50%, #201a11 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.nfc-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.nfc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.nfc-chip-symbol {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4af37, #8c6d23);
  border: 1px solid #ffe699;
  position: relative;
}

.nfc-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.nfc-user-info h3 {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 900;
  margin-bottom: 4px;
}

.nfc-user-info .membership-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.nfc-qr-box {
  width: 75px;
  height: 75px;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nfc-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* نماذج الحساب والمدخلات الفاخرة */
.calc-input-group {
  margin-bottom: 1rem;
}

.calc-input-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--sand-300);
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.calc-input-field:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.calc-summary-panel {
  background: rgba(212, 175, 55, 0.06);
  border: none;
  border-radius: 16px;
  padding: 1.2rem;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 600px) {
  .service-modal-card {
    padding: 1.3rem;
    max-height: 92vh;
  }
  .service-grid-cards {
    grid-template-columns: 1fr;
  }
  .nfc-pass-card {
    padding: 1.2rem;
  }
}

/* ==========================================================================
   موسوعة الجمال - الأزرار الرقمية ثلاثية الأبعاد الفاخرة (3D Digital iOS Filter Bar)
   ========================================================================== */
.encyclopedia-filter-bar,
.encyclopedia-3d-filter-bar {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto 16px auto !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}

.filter-pill,
.filter-3d-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 40px !important;
  padding: 0 6px !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(35, 43, 62, 0.85) 0%, rgba(16, 20, 30, 0.95) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f1f5f9 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.3),
              inset 0 -2px 3px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  text-align: center !important;
  text-decoration: none !important;
}

.filter-pill:hover,
.filter-3d-pill:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(212, 175, 55, 0.55) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55), 0 0 12px rgba(212, 175, 55, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}

.filter-pill.active,
.filter-3d-pill.active {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.35) 0%, rgba(28, 22, 14, 0.96) 100%) !important;
  border: 1.5px solid #d4af37 !important;
  color: #ffd700 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6),
              0 0 16px rgba(212, 175, 55, 0.45),
              inset 0 1px 1px rgba(255, 240, 180, 0.55) !important;
}

.filter-pill:active,
.filter-3d-pill:active {
  transform: translateY(1px) scale(0.96) !important;
}

/* عنوان موسوعة الجمال صغير وفي سطر واحد */
.encyclopedia-title-compact {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
  white-space: nowrap !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 16px rgba(212, 175, 55, 0.3) !important;
  letter-spacing: -0.2px !important;
}

@media (max-width: 600px) {
  .encyclopedia-filter-bar,
  .encyclopedia-3d-filter-bar {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 4px 2px !important;
  }
  .filter-pill,
  .filter-3d-pill {
    height: 38px !important;
    padding: 0 4px !important;
    font-size: 0.74rem !important;
    gap: 3px !important;
  }
  .encyclopedia-title-compact {
    font-size: 1.15rem !important;
  }
}

@media (min-width: 768px) {
  .encyclopedia-filter-bar,
  .encyclopedia-3d-filter-bar {
    grid-template-columns: repeat(6, 1fr) !important;
    max-width: 820px !important;
  }
}

/* مشغل الفيديوهات القصيرة 30 ثانية وحقل روابط التواصل */
.short-clips-tray {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.clips-buttons-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.btn-clip-pill {
  width: 100% !important;
  min-width: 0 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
  padding: 7px 4px !important;
  border-radius: 10px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.btn-clip-pill:hover,
.btn-clip-pill.active {
  background: rgba(212, 175, 55, 0.22) !important;
  border: 1.5px solid #d4af37 !important;
  color: #ffd700 !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35) !important;
}

.social-video-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.social-input-wrapper {
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 12px !important;
  padding: 3px 6px !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  }
.social-input-wrapper input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 0 !important;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 0.76rem !important;
  outline: none !important;
  font-family: inherit !important;
  padding: 6px 4px !important;
  box-sizing: border-box !important;
}
.social-input-wrapper input::placeholder {
  color: #64748b !important;
  font-size: 0.72rem !important;
}
.btn-run-social-load {
  flex: 0 0 auto !important;
  background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%) !important;
  border: none !important;
  color: #0b0f17 !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: transform 0.15s ease !important;
  white-space: nowrap !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
}
.btn-run-social-load:active {
  transform: scale(0.96) !important;
}

/* ==========================================================================
   نافذة رفع وتصوير سناب ذلول الإبل بنمط عالي الأولوية (Z-Index 99999)
   ========================================================================== */
#dhalool-upload-snap-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  z-index: 99999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#dhalool-upload-snap-modal.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#dhalool-upload-snap-modal .bid-modal-content {
  background: #0f131d !important;
  border: 1.5px solid var(--gold-primary) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.3) !important;
  max-width: 480px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 100000 !important;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

#dhalool-upload-snap-modal.active .bid-modal-content {
  transform: scale(1) !important;
}

/* فقاعة إضافة سناب جديد في شريط القصص */
.ring-add {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(20, 16, 12, 0.95) 100%) !important;
  border: 2px dashed var(--gold-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
}

.bubble-add-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.snap-add-story-item:hover .bubble-add-icon {
  transform: rotate(90deg) scale(1.2);
}

/* فيديو مشغل السناب الميداني عالي الدقة */
#snap-media-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 10;
  background: #000;
}

/* تبويبات وسائط السناب (فيديو 30 ثانية أو صورة) */
.snap-type-tab {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}
.snap-type-tab:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}
.snap-type-tab:active {
  transform: scale(0.97);
}

#snap-upload-dropzone {
  transition: all 0.25s ease;
}
#snap-upload-dropzone:hover {
  border-color: var(--gold-primary) !important;
  background: rgba(30, 24, 18, 0.85) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #ef4444; }
  50% { opacity: 0.3; transform: scale(0.85); box-shadow: none; }
}

#snap-rec-dot {
  animation: liveDotPulse 1.2s infinite ease-in-out;
}

/* ==========================================================================
   الزر الثانوي الزجاجي ثلاثي الأبعاد (.btn-secondary) لضمان عدم ظهور أي أزرار بيضاء مسطحة
   ========================================================================== */
.btn-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: #f5eedf;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

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

/* ==========================================================================
   المربعات ثلاثية الأبعاد التفاعلية لمجلس الملاك والبطاقة الذكية NFC
   ========================================================================== */
.council-3d-actions-grid,
.nfc-3d-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.btn-3d-action-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.btn-3d-action-box .box-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.btn-3d-action-box .box-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 2px;
  min-width: 0;
}

.btn-3d-action-box .box-title {
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-3d-action-box .box-sub {
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.82;
}

/* نمط المربع الذهبي ثلاثي الأبعاد */
.btn-3d-box-gold {
  background: linear-gradient(135deg, #3d2d12 0%, #201708 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-bottom: 3px solid #b8860b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.btn-3d-box-gold .box-icon-wrap {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #ffd700;
}

.btn-3d-box-gold:hover {
  transform: translateY(-2px);
  border-bottom-width: 4px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-3d-box-gold:hover .box-icon-wrap {
  transform: scale(1.12) rotate(-8deg);
}

.btn-3d-box-gold:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* نمط المربع الزجاجي ثلاثي الأبعاد */
.btn-3d-box-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.4);
  color: #f5eedf;
}

.btn-3d-box-glass .box-icon-wrap {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--sand-300);
}

.btn-3d-box-glass:hover {
  transform: translateY(-2px);
  border-bottom-width: 4px;
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.btn-3d-box-glass:hover .box-icon-wrap {
  transform: scale(1.12);
  color: var(--gold-light);
}

.btn-3d-box-glass:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* نمط مربع المحفظة التيتانيوم الداكن ثلاثي الأبعاد */
.btn-3d-box-dark {
  background: linear-gradient(135deg, #222222 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 3px solid #333333;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.btn-3d-box-dark .box-icon-wrap {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-3d-box-dark:hover {
  transform: translateY(-2px);
  border-bottom-width: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.btn-3d-box-dark:hover .box-icon-wrap {
  transform: scale(1.15);
}

.btn-3d-box-dark:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* ==========================================================================
   شبكة أزرار مشاركة التواصل الاجتماعي ثلاثية الأبعاد (.social-share-3d-grid)
   ========================================================================== */
.social-share-3d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.btn-3d-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 10px rgba(0, 0, 0, 0.35);
}

.btn-3d-social i {
  font-size: 1rem;
}

.btn-3d-social:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
}

.btn-3d-social:active {
  transform: translateY(1px);
}

/* ألوان المنصات */
.btn-soc-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: 1px solid #20ba5a;
  border-bottom: 2px solid #0e6b60;
}

.btn-soc-x {
  background: linear-gradient(135deg, #222222 0%, #000000 100%);
  color: #fff;
  border: 1px solid #444444;
  border-bottom: 2px solid #222;
}

.btn-soc-snap {
  background: linear-gradient(135deg, #FFE600 0%, #FFC800 100%);
  color: #111;
  border: 1px solid #f0cc00;
  border-bottom: 2px solid #c79e00;
}

.btn-soc-insta {
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid #9c1737;
}

.btn-soc-tele {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  border: 1px solid #33b8fb;
  border-bottom: 2px solid #1a78a6;
}

.btn-soc-link {
  background: linear-gradient(135deg, #3d2f17 0%, #221908 100%);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-bottom: 2px solid #997300;
}

/* ==========================================================================
   أشرطة وسائل التواصل الاجتماعي المصغرة الموحدة لجميع الصفحات
   ========================================================================== */
.drawer-social-section {
  padding: 10px 14px;
  background: rgba(22, 17, 12, 0.7);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.drawer-social-title {
  display: block;
  font-size: 0.68rem;
  color: var(--gold-light, #f7e2a4);
  margin-bottom: 8px;
  font-weight: 700;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  width: 100%;
}

.drawer-social-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.drawer-social-pills .soc-pill {
  width: 20px;
  height: 20px;
  min-width: 28px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.encyclopedia-social-bar {
  margin-top: 2rem;
  padding: 10px 14px;
  background: rgba(28, 21, 14, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
}

.soc-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light, #f7e2a4);
  text-align: center;
  width: 100%;
  margin: 0;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.soc-bar-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.soc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, rgba(42, 31, 20, 0.94) 0%, rgba(22, 16, 10, 0.98) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.42) !important;
  color: #f7e2a4 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 235, 170, 0.2);
  white-space: nowrap;
  box-sizing: border-box;
  min-width: auto;
  text-align: center;
}

.soc-pill i {
  font-size: 0.65rem;
  flex-shrink: 0;
  color: #ffd700 !important;
}

.soc-pill span {
  font-size: 0.62rem;
  color: #f7e2a4;
  white-space: nowrap;
}

.soc-pill:hover {
  transform: translateY(-1px) scale(1.04);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(55, 40, 24, 0.98) 100%) !important;
  border-color: #ffd700 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
}

/* توحيد جميع منصات التواصل بتدرج رملي ذهبي مع بني ملكي يطابق هوية التطبيق */
.soc-pill.soc-x,
.soc-pill.soc-snap,
.soc-pill.soc-insta,
.soc-pill.soc-tiktok,
.soc-pill.soc-yt,
.soc-pill.soc-wa,
.soc-pill.soc-tele {
  background: linear-gradient(135deg, rgba(42, 31, 20, 0.94) 0%, rgba(22, 16, 10, 0.98) 100%) !important;
  color: #f7e2a4 !important;
  border: 1px solid rgba(212, 175, 55, 0.42) !important;
}

.soc-pill.soc-x i,
.soc-pill.soc-snap i,
.soc-pill.soc-insta i,
.soc-pill.soc-tiktok i,
.soc-pill.soc-yt i,
.soc-pill.soc-wa i,
.soc-pill.soc-tele i {
  color: #ffd700 !important;
}

@media (max-width: 600px) {
  .council-3d-actions-grid,
  .nfc-3d-actions-grid {
    grid-template-columns: 1fr;
  }
  .social-share-3d-grid {
    grid-template-columns: 1fr 1fr;
  }
  .encyclopedia-social-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
  }
  .soc-bar-pills {
    justify-content: center;
    gap: 4px;
  }
  .soc-pill {
    height: 25px !important;
    padding: 0 7px !important;
    font-size: 0.60rem !important;
  }
}

/* ==========================================================================
   إلغاء العامود الفضي الداخلي (أشرطة التمرير الافتراضية) تماماً في جميع الشاشات
   ========================================================================== */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

html, body, iframe, .app-viewport, .phone-screen,
.modal-backdrop, .ai-modal-backdrop, .deal-modal-backdrop,
.deal-modal-card, .service-modal-card,
.bid-modal-content, .dossier-modal-card, .snap-player-modal,
.admin-modal-card, .plain-text-modal-card {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
iframe::-webkit-scrollbar,
.app-viewport::-webkit-scrollbar,
.phone-screen::-webkit-scrollbar,
.modal-backdrop::-webkit-scrollbar,
.ai-modal-backdrop::-webkit-scrollbar,
.deal-modal-backdrop::-webkit-scrollbar,
.deal-modal-card::-webkit-scrollbar,
.service-modal-card::-webkit-scrollbar,
.bid-modal-content::-webkit-scrollbar,
.dossier-modal-card::-webkit-scrollbar,
.admin-modal-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==========================================================================
   ضبط وتثبيت علامة الإغلاق (X) داخل إطار النوافذ في الموقع الرسمي
   - إبقاء الزر في زاوية النافذة العلوية اليسرى (top: 14px; left: 14px) داخل حدود الكرت تماماً
   - إلغاء الإزاحة الخارجية السالبة (top: -12px; left: -10px) التي كانت تقص الزر وتخفيه بسبب overflow-y
   - إبراز علامة الإلغاء (X) بوضوح تام بلون ذهبي وخلفية داكنة وظل فاخر وتأثير hover تفاعلي
   ========================================================================== */
.modal-close-btn,
.service-modal-card .modal-close-btn,
.ai-modal-card .modal-close-btn,
.deal-modal-card .modal-close-btn,
.bid-modal-content .modal-close-btn,
.admin-modal-card .modal-close-btn,
.checkout-modal-card .modal-close-btn,
.multi-auction-modal-card .modal-close-btn {
  position: absolute !important;
  top: 8px !important;
  left: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(18, 14, 9, 0.96) !important;
  border: 1.5px solid var(--gold-primary) !important;
  color: #fce38a !important;
  cursor: pointer !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 10px rgba(212, 175, 55, 0.3) !important;
  transition: all 0.25s ease !important;
}

.modal-close-btn:hover {
  background: rgba(220, 38, 38, 0.9) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.12) rotate(90deg) !important;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.6) !important;
}

.ai-modal-header,
.deal-header,
.service-modal-header,
.plain-text-header {
  padding-left: 54px !important; /* مساحة أمان دائمة على اليسار لضمان عدم حجب الكلام */
}

/* ==========================================================================
   منظومة المزادات الحية المتزامنة (30 مزاد متزامن + عروض بيع المشتركين)
   ========================================================================== */
.multi-auctions-dock-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.multi-auctions-dock-inner {
  background: rgba(20, 15, 10, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box;
  overflow: hidden; /* يضمن عدم خروج أي نص أو بادج أو صورة عن حدود الإطار */
}

.multi-auctions-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.dock-title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.dock-title-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.live-dot-pulse {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 12px #10b981;
  animation: pulseLive 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px #10b981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.dock-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-heading span {
  color: var(--gold-light);
}

.dock-sub-badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.dock-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dock-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sand-300);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.dock-filter-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.4);
}

.dock-filter-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(184, 134, 11, 0.95));
  color: #090806;
  border-color: var(--gold-light);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.35);
  font-weight: 800;
}

.dock-jump-select-wrap select.auction-quick-select {
  background: rgba(12, 9, 6, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  padding: 6px 12px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.dock-jump-select-wrap select.auction-quick-select option {
  background: #140f0a;
  color: #fff;
}

/* شريط التمرير الأفقي لبطاقات الـ 30 مزاد */
.auctions-scroll-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 10px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.auctions-scroll-strip::-webkit-scrollbar {
  height: 6px;
}
.auctions-scroll-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
.auctions-scroll-strip::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}
.auctions-scroll-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

/* كرت المزاد الفردي في الشريط */
.auction-strip-card {
  flex: 0 0 230px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.28s ease;
  position: relative;
  text-decoration: none;
  user-select: none;
}

.auction-strip-card:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.auction-strip-card.active {
  background: linear-gradient(135deg, rgba(35, 26, 16, 0.95), rgba(20, 15, 10, 0.98));
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.auction-strip-card.active::after {
  content: 'المعروض حالياً';
  position: absolute;
  top: -8px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold-primary), #b8860b);
  color: #090806;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.strip-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-card-img-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
}

.strip-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strip-card-info {
  flex: 1;
  min-width: 0;
}

.strip-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
}

.strip-card-type-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.strip-card-type-badge.elite {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.strip-card-type-badge.subscriber {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.strip-card-type-badge.production {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.strip-card-id {
  font-size: 0.68rem;
  color: var(--sand-400);
  font-weight: 600;
  direction: ltr;
}

.strip-card-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
  border-radius: 8px;
}

.strip-card-price {
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--gold-light);
}

.strip-card-price span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--sand-400);
}

.strip-card-timer {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sand-300);
  display: flex;
  align-items: center;
  gap: 4px;
  font-feature-settings: "tnum";
}

/* زر تبديل المزاد على المسرح في index.html */
.btn-switch-auction {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-switch-auction:hover {
  background: rgba(212, 175, 55, 0.28);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* نافذة المودال لاختيار واحد من الـ 30 مزاد في الصفحة الرئيسية */
.multi-auction-selector-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 3, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.multi-auction-selector-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.multi-auction-modal-card {
  background: var(--bg-surface);
  border: none;
  border-radius: 24px;
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.8rem;
  position: relative;
  box-shadow: var(--shadow-gold), 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: all 0.3s ease;
}

.multi-auction-selector-modal.active .multi-auction-modal-card {
  transform: scale(1);
}

.multi-auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 1.2rem;
}

.multi-auction-grid-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.multi-auction-grid-item:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.multi-auction-grid-item.current {
  border-color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.grid-item-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-project-stage {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-project-stage:hover {
  background: var(--gold-primary);
  color: #090806;
}

.btn-open-auction-page {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  padding: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-open-auction-page:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (max-width: 768px) {
  .multi-auctions-dock-container {
    padding: 0 8px !important;
    margin-bottom: 1rem !important;
  }

  .multi-auctions-dock-inner {
    padding: 0.85rem 0.9rem !important;
    border-radius: 16px !important;
    }

  .multi-auctions-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .dock-title-group {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .dock-title-main {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .dock-heading {
    font-size: clamp(0.78rem, 3.2vw, 0.88rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }

  .dock-sub-badge {
    font-size: 0.8rem !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  .dock-filter-pills {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 1px 4px 1px !important;
    box-sizing: border-box !important;
  }

  .dock-filter-pills::-webkit-scrollbar {
    display: none !important;
  }

  .dock-filter-btn {
    flex-shrink: 0 !important;
    font-size: 0.74rem !important;
    padding: 5px 12px !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
  }

  .dock-jump-select-wrap {
    width: 100% !important;
  }

  .dock-jump-select-wrap select.auction-quick-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.78rem !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    text-overflow: ellipsis !important;
  }

  .auctions-scroll-strip {
    gap: 10px !important;
    padding: 4px 1px 8px 1px !important;
  }

  .auction-strip-card {
    flex: 0 0 clamp(185px, 56vw, 215px) !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }

  .strip-card-img-wrap {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
  }

  .strip-card-name {
    font-size: 0.82rem !important;
  }

  .strip-card-price {
    font-size: 0.82rem !important;
  }

  .strip-card-timer {
    font-size: 0.70rem !important;
  }
}

/* عنوان نافذة المزادات المتزامنة في سطر واحد وبحجم أصغر وأنيق */
.multi-auction-modal-heading {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
  margin: 0;
}

@media (max-width: 768px) {
  .multi-auction-modal-heading {
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   ضبط وتنسيق شاشة إتمام الصفقة لتناسب مقاس الجوال تماماً وبدون أي زيادة
   ========================================================================== */
@media (max-width: 768px) {
  .deal-modal-backdrop {
    padding: 10px 8px !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.9) !important;
  }

  .deal-modal-card {
    max-width: 94vw !important;
    width: 94vw !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    padding: 12px 10px !important;
    border-radius: 16px !important;
    border: 1px solid var(--gold-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95) !important;
    margin: auto !important;
  }

  .deal-header {
    padding-left: 36px !important;
    margin-bottom: 6px !important;
  }

  .deal-header h3 {
    font-size: 0.86rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 2px 0 4px 0 !important;
  }

  .deal-header p {
    font-size: 0.64rem !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }

  .deal-badge {
    font-size: 0.60rem !important;
    padding: 2px 7px !important;
    margin-bottom: 3px !important;
  }

  .deal-stepper-bar {
    margin: 6px 0 10px 0 !important;
    padding: 0 2px !important;
    gap: 2px !important;
  }

  .step-item {
    font-size: 0.60rem !important;
    gap: 2px !important;
  }

  .step-item .num {
    width: 19px !important;
    height: 19px !important;
    font-size: 0.62rem !important;
  }

  .step-item .txt {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
  }

  .step-line {
    margin: 0 2px 9px 2px !important;
  }

  .escrow-invoice-card {
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
    border-radius: 10px !important;
  }

  .invoice-header {
    font-size: 0.70rem !important;
    margin-bottom: 4px !important;
  }

  .invoice-header .rate-pill {
    font-size: 0.60rem !important;
    padding: 1px 5px !important;
  }

  .invoice-table .inv-row {
    font-size: 0.70rem !important;
    padding: 3px 0 !important;
  }

  .invoice-table .inv-row.total-row {
    padding: 5px 0 !important;
    margin: 4px 0 !important;
    font-size: 0.76rem !important;
  }

  .bank-details-box {
    padding: 7px 9px !important;
    margin-top: 6px !important;
    border-radius: 8px !important;
  }

  .bank-details-box div {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    margin-bottom: 2px !important;
  }

  .bank-details-box code {
    font-size: 0.65rem !important;
    padding: 1px 4px !important;
  }

  .receipt-upload-box {
    margin: 6px 0 !important;
  }

  .receipt-upload-box > div {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }

  .receipt-upload-box i {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
  }

  .receipt-upload-box span,
  .receipt-upload-box div {
    font-size: 0.70rem !important;
  }

  .btn-confirm-deal {
    padding: 9px 10px !important;
    font-size: 0.80rem !important;
    border-radius: 9px !important;
    margin-top: 6px !important;
  }
}

/* ==========================================================================
   المواصفات القياسية العالمية لواجهات المستخدم (UI/UX Standards - Android & iOS)
   تطبيق مقاييس النقاط (Points/Dp) ووحدات مقياس الخط (Sp)
   ========================================================================== */

/* 1. العناوين الرئيسية الكبيرة (Titles / H1: 24sp إلى 32sp) */
h1,
.page-title,
.hero-title,
.brand-title h1,
.main-title-sp,
.dossier-camel-name-large {
  font-size: var(--sp-h1, clamp(24px, 4.5vw, 32px)) !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px;
}

/* 2. عناوين الأقسام الفرعية (Subtitles / H2: 18sp إلى 22sp) */
h2,
.section-title,
.camel-title-box h2,
.sub-heading,
.panel-title,
.modal-title,
.dossier-camel-name,
.admin-modal-title,
.card-section-title {
  font-size: var(--sp-h2, clamp(18px, 2.8vw, 22px)) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
}

/* 3. النصوص الأساسية والعادية (Body Text: 14sp أو 16sp لراحة العين) */
body,
p,
.body-text,
.camel-desc,
.desc-text,
.info-paragraph,
.tab-pane p,
.dossier-full-story p,
.notice-text,
.deal-header p {
  font-size: var(--sp-body, 15px) !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

/* نصوص التفاصيل والمعلومات المساندة (14sp) */
.body-sm,
.card-sub,
.meta-text,
.camel-loc,
.dossier-owner-line,
.spec-item .val {
  font-size: var(--sp-body-small, 14px) !important;
  line-height: 1.5 !important;
}

/* 4. نصوص الأزرار والعناصر الصغيرة والتسميات التوضيحية (Buttons & Captions: 11sp إلى 13sp) */
button,
.btn,
.nav-item a,
.caption,
.pill-label,
.filter-3d-pill,
.badge-pill,
.soc-pill span,
.stage-badge,
.tab-btn,
.metric-label,
.ticker-mini-card .mini-card-head,
.ticker-mini-card .mini-card-sub,
.card-pill-tag,
.btn-hear-voice span,
.btn-open-chat-quick,
.countdown,
.live-badge,
.dossier-badge,
.quick-bid-action-btn span,
.deal-badge,
.step-item .txt,
.soc-bar-label,
.drawer-social-title {
  font-size: var(--sp-btn-caption, 12px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

/* التسميات التوضيحية الدقيقة (11sp) */
.caption-min,
.helper-text,
.micro-caption,
.bid-time-ago,
.deal-helper-hint {
  font-size: var(--sp-caption-min, 11px) !important;
  line-height: 1.4 !important;
}

/* 5. نظام الشبكة والهوامش الهندسية بمضاعفات 4 و 8 (Grid & Padding: 16dp / 24dp) */
.container,
.main-content-wrap,
.page-container,
.encyclopedia-container {
  padding-left: var(--dp-spacing-16, 16px) !important;
  padding-right: var(--dp-spacing-16, 16px) !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  .container,
  .main-content-wrap,
  .page-container,
  .encyclopedia-container {
    padding-left: var(--dp-spacing-24, 24px) !important;
    padding-right: var(--dp-spacing-24, 24px) !important;
  }
}

/* هوامش بطاقات المحتوى والنوافذ المنبثقة المعتمدة بـ 16dp و 24dp */
.card-glass,
.auction-card-glass,
.encyclopedia-card,
.admin-cms-card,
.deal-modal-card,
.dossier-modal-card {
  padding: var(--dp-spacing-16, 16px) !important;
  border-radius: var(--dp-spacing-16, 16px) !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  .card-glass,
  .auction-card-glass,
  .encyclopedia-card,
  .admin-cms-card,
  .dossier-modal-card {
    padding: var(--dp-spacing-24, 24px) !important;
    border-radius: var(--dp-spacing-24, 24px) !important;
  }
}

/* 6. أحجام الأيقونات والعناصر القابلة للمس (Touch Targets >= 48x48 dp) */
@media (pointer: coarse), (max-width: 768px) {
  /* أزرار الإجراءات الرئيسية والملاحة التفاعلية لا يقل ارتفاعها عن 48dp */
  .btn-primary,
  .btn-action,
  .btn-confirm-deal,
  .drawer-trigger-btn,
  .camera-btn,
  .tab-btn,
  .btn-quick-bid,
  .quick-bid-action-btn,
  .suhail-avatar-btn,
  .nav-item a,
  .pill-btn,
  .drawer-nav-item {
    min-height: var(--dp-touch-min, 48px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    touch-action: manipulation;
  }

  /* الأزرار المربعة والدائرية لا تقل أبعادها عن 48x48 dp */
  .btn-circle,
  .modal-close-btn,
  .btn-theme-toggle,
  .drawer-trigger-btn {
    min-width: var(--dp-touch-min, 48px) !important;
    min-height: var(--dp-touch-min, 48px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* زيادة منطقة النقر حول أيقونات التواصل الاجتماعي في الجوال */
  .drawer-social-pills .soc-pill {
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 2px !important;
  }
}

/* ==========================================================================
   نظام الخطوط الفاخر لتطبيقات الآيفون والأندرويد والشاشات الذكية (iOS & Android Apps Typography)
   - وزن الخط: Regular (400) لكافة النصوص العادية والفقرات والشروحات والمدخلات
   - وزن الخط: Medium (500) للعناوين والأزرار والأسعار والبادجات
   - إلغاء الخطوط العريضة الثقيلة (Bold/Heavy 700/800/900) نهائياً على شاشات وتطبيقات الجوال
   - ضبط مقاسات النصوص والمسافات لتكون خفيفة ومريحة وأنيقة على شاشات الآيفون والهواتف الذكية
   ========================================================================== */

@media (max-width: 768px), screen and (max-device-width: 820px), (pointer: coarse) and (max-width: 1024px), html.dhalool-app-env {
  /* تعيين الوزن العادي (Regular 400) كقاعدة عامة لكافة النصوص في تطبيقات الآيفون والأندرويد */
  body,
  p,
  span,
  a,
  label,
  input,
  textarea,
  select,
  li,
  td,
  div,
  small,
  caption,
  .spec-chip .label,
  .mini-card-sub,
  .camel-meta,
  .camel-loc,
  .camel-breed,
  .deal-desc,
  .toast-notice,
  .auction-desc,
  .bids-history-list,
  .hotspot-tooltip,
  .suhail-speech-bubble,
  .greeting-text,
  .chat-msg-text,
  .instruction-text,
  .admin-subtitle,
  .field-hint,
  .notif-desc,
  .quran-bracket,
  .spec-item-box .label,
  .sub-label,
  .commission-calc-sub {
    font-weight: 400 !important;
    line-height: 1.55;
    letter-spacing: 0;
  }

  /* تعيين الوزن المتوسط (Medium 500) فقط للعناوين والأزرار والأسعار والبادجات والمصطلحات البارزة */
  h1, h2, h3, h4, h5, h6,
  strong, b,
  button,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-gold,
  .btn-action,
  .camera-btn,
  .tab-btn,
  .pill-btn,
  .drawer-nav-item,
  .deal-btn-action,
  .quick-bid-action-btn,
  .btn-stage-quick-bid,
  .rect-3d-text-block .word-bid,
  .rect-3d-text-block .word-quick,
  .spec-chip .value,
  .mini-card-head,
  .mini-card-price,
  .camel-name,
  .camel-badge,
  .camel-badge-live,
  .current-price-val,
  .auction-timer-block .time-value,
  .bid-price,
  .bidder-name,
  .bidder-amount,
  .deal-header h3,
  .step-item .num,
  .step-item .txt,
  .step-item.active .txt,
  .quran-verse-text,
  .ticker-header-title,
  .ticker-badge-live,
  .nav-item a,
  .multi-auction-modal-heading,
  .overlay-chip,
  .spec-item-box .value,
  .live-price-amount,
  .bid-increment-btn,
  .btn-submit-bid,
  .stat-item-val,
  .filter-pill,
  .filter-pill.active,
  .lineage-title,
  .gallery-card-title,
  .admin-title,
  .admin-tab-btn,
  .section-label,
  .brand-text h1,
  .brand-title,
  .price-highlight,
  .value-highlight,
  .commission-pill-tag,
  .btn-direct-checkout span.direct-text,
  .single-line-title,
  th {
    font-weight: 500 !important;
  }

  /* الحفاظ على أوزان الأيقونات في Font Awesome لتعمل بشكل طبيعي دون انكسار */
  i[class*="fa-"],
  .fa-solid,
  .fas {
    font-weight: 900 !important;
  }
  .fa-regular,
  .far,
  .fa-brands,
  .fab {
    font-weight: 400 !important;
  }

  /* ضبط مقاسات العناوين والمسافات لتكون متناسقة وخفيفة ومريحة لشاشات الآيفون والهواتف */
  h1 {
    font-size: clamp(1.15rem, 4.2vw, 1.38rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 6px;
  }

  h2 {
    font-size: clamp(1.02rem, 3.6vw, 1.20rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 5px;
  }

  h3 {
    font-size: clamp(0.90rem, 3.0vw, 1.05rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 4px;
  }

  h4, h5, h6 {
    font-size: clamp(0.80rem, 2.6vw, 0.92rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 4px;
  }

  p {
    font-size: clamp(0.80rem, 2.6vw, 0.90rem);
    margin-bottom: 6px;
  }
}

/* ==========================================================================
   مواءمة واعتماد مقاسات شاشات الجوالات الرسمية (Flagship Screen Adaptation)
   1. هواتف آيفون (iPhone 17/16 Pro Max 6.9", 17/16 Pro 6.3", 16 Plus 6.7", 17/16 6.1", SE 4.7")
   2. هواتف هونر (Honor IFAF 6.78" 1280x2800, Magic Fold 7.9", Magic 6.8", 200 6.7", X9b 6.78")
   3. هواتف سامسونج (Galaxy S Ultra 6.9", S/Plus 6.2-6.7", Z Fold 8.0", Z Flip 6.7", Galaxy A 6.6")
   4. هواتف شاومي (Xiaomi Ultra 6.73", Redmi Note 6.67", POCO 6.67")
   5. شركات أندرويد أخرى (Pixel Pro 6.8", Pixel 6.3", Oppo 6.8", Vivo 6.78", OnePlus 6.78")
   ========================================================================== */

/* 1. الشاشات الصغيرة (Compact Screens: iPhone SE 4.7" - العرض 320px إلى 375px) */
@media (max-width: 380px) {
  .brand-logo-icon,
  .official-brand-logo {
    height: 38px !important;
  }
  .quranic-verse-banner {
    padding: 3px 14px !important;
  }
  .quran-verse-text {
    font-size: 0.72rem !important;
  }
  .camera-btn {
    padding: 3px 4px !important;
    font-size: 0.62rem !important;
  }
  .spec-chip {
    padding: 3px 2px !important;
  }
  .spec-chip .value {
    font-size: 0.65rem !important;
  }
  .auction-card-glass {
    padding: 0.8rem 0.9rem !important;
  }
  .multi-auctions-dock-container {
    padding: 0 4px !important;
  }
  .multi-auctions-dock-inner {
    padding: 0.7rem 0.65rem !important;
    border-radius: 14px !important;
  }
  .dock-heading {
    font-size: 0.75rem !important;
  }
  .dock-sub-badge {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
  }
  .dock-filter-btn {
    font-size: 0.70rem !important;
    padding: 4px 10px !important;
  }
  .auction-strip-card {
    flex: 0 0 175px !important;
    padding: 7px !important;
  }
}

/* 2. الشاشات القياسية والكبيرة (iPhone 6.1"-6.3", Galaxy S 6.2"-6.7", Pixel 6.1"-6.3" - العرض 381px إلى 412px) */
@media (min-width: 381px) and (max-width: 412px) {
  .camera-controls-bar {
    margin: 10px 12px 6px 12px !important;
  }
  .stage-quick-action-zone {
    margin: 12px auto 10px auto !important;
  }
}

/* 3. الشاشات العملاقة الرائدة (Ultra / Pro Max / Honor 6.78" / S24 Ultra 6.9" / Xiaomi 6.73" - العرض 413px إلى 500px) */
@media (min-width: 413px) and (max-width: 500px) {
  .main-stage {
    padding: 0 4px;
  }
  #viewer-container {
    height: auto !important;
    max-height: none !important;
  }
  .camera-controls-bar {
    max-width: 420px;
    margin: 12px auto 8px auto !important;
  }
  .spec-badge-floating {
    max-width: 420px;
    margin: 6px auto !important;
  }
  .auction-dock-wrapper {
    max-width: 430px;
    margin: 0 auto;
  }
}

/* 4. الشاشات القابلة للطي (Foldables: Galaxy Z Fold 7.6"-8.0", Honor Magic Fold 7.9" - العرض 600px إلى 840px) */
@media (min-width: 600px) and (max-width: 840px) {
  .main-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #viewer-container {
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
  }
  .camera-controls-bar {
    max-width: 540px !important;
    margin: 14px auto 10px auto !important;
  }
  .spec-badge-floating {
    max-width: 540px !important;
    margin: 8px auto !important;
  }
  .auction-dock-wrapper {
    max-width: 580px !important;
  }
}

/* ==========================================================================
   نظام التوثيق وتسجيل الدخول وإنشاء الحساب وكشف الروبوت ودخول الأدمن
   Dhalool Authentication, Member Signup, Google OAuth & Admin Portal Styles
   ========================================================================== */

.user-auth-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-header-auth {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(20, 18, 15, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header-auth:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: #fff;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.btn-header-admin-pill {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #c9b99a;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-header-admin-pill:hover {
  border-color: var(--gold-light);
  color: #ffd700;
  background: rgba(212, 175, 55, 0.15);
}

/* شريحة المستخدم المسجل حالياً في الهيدر */
.logged-in-user-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(20, 16, 12, 0.88) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  padding: 1px 6px 1px 3px !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  height: 24px !important;
  max-height: 24px !important;
  min-height: 24px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.user-chip-avatar {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  border-radius: 50% !important;
  background: rgba(212, 175, 55, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.65rem !important;
}

.user-chip-info {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

.user-chip-name,
.user-chip-role {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: var(--gold-light, #faeac3) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.user-chip-admin-btn {
  color: #ffd700;
  padding: 2px;
  font-size: 0.72rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.user-chip-admin-btn:hover {
  transform: scale(1.15);
}

.btn-logout-chip {
  background: transparent !important;
  border: none !important;
  color: #ef4444 !important;
  cursor: pointer !important;
  font-size: 0.65rem !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transition: transform 0.2s;
}

.btn-logout-chip:hover {
  transform: scale(1.15);
}

/* نافذة التوثيق المنبثقة (Modal) - مخفية افتراضياً - تظهر فقط عند النقر على "دخول/تسجيل" */
.dhalool-auth-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2147483647 !important;
  background: rgba(5, 3, 2, 0.92) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.dhalool-auth-backdrop.active {
  display: flex !important;
  animation: fadeInAuthModal 0.3s ease-out;
}

@keyframes fadeInAuthModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpAuthCard {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-card {
  position: relative;
  background: linear-gradient(175deg, #181410 0%, #100d0a 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  width: 100%;
  max-width: 530px;
  padding: 30px 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.12);
  box-sizing: border-box;
  text-align: right;
  color: #fff;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.auth-modal-card::-webkit-scrollbar {
  width: 5px;
}
.auth-modal-card::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

.auth-close-btn {
  position: absolute;
  top: 16px;
  left: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--sand-300);
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.auth-close-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* ==================== بوابة المشتركين والزوار ==================== */
.visitors-portal-section {
  position: relative;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-brand-logo {
  width: 145px;
  max-width: 75%;
  height: auto;
  max-height: 75px;
  border-radius: 12px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 14px;
  margin: 0 auto 12px auto;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 175, 55, 0.2);
  object-fit: contain;
  transition: transform 0.25s ease;
}

.auth-brand-logo:hover {
  transform: scale(1.02);
  border-color: var(--gold-primary);
}

.auth-portal-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 5px 0;
  letter-spacing: 0.2px;
}

.auth-portal-tagline {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-light);
  margin: 0;
  line-height: 1.5;
}

/* تبويبات المشتركين (أزرار تبديل ذهبية أنيقة) */
.auth-nav-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 22px;
}

.auth-nav-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #c5baa8;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.auth-nav-tab.active {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #0c0906;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* زر Google السريع والمريح (خاص بالموقع الرسمي فقط) */
.google-auth-wrapper {
  margin-bottom: 16px;
}

body.mobile-app-env .google-auth-wrapper,
body.mobile-app-env .portal-divider {
  display: none !important;
}

.btn-google-action {
  width: 100%;
  background: #ffffff;
  color: #202124;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-google-action:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.portal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
}

.portal-divider::before,
.portal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.portal-divider span {
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--sand-400);
}

/* لوحات النماذج */
.auth-tab-panel {
  display: none;
}

.auth-tab-panel.active {
  display: block;
}

/* الحقول (خطوط عادية مريحة وليست عريضة) */
.auth-field-group {
  margin-bottom: 16px;
}

.auth-field-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2d7c5;
  margin-bottom: 7px;
}

.auth-field-group label i {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.auth-field-group input {
  width: 100%;
  background: rgba(18, 14, 11, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.auth-field-group input:focus {
  border-color: var(--gold-light);
  background: rgba(24, 19, 14, 0.95);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.auth-field-group input::placeholder {
  color: rgba(197, 185, 168, 0.5);
  font-weight: 400;
}

.field-hint-text {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--sand-400);
  margin-top: 5px;
  line-height: 1.4;
}

/* كرت التحقق الأمني (reCAPTCHA) */
.recaptcha-widget-card {
  background: rgba(18, 15, 11, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.recaptcha-widget-card:hover {
  border-color: var(--gold-primary);
  background: rgba(26, 21, 16, 0.95);
}

.captcha-checkbox-custom {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid #5a544b;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.captcha-checkbox-custom.loading .spinner-ring {
  display: block;
}

.captcha-checkbox-custom .check-icon {
  display: none;
  color: #10b981;
  font-size: 1.05rem;
}

.captcha-checkbox-custom.checked {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.captcha-checkbox-custom.checked .check-icon {
  display: block;
}

.spinner-ring {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spinCap 0.7s linear infinite;
}

.captcha-text-cluster {
  flex: 1;
  margin-right: 12px;
  display: flex;
  flex-direction: column;
}

.captcha-status-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sand-200);
}

.captcha-privacy {
  font-size: 0.65rem;
  font-weight: 400;
  color: #8b8072;
}

.captcha-badge-icon {
  color: var(--gold-primary);
  font-size: 1.25rem;
  opacity: 0.8;
}

/* زر إرسال التوثيق للمشتركين والزوار */
.btn-auth-action {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-primary), #b8860b);
  border: none;
  color: #0c0a07;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-auth-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
  filter: brightness(1.06);
}



/* مستخدم مسجل الدخول في الهيدر */
.logged-in-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 14, 11, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1px 6px;
  border-radius: 20px;
}

.user-chip-avatar {
  font-size: 1.1rem;
  width: 22px;
  height: 22px;
}

.user-chip-info {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
}

.user-chip-name,
.user-chip-role {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sand-300, #f5e7b8);
  white-space: nowrap;
}

.user-chip-admin-btn {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-chip-admin-btn:hover {
  background: #facc15;
  color: #000;
}

.btn-logout-chip {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 1px 3px;
  font-size: 0.82rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.btn-logout-chip:hover {
  opacity: 1;
}

.btn-header-auth {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(20, 16, 12, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header-auth:hover {
  background: linear-gradient(135deg, var(--gold-primary), #b8860b);
  color: #000;
  border-color: var(--gold-light);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}


@media all and (display-mode: standalone) {
  .show-on-web-only { display: none !important; }
}

/* ==========================================================================
   تطبيق معايير UI/UX المعتمدة (Typography & Layout Sizes & Touch Targets)
   حسب المواصفات العالمية (Sp / Dp)
   ========================================================================== */

/* 1. العناوين الرئيسية الكبيرة (Titles / H1): 24sp إلى 32sp */
h1, .page-main-title {
  font-size: clamp(24px, 4.5vw, 32px) !important;
  line-height: 1.3 !important;
}

/* 2. عناوين الأقسام الفرعية (Subtitles / H2): 18sp إلى 22sp */
h2, h3, h4, h5, .section-title, .modal-title, .drawer-menu-card h5 {
  font-size: clamp(18px, 3vw, 22px) !important;
  line-height: 1.4 !important;
}

/* 3. النصوص الأساسية والعادية (Body Text): 14sp أو 16sp */
p, .body-text, .card-content p, .modal-body p {
  font-size: clamp(14px, 2.5vw, 16px) !important;
  line-height: 1.6 !important;
}

/* 4. نصوص الأزرار والعناصر الصغيرة (Buttons & Captions): 11sp إلى 13sp */
.btn-primary, .btn-secondary, button, .card-pill-tag, .status-badge, small, .caption {
  font-size: clamp(11px, 2vw, 13px) !important;
}

/* 5. مساحات اللمس للأزرار التفاعلية (Touch Targets): 48x48 dp 최소 */
button, .btn-primary, .btn-secondary, .nav-item, .close-modal-btn, .modal-close-btn, .act-btn, .soc-pill, select, input[type="text"], input[type="number"], input[type="password"] {
  min-height: 48px !important;
}

/* الأزرار الدائرية وأيقونات الإغلاق يجب أن يكون عرضها 48 بكسل أيضاً لتسهيل اللمس */
.close-modal-btn, .modal-close-btn, .soc-pill, .btn-drawer-trigger {
  min-width: 48px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* 6. نظام الشبكة والهوامش (Grid & Padding): مضاعفات الرقم 4 أو 8 (16dp / 24dp) */
.modal-body, .modal-box, .ai-modal-card {
  padding: clamp(16px, 4vw, 24px) !important;
  border-radius: 24px !important;
}

.drawer-menu-card {
  padding: 16px !important;
  margin-bottom: 16px !important;
  border-radius: 16px !important;
}

.btn-primary, .btn-secondary {
  padding-left: 24px !important;
  padding-right: 24px !important;
  border-radius: 8px !important; /* مضاعفات 8 */
}

/* توحيد المسافات بين العناصر في النماذج */
.form-group, .input-group, .admin-form-grid .form-group {
  margin-bottom: 16px !important;
}

/* هوامش الشاشات والتطبيقات الأساسية */
.main-layout, .container, .app-content, .screen-wrap {
  padding-left: clamp(16px, 3vw, 24px) !important;
  padding-right: clamp(16px, 3vw, 24px) !important;
}

/* ==========================================================================
   تصميم مجلس ملاك ونخبة الإبل الشامل (Elite Heritage Board)
   ========================================================================== */
.elite-search-wrapper {
  position: relative;
  margin: 16px 0;
}
.elite-search-wrapper i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  font-size: 1.1rem;
}
.elite-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 14px 44px 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.elite-search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
  outline: none;
}

.elite-profiles-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.elite-card {
  display: flex;
  background: linear-gradient(145deg, rgba(30, 26, 20, 0.9), rgba(15, 12, 8, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 16px;
  gap: 16px;
  transition: var(--transition-smooth);
  align-items: center;
}
.elite-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(40, 35, 28, 0.95), rgba(15, 12, 8, 0.95));
}

.elite-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), #6e5414);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.elite-info {
  flex: 1;
}
.elite-info h4 {
  margin: 0 0 6px 0;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.elite-badge {
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.elite-info p {
  margin: 0 0 8px 0;
  color: var(--sand-300);
  font-size: 0.85rem;
  line-height: 1.5;
}
.elite-stats {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: #93c5fd;
}
.elite-stats span {
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   تحديث: شبكة كروت النخبة (مربعين بجانب بعض - Grid Layout)
   ========================================================================== */
.elite-profiles-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

/* تحويل الكرت ليصبح عمودياً ليتناسب مع العرض الجديد */
.elite-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 14px 10px !important;
  gap: 10px !important;
}

/* تصغير وتوسيط الصورة الرمزية */
.elite-avatar {
  width: 55px !important;
  height: 55px !important;
  font-size: 1.4rem !important;
  margin: 0 auto !important;
}

/* تنسيق النصوص داخل الكرت */
.elite-info {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* جعل العنوان في سطر واحد وبحجم أصغر */
.elite-info h4 {
  font-size: 0.8rem !important; /* حجم أصغر */
  white-space: nowrap !important; /* سطر واحد */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  margin: 0 0 6px 0 !important;
  display: block !important;
  color: #fff !important;
}

/* شارة التميز (Badge) */
.elite-badge-wrap {
  margin-bottom: 8px !important;
}
.elite-badge {
  font-size: 0.6rem !important;
  padding: 4px 6px !important;
  display: inline-block !important;
}

/* تقليص الوصف لسطرين فقط لتوفير المساحة */
.elite-info p {
  font-size: 0.7rem !important;
  line-height: 1.4 !important;
  margin: 0 0 10px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: var(--sand-300) !important;
}

/* ترتيب الإحصائيات (الفئة والإنتاج) */
.elite-stats {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  align-items: center !important;
}
.elite-stats span {
  font-size: 0.65rem !important;
  width: 100% !important;
  padding: 4px !important;
  text-align: center !important;
  border-radius: 4px !important;
}

/* ==========================================================================
   إصلاح تجاوز كروت النخبة لحدود الشاشة (Overflow Fix)
   ========================================================================== */
.elite-profiles-grid {
  /* minmax(0, 1fr) يجبر الأعمدة على عدم تجاوز نصف الشاشة حتى لو كان النص طويلاً */
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

.elite-card {
  min-width: 0 !important; /* هام جداً لمنع الكرت من التمدد خارج الشاشة */
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 6px !important; /* تقليل الحواف الداخلية ليناسب جوالات الشاشات الصغيرة */
  gap: 6px !important;
  }

.elite-avatar {
  width: 48px !important;
  height: 48px !important;
  font-size: 1.1rem !important;
  margin: 0 auto 4px auto !important;
}

.elite-info {
  width: 100% !important;
  min-width: 0 !important; /* السماح بتصغير المحتوى */
}

.elite-info h4 {
  font-size: 0.72rem !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 4px !important;
}

.elite-badge {
  font-size: 0.55rem !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 3px 6px !important;
}

.elite-info p {
  font-size: 0.65rem !important;
  margin-bottom: 8px !important;
}

.elite-stats {
  gap: 4px !important;
}

.elite-stats span {
  font-size: 0.55rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 4px !important;
}

/* ==========================================================================
   تحديث: تصغير عناوين القائمة الجانبية لتظهر بالكامل دون اقتطاع
   ========================================================================== */
.card-title-row h5 {
  font-size: 0.8rem !important; /* تصغير حجم الخط */
  white-space: normal !important; /* السماح بنزول سطر جديد إذا لزم الأمر */
  overflow: visible !important; /* إلغاء القص */
  line-height: 1.3 !important; /* تباعد الأسطر */
  flex: 1; /* السماح بأخذ المساحة المتبقية */
}

/* تصغير مساحة الوسمة (Badge) قليلاً لإعطاء مساحة أكبر للنص */
.card-pill-tag {
  font-size: 0.55rem !important;
  padding: 3px 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0; /* منع الوسمة من الانكماش والتخريب */
}

/* ==========================================================================
   أزرار التفعيل والإيقاف (Toggle Switches) للوحة التحكم
   ========================================================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #888;
  transition: .4s;
}

input:checked + .slider {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(-22px); /* For RTL: negative moves left to right if left aligned? Let's check. */
  background-color: #10b981;
}
/* If RTL, left: 2px means it starts on the left. Translating X by 22px moves it to the right. 
   Wait, if it's RTL, it might be better to use right/left explicitly or transform. */

html[dir="rtl"] .slider:before {
  right: 2px;
  left: auto;
}
html[dir="rtl"] input:checked + .slider:before {
  transform: translateX(-22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Tweak ticker mini card fonts to reduce thickness and size slightly */
.ticker-mini-card .mini-card-head {
  font-size: 0.50rem !important; /* تم تصغيره درجتين من 10px (0.62rem) إلى 8px (0.50rem) */
  font-weight: 700 !important;
}
.ticker-mini-card .mini-card-price {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
}
.ticker-mini-card .mini-card-sub {
  font-size: 0.55rem !important;
  font-weight: 500 !important;
}

/* Tweak auction dock fonts (Price and buttons) based on user feedback */
.dock-price-val .amount {
  font-size: 0.92rem !important;
  font-weight: 600 !important; /* Normal/semi-bold instead of 900 */
}
.dock-price-val .currency, .dock-price-label {
  font-weight: 500 !important;
}

.btn-bid-dock, .btn-switch-auction, .btn-checkout-dock {
  font-size: 0.58rem !important;
  font-weight: 600 !important;
}

.btn-bid-dock i, .btn-switch-auction i, .btn-checkout-dock i {
  font-size: 0.75rem !important;
}

/* Also ensure span inside buttons inherits the smaller weight */
.btn-bid-dock span, .btn-switch-auction span, .btn-checkout-dock span {
  font-weight: 600 !important;
}

/* Make text white inside snap modal buttons as requested */
#btn-snap-record-toggle, 
#btn-snap-record-toggle span, 
#btn-snap-record-toggle i,
#btn-submit-new-snap, 
#btn-submit-new-snap span, 
#btn-submit-new-snap i {
    color: #ffffff !important;
}


/* تنسيقات أخبار المنصة الجديدة المطورة (مثل الموسوعة) */
.news-feed-card {
  background: linear-gradient(180deg, rgba(25, 30, 44, 0.85) 0%, rgba(12, 15, 22, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55), inset 0 1px 1px rgba(255,255,255,0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.news-feed-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7), 0 0 20px rgba(212, 175, 55, 0.25);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.news-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.news-time {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 600;
}

.news-media {
  position: relative;
  width: 100%;
  height: 190px;
  background: #000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.news-media .play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.65);
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding-left: 4px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.news-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.news-content h4 {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 12px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.news-content h4 {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-content p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  font-weight: 500;
}

.news-actions {
  display: flex;
  gap: 10px;
  padding: 0 15px 15px 15px;
}

.btn-news-action {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-news-action.gold-action {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-primary);
}

.btn-news-action:hover {
  background: rgba(255,255,255,0.15);
}

.btn-news-action.icon-only {
  flex: 0 0 auto;
  width: 44px;
  padding: 0;
}

/* ====== تعديل مخصص لتفادي كاميرا الأجهزة الذكية (النوتش) لجميع صفحات التطبيق ====== */
@media (max-width: 768px) {
  /* خفض عناصر القائمة الجانبية (الشريط العلوي) نصف سانتي */
  .drawer-header-bar {
    padding-top: 38px !important;
  }
  
  /* خفض جميع النوافذ المنبثقة (الخدمات، الأخبار، المزايدة، إلخ) نصف سانتي */
  .service-modal-card,
  .ai-modal-card,
  .deal-modal-card,
  .bid-modal-content,
  .admin-modal-card,
  .dossier-modal-card,
  .checkout-modal-card,
  .multi-auction-modal-card,
  .plain-text-modal-card,
  .snap-modal-content,
  .chat-rooms-modal-card,
  .drawer-profile-card {
    margin-top: 35px !important;
  }
  
  /* ضبط أزرار الإغلاق في النوافذ إذا كانت تعتمد على الشاشة بالكامل */
  .snap-modal-content .modal-close-btn {
    top: 35px !important;
  }
}

/* Force social icons to be on a single line in mobile drawer */
@media (max-width: 768px) {
  .drawer-social-pills {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    justify-content: center !important;
  }
  
  .drawer-social-pills .soc-pill {
    min-width: 32px !important;
    min-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    flex-shrink: 1 !important;
  }
}

.ai-modal-subtitle {
  font-size: 0.65rem;
  color: var(--sand-300);
  margin: 0 auto;
  line-height: 1.45;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}
@media (max-width: 768px) {
  .ai-modal-subtitle {
    font-size: 0.4rem !important;
  }
}

.mobile-subtitle { display: none; }
.desktop-subtitle { display: inline; }

@media (max-width: 768px) {
  .mobile-subtitle { display: inline; }
  .desktop-subtitle { display: none; }
}



/* Responsive Avatar Card for Mobile - Split Text and Buttons */
@media (max-width: 768px) {
  .ai-avatar-card {
    flex-direction: column !important;
  }
  .ai-avatar-card .avatar-text-panel {
    display: contents !important;
  }
  .ai-avatar-card .avatar-header {
    order: 1;
    text-align: center;
  }
  .ai-avatar-card > div:first-child { /* The video container */
    order: 2;
    width: 100% !important;
    height: 180px !important;
    margin: 8px 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
  .ai-avatar-card .avatar-footer {
    order: 3;
    text-align: center;
  }
}




/* ==========================================================================
   بطاقة العرض الدوارة السفلية (Bottom Rotating Ad Card)
   ========================================================================== */
.bottom-rotating-ad-container {
  width: 100%;
  max-width: 660px;
  margin: 21px auto 12px auto;
  padding: 0 6px;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

.bottom-ad-card {
  position: relative;
  width: 100%;
  background: rgba(26, 20, 14, 0.92);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 8px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.bottom-ad-card.show {
  opacity: 1;
  transform: translateY(0);
}

.ad-card-badge-top {
  position: absolute;
  top: -10px;
  right: 14px; /* Right for Arabic RTL */
  background: linear-gradient(135deg, #d4af37 0%, #aa841d 100%);
  color: #1a140d;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  z-index: 2;
}

.ad-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-direction: row-reverse;
}

.ad-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

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

.ad-card-number {
  font-size: 0.70rem;
  font-weight: 800;
  color: #d4af37;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.ad-card-type-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #f7e2a4;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  padding: 1px 6px;
  background: rgba(212, 175, 55, 0.1);
}

.ad-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1px 0 3px 0;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.ad-card-timer {
  font-size: 0.70rem;
  font-weight: 700;
  color: #fcebc4;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ad-card-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd700;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.ad-card-price .currency {
  font-size: 0.62rem;
  font-weight: 600;
  color: #a89a85;
}

.ad-card-image-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.ad-card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Day theme support */
body.light-theme .bottom-ad-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(184, 142, 40, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
body.light-theme .ad-card-title {
  color: #1a140d;
}
body.light-theme .ad-card-footer-row {
  background: rgba(184, 142, 40, 0.08);
}
body.light-theme .ad-card-timer {
  color: #6e4e0b;
}

@media (max-width: 400px) {
  .ad-card-title {
    font-size: 0.82rem;
  }
  .ad-card-image-box {
    width: 65px;
    height: 65px;
  }
  .ad-card-price {
    font-size: 0.85rem;
  }
}


/* Desktop styling for the bottom rotating ad card */
@media (min-width: 960px) {
  .bottom-rotating-ad-container {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    margin: 0 !important;
    max-width: 320px !important;
    z-index: 40 !important;
  }
}

/* أزرار التمرير السريع للأعلى والأسفل */
.floating-scroll-btns {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.scroll-btn {
  width: 45px;
  height: 45px;
  background: rgba(212, 175, 55, 0.85); /* لون ذهبي أنيق */
  color: #050403;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.scroll-btn:hover {
  background: #d4af37;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
@media (max-width: 768px) {
  .floating-scroll-btns {
    bottom: 80px; /* الرفع قليلاً في الجوال لعدم تغطية القوائم السفلية إن وجدت */
    left: 15px;
  }
  .scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* =========================================================
   عداد زيارات وتفاعلات المنصة المباشر بجانب سوق ذلول 3D
   ========================================================= */
.ticker-platform-stats {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 9px !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  max-width: none !important;
  width: auto !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.ticker-platform-stats:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.stats-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.56rem;
  color: #4ade80;
  font-weight: 700;
  white-space: nowrap;
}

.stats-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: livePulseGreen 1.8s infinite;
}

@keyframes livePulseGreen {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.stats-divider {
  width: 1px;
  height: 10px;
  background: rgba(212, 175, 55, 0.35);
  margin: 0 1px;
}

.stats-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.56rem;
  color: #f1ede4;
  white-space: nowrap;
}

.stats-metric-item strong {
  color: var(--gold-light, #f5e7b8);
  font-weight: 800;
  font-family: monospace, sans-serif;
  letter-spacing: 0.2px;
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
}

.stats-metric-item strong.click-bump {
  color: #60a5fa !important;
  transform: scale(1.35);
  text-shadow: 0 0 10px #60a5fa;
}

/* النافذة التفصيلية المنبثقة لإحصائيات المنصة */
.platform-stats-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.platform-stats-modal-overlay.show {
  display: flex;
  animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.platform-stats-modal-box {
  background: linear-gradient(155deg, #181512 0%, #0d0b09 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.15);
  color: #f1ede4;
  position: relative;
  font-family: 'Tajawal', sans-serif;
}

.platform-stats-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.platform-stats-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-light, #f5e7b8);
}

.platform-stats-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #bbb;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.platform-stats-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
}

.platform-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

.stats-card-metric {
  background: rgba(25, 22, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.stats-card-metric:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(35, 30, 24, 0.95);
}

.stats-card-label {
  font-size: 0.68rem;
  color: #a89f91;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-card-value {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  font-family: monospace, sans-serif;
}

.stats-card-value.gold {
  color: var(--gold-light, #f5e7b8);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.stats-card-value.green {
  color: #4ade80;
}

.stats-card-value.blue {
  color: #60a5fa;
}

.stats-breakdown-box {
  background: rgba(18, 16, 13, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.stats-breakdown-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.stats-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.stats-progress-fill-subs {
  background: linear-gradient(90deg, #d4af37, #f5e7b8);
  height: 100%;
  width: 50%;
  transition: width 0.5s ease;
}

.stats-progress-fill-guests {
  background: rgba(255, 255, 255, 0.2);
  height: 100%;
  flex: 1;
}

.stats-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #887f73;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .ticker-header-bar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-bottom: 2px !important;
    margin-bottom: 4px !important;
  }
  .ticker-live-status {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    gap: 4px !important;
  }
  .ticker-dots-nav {
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
  }
  .ticker-live-dot {
    width: 5px !important;
    height: 5px !important;
  }
  /* تصغير ارتفاع وعنوان عروض بيع المشتركين في الجوال 1.5 ملي */
  .ticker-header-title {
    font-size: 8.8px !important;
    font-weight: 800 !important;
    text-align: center !important;
    line-height: 1.1 !important;
  }
  /* تقليل طول/ارتفاع كبسولة العداد في الجوال 1.5 ملي */
  .ticker-platform-stats {
    max-width: none !important;
    width: auto !important;
    padding: 1.5px 6.5px !important;
    height: 17px !important;
    box-sizing: border-box !important;
    gap: 3.5px !important;
    border-radius: 9px !important;
    flex-shrink: 0 !important;
    justify-content: center !important;
  }
  .stats-metric-item {
    font-size: 0.49rem !important;
    gap: 2.5px !important;
    line-height: 1 !important;
  }
  .stats-metric-item i {
    font-size: 0.50rem !important;
  }
  .stats-metric-item strong {
    font-size: 0.52rem !important;
  }
  .stats-live-badge {
    font-size: 0.49rem !important;
    gap: 2.5px !important;
    line-height: 1 !important;
  }
  .stats-live-text strong {
    font-size: 0.52rem !important;
  }
  .stats-live-dot {
    width: 5px !important;
    height: 5px !important;
  }
  .stats-divider {
    height: 7.5px !important;
    margin: 0 1px !important;
  }
}

/* =========================================================
   تنسيقات شاشات الكمبيوتر/الويب لشريط عروض بيع المشتركين والعدادات
   (Desktop / Web - تخفيض الطول/الارتفاع 1.5 ملي)
   ========================================================= */
@media (min-width: 769px) {
  .ticker-header-bar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-bottom: 4px !important;
    margin-bottom: 5px !important;
  }

  .ticker-live-status {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    gap: 8px !important;
  }

  .ticker-dots-nav {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
  }

  .ticker-live-dot {
    width: 6.5px !important;
    height: 6.5px !important;
  }

  /* تصغير عنوان عروض بيع المشتركين في الطول/الارتفاع على الكمبيوتر 1.5 ملي */
  .ticker-header-title {
    font-size: 0.86rem !important; /* ~13.8px بدلاً من 15.4px */
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
    line-height: 1.1 !important;
  }

  /* تصغير كبسولة العداد في الطول/الارتفاع على الكمبيوتر 1.5 ملي */
  .ticker-platform-stats {
    padding: 1.5px 10px !important;
    height: 22px !important;
    box-sizing: border-box !important;
    gap: 7px !important;
    border-radius: 11px !important;
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.38) !important;
    justify-content: center !important;
  }

  .ticker-platform-stats:hover {
    background: rgba(212, 175, 55, 0.22) !important;
    border-color: rgba(212, 175, 55, 0.65) !important;
    transform: translateY(-1px) scale(1.02) !important;
  }

  .stats-live-badge {
    font-size: 0.68rem !important; /* ~10.8px */
    gap: 4px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .stats-live-dot {
    width: 6px !important;
    height: 6px !important;
  }

  .stats-live-text strong {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
  }

  .stats-divider {
    height: 10px !important; /* تقليل ارتفاع الفاصل */
    margin: 0 2px !important;
    background: rgba(212, 175, 55, 0.4) !important;
  }

  .stats-metric-item {
    font-size: 0.68rem !important; /* ~10.8px */
    gap: 3.5px !important;
    line-height: 1 !important;
  }

  .stats-metric-item i {
    font-size: 0.66rem !important;
  }

  .stats-metric-item strong {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
  }
}

/* ==========================================================================
   شبكة أخبار وأعمال المنصة (2x2 Grid - 4 مواضيع في شاشة واحدة)
   ========================================================================== */
#news-coverage-modal .service-modal-card {
  max-width: 680px !important;
  max-height: 94vh !important;
  padding: 12px 10px !important;
  display: flex !important;
  flex-direction: column !important;
}

#news-coverage-modal .service-modal-header {
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
  padding-left: 36px !important;
}

#news-coverage-modal .service-title-group h3 {
  font-size: 0.90rem !important;
  margin-bottom: 2px !important;
}

#news-coverage-modal .service-title-group .sub-text {
  font-size: 0.65rem !important;
  color: #94a3b8 !important;
}

#news-coverage-modal .service-grid-cards {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  padding: 2px !important;
  flex: 1 !important;
}

/* بطاقة الخبر المدمجة لتسع 4 أخبار في شاشة واحدة */
#news-coverage-modal .news-feed-card {
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.95) 0%, rgba(10, 13, 20, 0.98) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  margin: 0 !important;
  min-height: 0 !important;
}

#news-coverage-modal .news-feed-card:hover,
#news-coverage-modal .news-feed-card:active {
  transform: translateY(-2px) !important;
  border-color: rgba(212, 175, 55, 0.75) !important;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.2) !important;
}

/* حاوية الوسائط (صورة مصغرة مدمجة 85px) */
#news-coverage-modal .news-media-thumb {
  position: relative !important;
  width: 100% !important;
  height: 85px !important;
  min-height: 85px !important;
  max-height: 85px !important;
  background: #000 !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

#news-coverage-modal .news-media-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

#news-coverage-modal .news-feed-card:hover .news-media-thumb img {
  transform: scale(1.05) !important;
}

/* بادج الفيديو / الصورة المدمج فوق الصورة */
#news-coverage-modal .news-type-badge {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  color: #fbbf24 !important;
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  padding: 2px 5px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}

/* زر التشغيل الدائري الفاخر لوسائط الفيديو */
#news-coverage-modal .news-play-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(212, 175, 55, 0.92) !important;
  color: #0b0f17 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.68rem !important;
  padding-left: 2px !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* محتوى بطاقة الخبر المدمجة */
#news-coverage-modal .news-card-body {
  padding: 5px 6px 6px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 !important;
  gap: 3px !important;
}

#news-coverage-modal .news-card-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.54rem !important;
  color: #94a3b8 !important;
}

#news-coverage-modal .news-card-title {
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 1.7rem !important;
}

#news-coverage-modal .news-card-desc {
  font-size: 0.54rem !important;
  color: #cbd5e1 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#news-coverage-modal .news-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding-top: 3px !important;
  margin-top: 2px !important;
}

#news-coverage-modal .news-card-footer-cta {
  color: var(--gold-light, #d4af37) !important;
  font-size: 0.56rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}

#news-coverage-modal .calc-summary-panel {
  margin-top: 6px !important;
  padding: 6px 10px !important;
}
#news-coverage-modal .calc-summary-panel h4 {
  font-size: 0.70rem !important;
  margin-bottom: 3px !important;
}
#news-coverage-modal .calc-summary-panel .btn-primary {
  padding: 5px 8px !important;
  font-size: 0.68rem !important;
}

/* ==========================================================================
   قارئ المقالات الإخباري الفاخر (News Article Reader)
   ========================================================================== */
.news-reader-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  background: rgba(4, 5, 4, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease !important;
  direction: rtl;
}

.news-reader-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.nd-reader-card {
  width: 100% !important;
  max-width: 680px !important;
  max-height: 92vh !important;
  height: auto !important;
  background: linear-gradient(160deg, #131713 0%, #0a0c0a 100%) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  text-align: right !important;
}

.nd-reader-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 18px !important;
  background: rgba(18, 22, 18, 0.95) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
  flex-shrink: 0 !important;
}

.nd-reader-back-btn {
  background: rgba(212, 175, 55, 0.12) !important;
  color: #ffd700 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.nd-reader-back-btn:hover {
  background: rgba(212, 175, 55, 0.25) !important;
  color: #fff !important;
}

.nd-reader-meta-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.nd-badge-source {
  background: rgba(212, 175, 55, 0.15) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  color: #ffd700 !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

.nd-badge-date {
  color: #94a3b8 !important;
  font-size: 0.75rem !important;
}

.nd-reader-close-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.nd-reader-close-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  border-color: #ef4444 !important;
}

.nd-reader-scrollable {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 20px 22px 35px 22px !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: #d4af37 #1a1e1a !important;
}

.nd-reader-scrollable::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}

.nd-reader-scrollable::-webkit-scrollbar-thumb {
  background: #d4af37 !important;
  border-radius: 4px !important;
}

.nd-media-wrap {
  width: 100% !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  border: 1.5px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

.nd-video-responsive {
  position: relative !important;
  padding-bottom: 56.25% !important;
  height: 0 !important;
  background: #000 !important;
}

.nd-video-responsive iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.nd-video-player {
  width: 100% !important;
  max-height: 320px !important;
  display: block !important;
  background: #000 !important;
}

.nd-article-img {
  width: 100% !important;
  max-height: 300px !important;
  object-fit: cover !important;
  display: block !important;
}

.nd-reader-title {
  color: #ffd700 !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
  margin: 0 0 12px 0 !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
}

.nd-reader-info-bar {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  color: #94a3b8 !important;
  font-size: 0.8rem !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.nd-reader-lead {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(212, 175, 55, 0.12) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #fef08a !important;
  margin-bottom: 16px !important;
}

.nd-reader-subheading {
  color: #ffd700 !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  margin: 24px 0 10px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-right: 4px !important;
  border-right: 3px solid #d4af37 !important;
}

.nd-reader-paragraph {
  color: #f1f5f9 !important;
  font-size: 1.02rem !important;
  line-height: 2.1 !important;
  margin: 0 0 18px 0 !important;
  text-align: right !important;
  word-break: break-word !important;
  font-weight: 400 !important;
}

.nd-reader-point {
  background: rgba(212, 175, 55, 0.08) !important;
  border-right: 3.5px solid #d4af37 !important;
  border-top: 1px solid rgba(212, 175, 55, 0.15) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
  border-left: 1px solid rgba(212, 175, 55, 0.15) !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  margin-bottom: 12px !important;
  color: #f1f5f9 !important;
  font-size: 0.96rem !important;
  line-height: 1.9 !important;
}

.nd-point-title {
  color: #ffd700 !important;
  font-weight: 800 !important;
  display: inline-block !important;
  margin-left: 6px !important;
}

.nd-reader-footer {
  margin-top: 30px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.nd-footer-branding {
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.nd-share-action-btn {
  padding: 9px 20px !important;
  font-size: 0.88rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

@media (max-width: 768px) {
  .news-reader-backdrop {
    padding: 8px !important;
  }
  .nd-reader-card {
    max-height: 96vh !important;
    border-radius: 16px !important;
  }
  .nd-reader-scrollable {
    padding: 14px 14px 25px 14px !important;
  }
  .nd-reader-title {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
  }
  .nd-reader-paragraph {
    font-size: 0.94rem !important;
    line-height: 1.95 !important;
  }
  .nd-reader-subheading {
    font-size: 1rem !important;
  }
}

/* ==========================================================================
   معرض إعلانات الإبل والصقور السينمائي (Hero Ads Showcase - 5s Auto Rotate)
   شاشة عرض سينمائية مضاعفة الحجم (Double Size Luxury Cinema Screen)
   ========================================================================== */

#viewer-container.hero-ads-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  box-sizing: border-box;
  padding-top: 270px;
}

.hero-showcase-stage {
  position: relative;
  width: 96%;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 0 10px;
  z-index: 15;
}

/* برواز ملكي تراثي فاخر لصورة الإبل في الشاشة الرئيسية */
.hero-frameless-camel-area {
  position: relative !important;
  width: 100% !important;
  max-width: 600px !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  max-height: 420px !important;
  margin: 0 auto !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: radial-gradient(circle at 50% 45%, #241a12 0%, #0d0a07 100%) !important;
  border: 2px solid rgba(212, 175, 55, 0.85) !important;
  box-shadow: 
    0 0 0 3px rgba(18, 14, 10, 0.95),
    0 0 0 5px rgba(212, 175, 55, 0.45),
    inset 0 0 0 1px rgba(250, 234, 195, 0.35),
    inset 0 0 20px rgba(0, 0, 0, 0.7),
    0 14px 35px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(212, 175, 55, 0.22) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hero-frameless-camel-area:hover {
  box-shadow: 
    0 0 0 3px rgba(18, 14, 10, 0.95),
    0 0 0 5px rgba(212, 175, 55, 0.7),
    inset 0 0 0 1px rgba(250, 234, 195, 0.5),
    inset 0 0 20px rgba(0, 0, 0, 0.7),
    0 16px 40px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(212, 175, 55, 0.35) !important;
}

/* صورة الجمل بنظام الطبقتين لمنع أي وميض مع ملء البرواز الملكي بشكل متناسق وفخم */
.hero-frameless-camel-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 60% !important;
  border-radius: 13px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  transition: opacity 0.35s ease-in-out, transform 0.4s ease !important;
  will-change: opacity, transform !important;
}

.hero-frameless-camel-img.hero-img-back {
  z-index: 1 !important;
  pointer-events: none !important;
}

.hero-frameless-camel-img.hero-img-front {
  z-index: 2 !important;
}

/* زوايا البرواز الذهبية التراثية (Heritage Gold Corner Brackets) */
.hero-frame-corner {
  position: absolute !important;
  width: 18px !important;
  height: 18px !important;
  border-color: rgba(255, 215, 0, 0.92) !important;
  border-style: solid !important;
  pointer-events: none !important;
  z-index: 5 !important;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.75)) !important;
  box-sizing: border-box !important;
}
.hero-frame-corner.top-right {
  top: 8px !important;
  right: 8px !important;
  border-width: 2.5px 2.5px 0 0 !important;
  border-top-right-radius: 6px !important;
}
.hero-frame-corner.top-left {
  top: 8px !important;
  left: 8px !important;
  border-width: 2.5px 0 0 2.5px !important;
  border-top-left-radius: 6px !important;
}
.hero-frame-corner.bottom-right {
  bottom: 8px !important;
  right: 8px !important;
  border-width: 0 2.5px 2.5px 0 !important;
  border-bottom-right-radius: 6px !important;
}
.hero-frame-corner.bottom-left {
  bottom: 8px !important;
  left: 8px !important;
  border-width: 0 0 2.5px 2.5px !important;
  border-bottom-left-radius: 6px !important;
}

/* شريط بيانات الإعلان الأنيق والمبسط العائم أسفل الجمل (تصغير متناسق لمنع التلاصق مع الإعلان السفلي) */
.hero-ad-floating-dock {
  width: 100%;
  max-width: 660px;
  margin-top: 8px;
  background: rgba(26, 20, 14, 0.92);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 8px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 20;
}

.hero-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-dock-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-ad-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-ad-type-pill.camel {
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(225, 185, 65, 0.7);
  color: #ffe066;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.hero-ad-num-badge {
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ffd700;
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-ad-status-dot {
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 16px;
  background: rgba(35, 26, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-timer-pill i {
  color: #ffd700;
  animation: heroClockSpin 10s linear infinite;
}

@keyframes heroClockSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-ad-title {
  margin: 1px 0 3px 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-dock-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 4px;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
  gap: 10px;
}

.hero-ad-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  gap: 8px;
}

.hero-price-label {
  color: #d6d3d1;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-price-val {
  color: #ffd700;
  font-size: 1.05rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.hero-price-val .currency-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}

.hero-showcase-nav {
  display: none !important;
}

.hero-nav-btn {
  display: none !important;
}

.hero-ad-progress-track {
  display: none !important;
}

.hero-ad-progress-fill {
  display: none !important;
}

/* تجاوب الشاشات الصغيرة والجوال */
@media (max-width: 992px) {
  .hero-showcase-stage {
    max-width: 96vw;
  }
  .hero-frameless-camel-area {
    max-width: 100%;
    height: clamp(280px, 42vh, 420px);
  }
  .hero-ad-floating-dock {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  #viewer-container.hero-ads-viewer {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    padding-top: 0 !important;
    margin: 2px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* أزرار التكبير فوق الجمل مباشرة بدون أي تداخل */
  .stage-zoom-controls {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 8px auto 25px auto !important;
    z-index: 25 !important;
  }

  .hero-showcase-stage {
    width: 100%;
    max-width: 100%;
    padding: 0 6px;
    margin-top: 0;
  }

  .hero-frameless-camel-area {
    width: 100% !important;
    max-width: 95vw !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    max-height: 275px !important;
    min-height: unset !important;
    border-radius: 14px !important;
    border: 2px solid rgba(212, 175, 55, 0.8) !important;
    box-shadow: 
      0 0 0 2.5px rgba(18, 14, 10, 0.95),
      0 0 0 4px rgba(212, 175, 55, 0.4),
      inset 0 0 0 1px rgba(250, 234, 195, 0.3),
      inset 0 0 16px rgba(0, 0, 0, 0.65),
      0 10px 25px rgba(0, 0, 0, 0.7),
      0 0 18px rgba(212, 175, 55, 0.18) !important;
  }

  .hero-frameless-camel-img {
    border-radius: 11px !important;
  }

  .hero-frame-corner {
    width: 14px !important;
    height: 14px !important;
  }
  .hero-frame-corner.top-right { top: 6px !important; right: 6px !important; border-width: 2px 2px 0 0 !important; }
  .hero-frame-corner.top-left { top: 6px !important; left: 6px !important; border-width: 2px 0 0 2px !important; }
  .hero-frame-corner.bottom-right { bottom: 6px !important; right: 6px !important; border-width: 0 2px 2px 0 !important; }
  .hero-frame-corner.bottom-left { bottom: 6px !important; left: 6px !important; border-width: 0 0 2px 2px !important; }

  .hero-ad-floating-dock {
    width: 100%;
    margin-top: 23px;
    padding: 6px 12px;
    border-radius: 12px;
    gap: 4px;
    margin-bottom: 0;
  }

  .hero-ad-title {
    font-size: 0.85rem;
    text-align: center;
    margin: 1px 0 3px 0;
  }

  .hero-price-val {
    font-size: 0.96rem;
  }

  .hero-price-label {
    font-size: 0.72rem;
  }

  .hero-ad-type-pill {
    padding: 2px 8px;
    font-size: 0.76rem;
  }

  .hero-ad-num-badge {
    padding: 2px 6px;
    font-size: 0.74rem;
  }

  .hero-timer-pill {
    padding: 2px 8px;
    font-size: 0.74rem;
  }

  .hero-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  /* فصل بطاقة الإعلان السفلي ومطابقتها تماماً مع حجم المستطيل العلوي مع تباعد 3 ملم */
  .bottom-rotating-ad-container {
    position: relative !important;
    width: 100% !important;
    max-width: 660px !important;
    margin: 21px auto 12px auto !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
  }

  .bottom-ad-card {
    padding: 6px 12px !important;
    border-radius: 12px !important;
  }

  /* ضمان عدم تداخل زر سهيل مع السعر أو تفاصيل الإعلان */
  .suhail-widget-wrapper {
    position: fixed !important;
    bottom: 1.2rem !important;
    right: 1.2rem !important;
    left: auto !important;
    top: auto !important;
    z-index: 99 !important;
  }
}

@media (max-width: 480px) {
  .hero-frameless-camel-area {
    width: 100% !important;
    max-width: 95vw !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    max-height: 270px !important;
  }

  .hero-ad-floating-dock {
    padding: 5px 8px;
  }

  .hero-ad-title {
    font-size: 0.80rem;
    text-align: center;
  }

  .hero-price-val {
    font-size: 0.90rem;
  }

  .hero-nav-btn {
    width: 26px;
    height: 26px;
    font-size: 0.74rem;
  }
}
