/* ============================================================
   لوحة تحكم Fancom FCJC - الأنماط الرئيسية
   ============================================================ */

:root {
  --active-color: #4ade80;
  --active-glow: rgba(74, 222, 128, 0.6);
  --active-bg: rgba(74, 222, 128, 0.15);
  /* الارتفاع الكلي للوحة - تستخدمه لوحة الشرح اليسرى لتطابق ارتفاع اللوحة */
  --panel-height: 615px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  font-family: 'Cairo', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px;
  color: #fff;
}

.page-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

/* ============ الترويسة ============ */
.page-title {
  text-align: center;
  margin-bottom: 22px;
}

.page-title h1 {
  font-size: 28px;
  color: var(--active-color);
  text-shadow: 0 0 20px var(--active-glow);
  margin-bottom: 6px;
  transition: color 0.3s, text-shadow 0.3s;
}

.page-title p {
  color: #94a3b8;
  font-size: 14px;
}

/* ============ شريط الأنظمة السبعة (أعلى الصفحة) ============ */
.systems-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  color: #cbd5e1;
  font-family: 'Cairo', sans-serif;
  user-select: none;
}

.system-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.system-btn .icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}

.system-btn .name {
  font-size: 13px;
  font-weight: 600;
}

.system-btn.active {
  background: var(--active-bg);
  border-color: var(--active-color);
  color: #fff;
  box-shadow: 0 0 18px var(--active-glow), inset 0 0 8px rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

/* ============ شريط الشروحات (كيفية ضبط النظام) ============ */
.tutorials-section {
  margin-bottom: 28px;
}

.tutorials-label {
  text-align: center;
  font-size: 14px;
  color: #fbbf24;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tutorials-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background: rgba(251, 191, 36, 0.05);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.tutorial-btn {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  padding: 11px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  color: #cbd5e1;
  font-family: 'Cairo', sans-serif;
  user-select: none;
}

.tutorial-btn:hover {
  background: rgba(251, 191, 36, 0.15);
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.45);
}

.tutorial-btn .icon { font-size: 22px; display: block; margin-bottom: 3px; line-height: 1; }
.tutorial-btn .name { font-size: 13px; font-weight: 600; }

.tutorial-btn.active {
  background: rgba(251, 191, 36, 0.22);
  border-color: #fbbf24;
  color: #fff;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.4);
}

/* المؤشرات المعطّلة أثناء الشرح (ليست جزءاً من الموضوع الحالي) */
.menu-item.tutorial-disabled {
  opacity: 0.22;
  cursor: not-allowed;
  filter: grayscale(80%);
}
.menu-item.tutorial-disabled .led {
  filter: brightness(0.5);
  animation: none !important;
}
.menu-item.tutorial-disabled:hover .led { transform: none; box-shadow: none; }
.menu-item.tutorial-disabled:hover .label { transform: none; background: linear-gradient(180deg, #fafafa, #e0e0e0); }

/* قائمة خطوات الشرح داخل اللوحة الجانبية */
.stage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.stage-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: right;
  color: #cbd5e1;
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stage-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(-3px);
  border-color: var(--active-color);
}
.stage-btn.active {
  background: var(--active-bg);
  border-color: var(--active-color);
  color: #fff;
}
.stage-btn .step-num {
  background: var(--active-color);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 13px;
}
.stage-btn .step-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
}

/* قائمة المؤشرات المفعلة في الخطوة - بطاقات */
.enabled-leds-list {
  margin: 16px 0;
  padding-right: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.enabled-leds-list li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: 3px solid var(--active-color);
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.75;
  color: #cbd5e1;
  font-size: 14px;
}
.enabled-leds-list li .led-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.enabled-leds-list li .led-badge {
  background: var(--active-color);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.enabled-leds-list li .led-title {
  color: var(--active-color);
  font-size: 14.5px;
  font-weight: 700;
}
.enabled-leds-list li .led-body {
  font-size: 13.5px;
  line-height: 1.8;
  color: #cbd5e1;
}

/* أزرار الإجراءات في الشرح */
.tutorial-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.action-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 13px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.2s;
}
.action-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.action-btn.primary {
  background: var(--active-bg);
  border-color: var(--active-color);
  color: #fff;
}

/* تنسيق محتوى نظرية التحكم داخل لوحة الشرح */
.catalog-content h3 {
  color: var(--active-color);
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 5px;
}
.catalog-content ul, .catalog-content ol {
  padding-right: 22px;
  margin-bottom: 10px;
}
.catalog-content li {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
}
.catalog-content .warn {
  background: rgba(234, 179, 8, 0.1);
  border-right: 3px solid #eab308;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 4px;
  color: #fde68a;
  font-size: 13.5px;
}
.catalog-content .danger {
  background: rgba(239, 68, 68, 0.1);
  border-right: 3px solid #ef4444;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 4px;
  color: #fecaca;
  font-size: 13.5px;
}
.catalog-content .spec-table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
  font-size: 13.5px;
}
.catalog-content .spec-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
}
.catalog-content .spec-table td:first-child {
  color: var(--active-color);
  font-weight: 600;
  white-space: nowrap;
}
.catalog-content .spec-table td:last-child { text-align: left; direction: ltr; }
.catalog-content code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12.5px;
  color: var(--active-color);
}

/* ============ التخطيط الرئيسي (شرح يسار + لوحة يمين) ============ */
/* اللوحة (يمين) sticky تتبع المستخدم أثناء التمرير في الشرح الطويل
   لوحة الشرح (يسار) تنمو بحجم محتواها بدون تمرير داخلي */
.main-content {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.panel-side {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  z-index: 5;
}

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

/* ============ الإطار الخارجي للجهاز ============ */
.fcjc-container {
  perspective: 1000px;
}

.fcjc-panel {
  width: 520px;
  background: linear-gradient(180deg, #0c0c0c 0%, #000 50%, #0c0c0c 100%);
  border-radius: 18px;
  padding: 35px 30px;
  position: relative;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.9),
    inset 0 2px 4px rgba(255,255,255,0.04),
    inset 0 -2px 4px rgba(0,0,0,0.8);
  border: 2px solid #000;
}

/* البراغي في الأركان */
.screw {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #888, #333 60%, #111);
  box-shadow:
    inset 0 -2px 4px rgba(0,0,0,0.6),
    0 2px 3px rgba(0,0,0,0.4);
}
.screw::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  width: 14px;
  height: 2px;
  background: #111;
  border-radius: 1px;
}
.screw.tl { top: 10px; left: 10px; }
.screw.tr { top: 10px; right: 10px; }
.screw.bl { bottom: 10px; left: 10px; }
.screw.br { bottom: 10px; right: 10px; }

/* ============ اللوحة الداخلية الداكنة ============ */
.inner-panel {
  background: linear-gradient(180deg, #36363a 0%, #1f1f23 50%, #2c2c30 100%);
  border-radius: 10px;
  padding: 18px 22px 25px;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.15),
    inset 0 -1px 2px rgba(0,0,0,0.5),
    0 2px 6px rgba(0,0,0,0.5);
  direction: ltr;
}

/* صف العلامة التجارية */
.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.brand-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f0f0f0;
  font-style: italic;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.brand-model {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ============ المنطقة العلوية (الأزرار + الشاشة) ============ */
.top-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.left-buttons {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.icon-btn {
  width: 38px;
  height: 32px;
  background: linear-gradient(180deg, #2d2d2d, #1a1a1a);
  border: 1px solid #000;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.icon-btn:hover {
  background: linear-gradient(180deg, #3d3d3d, #2a2a2a);
  transform: scale(1.06);
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 22px; height: 22px; fill: #5fcf5f; }

.display-section {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.side-indicators {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.ind-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, #1a1a1a, #050505);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #000;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.7), 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.15s;
}
.ind-icon:hover { transform: scale(1.12); }
.ind-icon.heater {
  color: #ff8c1a;
  text-shadow: 0 0 6px rgba(255,140,26,0.9);
}
.ind-icon.cooling {
  color: #5bc0ff;
  text-shadow: 0 0 6px rgba(91,192,255,0.9);
}

/* الشاشة الرقمية */
.display-wrap {
  background: linear-gradient(180deg, #1a0000, #2a0000);
  padding: 12px 22px;
  border-radius: 6px;
  border: 2px solid #000;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.9),
    0 1px 1px rgba(255,255,255,0.2);
  position: relative;
}

.digital-display {
  font-family: 'Share Tech Mono', monospace;
  font-size: 44px;
  font-weight: bold;
  color: #ff1a1a;
  text-shadow:
    0 0 8px rgba(255,30,30,0.9),
    0 0 18px rgba(255,30,30,0.7),
    0 0 30px rgba(255,30,30,0.5);
  letter-spacing: 2px;
  min-width: 120px;
  text-align: center;
  line-height: 1;
}

/* مجموعة Edit + الأسهم */
.right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5050, #c41a1a 60%, #7a0000);
  border: 2px solid #4a0000;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 3px 6px rgba(0,0,0,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,255,255,0.3);
  transition: all 0.15s;
  font-family: 'Cairo', sans-serif;
}
.edit-btn:hover {
  box-shadow:
    0 0 18px rgba(255,80,80,0.7),
    0 3px 6px rgba(0,0,0,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.4);
}
.edit-btn:active { transform: scale(0.95); }

.arrows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arrow-btn {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  cursor: pointer;
  background: transparent;
  transition: all 0.15s;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.arrow-btn.up { border-bottom: 18px solid #4ade80; }
.arrow-btn.down { border-top: 18px solid #4ade80; }
.arrow-btn:hover { filter: drop-shadow(0 0 6px rgba(74,222,128,0.9)); }
.arrow-btn:active { transform: scale(0.9); }

/* صف زرّي A و B */
.ab-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}
.ab-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7eff7e, #2eb82e 60%, #155f15);
  border: 1px solid #0a3a0a;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.3);
  transition: all 0.15s;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
.ab-btn:hover {
  box-shadow: 0 0 14px rgba(126,255,126,0.85), 0 2px 4px rgba(0,0,0,0.4);
  transform: scale(1.08);
}

/* ============ شبكة المؤشرات (LED + التسمية) ============ */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-top: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.menu-item.flip {
  flex-direction: row-reverse;
}

.led {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7eff7e, #2eb82e 60%, #155f15);
  border: 1px solid #0a3a0a;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.35),
    inset 0 1px 2px rgba(255,255,255,0.3);
  flex-shrink: 0;
  transition: all 0.2s;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.led.red {
  background: radial-gradient(circle at 35% 30%, #ff7e7e, #c41a1a 60%, #5f1515);
  border-color: #3a0a0a;
}

.menu-item:hover .led {
  box-shadow: 0 0 16px rgba(126,255,126,0.95), 0 2px 4px rgba(0,0,0,0.4);
  transform: scale(1.1);
}
.menu-item:hover .led.red {
  box-shadow: 0 0 16px rgba(255,80,80,0.95), 0 2px 4px rgba(0,0,0,0.4);
}

/* المؤشر النشط (المنقور عليه) */
.menu-item.active .led {
  box-shadow:
    0 0 22px rgba(126,255,126,1),
    0 0 35px rgba(126,255,126,0.6),
    0 2px 4px rgba(0,0,0,0.4);
  animation: pulse 1.2s infinite;
}
.menu-item.active .led.red {
  box-shadow:
    0 0 22px rgba(255,80,80,1),
    0 0 35px rgba(255,80,80,0.6),
    0 2px 4px rgba(0,0,0,0.4);
}

/* المؤشرات الفارغة (المفاتيح غير المتاحة في القائمة الحالية) */
.menu-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.menu-item.disabled .led {
  filter: grayscale(75%) brightness(0.55);
  animation: none !important;
}
.menu-item.disabled .label {
  background: linear-gradient(180deg, #999, #777);
  color: #444;
  border-color: #555;
}
.menu-item.disabled .label-ar { color: #444; }
.menu-item.disabled:hover .label {
  background: linear-gradient(180deg, #aaa, #888);
  transform: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.label {
  background: linear-gradient(180deg, #fafafa, #e0e0e0);
  border: 1px solid #555;
  border-radius: 3px;
  padding: 7px 8px;
  flex: 1;
  text-align: center;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.8),
    0 1px 2px rgba(0,0,0,0.4);
  transition: all 0.2s;
  line-height: 1.2;
  direction: rtl;
}

.label-ar {
  color: #111;
  font-size: 12.5px;
  font-weight: 600;
  display: block;
  direction: rtl;
}

.menu-item:hover .label {
  background: linear-gradient(180deg, #fffbe6, #ffe89a);
  border-color: #d4a017;
  transform: translateY(-1px);
}

.connector {
  width: 8px;
  height: 1px;
  background: #777;
  flex-shrink: 0;
}

/* ============ لوحة عرض المعلومات (جانب اليسار) ============ */
/* تنمو بحجم محتواها بدون تمرير داخلي، الصفحة كلها هي التي تتمرر */
.info-panel {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 0;
  backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s;
  overflow: hidden;
}

/* شريط التنقّل العلوي (sticky داخل لوحة الشرح) */
.info-header {
  position: sticky;
  top: 0;
  background: rgba(20, 25, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 22px;
  border-bottom: 1px solid var(--active-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 3;
  flex-wrap: wrap;
}
.info-header .system-badge { margin-bottom: 0; }
.info-header .nav-actions {
  display: flex;
  gap: 6px;
}
.info-header .nav-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 12px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.info-header .nav-btn:hover {
  background: var(--active-bg);
  color: #fff;
  border-color: var(--active-color);
}
.info-header .nav-btn.exit {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.info-header .nav-btn.exit:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

/* المحتوى الفعلي (تحت الشريط) */
.info-body {
  padding: 22px 26px 26px;
}

.info-panel .system-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--active-bg);
  border: 1px solid var(--active-color);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: #fff;
  margin-bottom: 14px;
  transition: all 0.3s;
}

.info-panel h2 {
  color: var(--active-color);
  font-size: 22px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--active-glow);
  padding-bottom: 10px;
  transition: color 0.3s, border-color 0.3s;
}

.info-panel p {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 12px;
}

/* مربعات معلومات داخل الـ intro */
.intro-block {
  background: rgba(255,255,255,0.03);
  border-right: 3px solid var(--active-color);
  padding: 12px 16px;
  margin: 10px 0 14px;
  border-radius: 6px;
}
.intro-block .label {
  display: block;
  color: var(--active-color);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: right;
}
.intro-block p, .intro-block ul, .intro-block ol {
  margin: 0;
}
.intro-block ul, .intro-block ol {
  padding-right: 18px;
}
.intro-block li {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 3px;
}
.intro-block code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12.5px;
  color: var(--active-color);
}

.info-panel .leds-relevant {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.15);
  font-size: 13px;
  color: #94a3b8;
}

.info-panel .leds-relevant strong {
  color: var(--active-color);
}

.info-panel.placeholder {
  text-align: center;
}

/* ============ الفوتر ============ */
.page-footer {
  margin-top: 50px;
  padding: 22px 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  width: 100%;
}

.page-footer .footer-title {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.page-footer .footer-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-footer .footer-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
}

/* ============ التجاوب ============ */
@media (max-width: 1080px) {
  .main-content {
    flex-direction: column;
    align-items: center;
  }
  .info-side {
    order: 2;
    width: 100%;
    max-width: 520px;
  }
  .panel-side {
    order: 1;
  }
  .info-panel {
    min-height: 400px;
    max-height: 500px;
  }
}

@media (max-width: 780px) {
  .systems-bar { grid-template-columns: repeat(4, 1fr); }
  .tutorials-bar { grid-template-columns: repeat(3, 1fr); }
  .system-btn .name { font-size: 12px; }
  .system-btn .icon { font-size: 20px; }
  .tutorial-btn .name { font-size: 12px; }
  .tutorial-btn .icon { font-size: 19px; }
}

@media (max-width: 600px) {
  .fcjc-panel { width: 100%; max-width: 460px; padding: 25px 18px; }
  .digital-display { font-size: 36px; min-width: 110px; }
  .menu-grid { gap: 8px 10px; }
  .label-ar { font-size: 11px; }
  .systems-bar { grid-template-columns: repeat(3, 1fr); }
  .tutorials-bar { grid-template-columns: repeat(2, 1fr); }
}
