/**
 * ====================================================================
 * 🎨 التصميم الفني والأنيميشن الشامل (Master Stylesheet) - منصة «تصميمي»
 * ====================================================================
 * تصميم عصري فاخر، زجاجي (Glassmorphism)، يدعم الوضعين الداكن والفاتح
 * مليء بالحركات والفيزياء التفاعلية، متجاوب 100% مع كافة الشاشات.
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600;700&display=swap');

:root {
  /* الوضع الداكن الافتراضي (Dark Obsidian Cyber) */
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(24, 32, 52, 0.9);
  --bg-glass: rgba(13, 17, 26, 0.65);
  --bg-glass-heavy: rgba(10, 14, 23, 0.88);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);
  --border-card: rgba(255, 255, 255, 0.1);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.4);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-brand: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
  --gradient-fire: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-dark-glass: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(0, 242, 254, 0.25);
  --shadow-emerald-glow: 0 0 30px rgba(16, 185, 129, 0.3);

  --font-main: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'Fira Code', monospace;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* الوضع الفاتح العصري (Modern Bright Minimalist) */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-heavy: rgba(248, 250, 252, 0.92);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 160, 255, 0.3);
  --border-card: rgba(0, 0, 0, 0.06);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.18);
  --shadow-emerald-glow: 0 0 25px rgba(16, 185, 129, 0.2);
}

/* ==========================================
   إعدادات البداية والريست
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.loading-locked {
  overflow: hidden;
  height: 100vh;
}

/* خلفية جزيئات وإضاءات محيطية ناعمة */
.ambient-bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: orbFloat 22s infinite alternate ease-in-out;
}

.ambient-orb-1 {
  width: 550px;
  height: 550px;
  background: var(--accent-cyan);
  top: -100px;
  left: -100px;
}

.ambient-orb-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  bottom: -150px;
  right: -100px;
  animation-duration: 28s;
  animation-delay: -5s;
}

.ambient-orb-3 {
  width: 450px;
  height: 450px;
  background: var(--accent-emerald);
  top: 40%;
  left: 30%;
  opacity: 0.12;
  animation-duration: 25s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.1); }
  100% { transform: translate(-40px, -50px) scale(0.95); }
}

/* الشبكة البرمجية الخافتة Cyber Grid */
.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   1. شاشة البداية البرمجية لكلمة «تصميمي»
   ========================================== */
.splash-screen {
  position: fixed;
  inset: 0;
  background: #05070a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
  perspective: 1200px;
}

.splash-screen.pulled-out {
  transform: perspective(1200px) rotateY(-35deg) translateX(-120%) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.splash-logo-container {
  margin-bottom: 30px;
  position: relative;
}

.splash-brand-glow {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 50px var(--accent-cyan-glow);
  animation: logoNeonPulse 2.5s infinite alternate ease-in-out;
}

.code-bracket {
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
  font-family: var(--font-code);
  font-weight: 700;
  animation: bracketTwinkle 1.8s infinite alternate;
}

@keyframes logoNeonPulse {
  0% { filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.5)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 35px rgba(139, 92, 246, 0.8)); transform: scale(1.03); }
}

@keyframes bracketTwinkle {
  0% { opacity: 0.6; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(2px); }
}

.splash-tagline {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 25px;
}

.splash-terminal-window {
  width: 100%;
  background: #0b0f19;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.15);
  overflow: hidden;
  text-align: right;
  direction: ltr; /* أسطر الكود بالإنجليزية مع رسائل عربية */
  font-family: var(--font-code);
  margin-bottom: 24px;
}

.terminal-header {
  background: #111827;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.t-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.terminal-title {
  font-size: 0.78rem;
  color: #64748b;
}

.splash-terminal-body {
  padding: 16px;
  height: 120px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.splash-log-line {
  color: #cbd5e1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInLine 0.3s ease;
}

.prompt-arrow { color: var(--accent-cyan); }
.log-ok { color: var(--accent-emerald); font-weight: bold; margin-left: auto; }

@keyframes fadeInLine {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-progress-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.splash-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.splash-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px var(--accent-cyan);
  transition: width 0.2s ease;
}

.splash-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #94a3b8;
}

.splash-skip-btn {
  margin-top: 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #64748b;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.splash-skip-btn:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
}

/* ==========================================
   2. تأثير الانتقال السينمائي لظهور الموقع
   ========================================== */
#main-content-wrapper {
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  transition: opacity 0.8s ease 0.2s, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) 0.2s;
  position: relative;
  z-index: 1;
}

#main-content-wrapper.revealed-spring {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ==========================================
   المؤشر التفاعلي الذكي (Custom Cursor)
   ========================================== */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.custom-cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent-cyan-glow);
  background: rgba(0, 242, 254, 0.04);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.custom-cursor-aura.cursor-hover {
  width: 65px;
  height: 65px;
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

/* ==========================================
   الأزرار المغناطيسية وأمواج النقر
   ========================================== */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.btn-primary-glow {
  background: var(--gradient-brand);
  color: #05070a;
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

.btn-primary-glow:hover {
  box-shadow: 0 6px 30px rgba(0, 242, 254, 0.6);
}

.btn-secondary-glass {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-secondary-glass:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.btn-whatsapp-green {
  background: var(--gradient-emerald);
  color: #ffffff;
  box-shadow: var(--shadow-emerald-glow);
}

.btn-whatsapp-green:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.55);
}

.btn-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleSpread 0.6s linear;
  pointer-events: none;
}

@keyframes rippleSpread {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* ==========================================
   البطاقات ثلاثية الأبعاد 3D Tilt
   ========================================== */
.tilt-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.tilt-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tilt-3d:hover::after {
  opacity: 1;
}

/* موجة تغيير الوضع الدائرية */
.theme-transition-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-transition-ripple.expand {
  transform: translate(-50%, -50%) scale(400);
}

/* ==========================================
   الهيدر وشريط التنقل العلوي
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-symbol {
  font-size: 1.6rem;
  font-family: var(--font-code);
  font-weight: 800;
  color: var(--accent-cyan);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

/* قائمة اختيار الدولة والعملة في الهيدر */
.country-dropdown-wrapper {
  position: relative;
}

.country-active-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.country-active-trigger:hover {
  border-color: var(--accent-cyan);
}

.country-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

.country-dropdown-wrapper:hover .country-dropdown-menu {
  display: flex;
  animation: fadeInMenu 0.25s ease;
}

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

.country-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.country-select-item:hover, .country-select-item.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  font-weight: 700;
}

.theme-toggle-btn, .sound-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover, .sound-toggle-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.sound-toggle-btn.muted {
  opacity: 0.5;
  filter: grayscale(1);
}

/* شريط الإعلان العلوي لعرض الإطلاق */
.launch-announcement-bar {
  background: linear-gradient(90deg, #1e1b4b, #312e81, #0f172a);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.launch-announcement-bar .badge-fire {
  background: var(--gradient-fire);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================
   3. القسم الترحيبي وسياق معركة الأكواد (Hero)
   ========================================== */
.hero-section {
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--accent-cyan-glow);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseBeacon 1.8s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero-headline .text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 15px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item span:first-child {
  font-size: 1.15rem;
}

/* ساحة معركة الأكواد (Code Battle Arena) */
.hero-code-battle-wrapper {
  position: relative;
  width: 100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-battle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.code-battle-card-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 242, 254, 0.15);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.code-battle-card-frame.morph-animating {
  transform: perspective(1000px) rotateY(90deg) scale(0.9);
  opacity: 0.2;
}

.card-frame-header {
  background: var(--bg-secondary);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.card-frame-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.card-frame-body {
  padding: 24px;
}

/* الأنماط المتحولة في المحرك البرمجي للواجهة الرئيسية */
.hero-site-mode {
  display: none;
  animation: fadeInSiteMode 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-site-mode.active {
  display: block;
}

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

.mini-preview-banner {
  height: 140px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.mini-preview-banner::after {
  content: 'LIVE DEMO';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 900;
  font-family: var(--font-code);
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
}

.mini-preview-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.mini-preview-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.mini-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-preview-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

.card-frame-footer {
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.btn-run-engine {
  width: 100%;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px dashed var(--accent-cyan-glow);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-run-engine:hover {
  background: var(--accent-cyan);
  color: #05070a;
  border-style: solid;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

/* ==========================================
   العناوين العامة للأقسام
   ========================================== */
.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--accent-cyan-glow);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   4. معرض المواقع الحية واستوديو النماذج التفاعلية
   ========================================== */
.portfolio-studio-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/* الجزء الأول: شبكة بطاقات المواقع الحية */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  margin-bottom: 70px;
}

.project-mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.project-mockup-card:hover {
  border-color: var(--accent-cyan-glow);
  box-shadow: 0 15px 40px -10px rgba(0, 242, 254, 0.2);
}

.mockup-screen-frame {
  background: #0f172a;
  border-bottom: 1px solid var(--border-color);
}

.mockup-browser-header {
  background: #1e293b;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.browser-dots .red { background: #f87171; }
.browser-dots .yellow { background: #fbbf24; }
.browser-dots .green { background: #34d399; }

.browser-address-bar {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 12px;
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.mockup-viewport-preview {
  height: 200px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-hero-content {
  text-align: center;
  transition: transform 0.3s ease;
}

.preview-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.preview-overlay-action {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.mockup-viewport-preview:hover .preview-overlay-action {
  opacity: 1;
}

.project-card-details {
  padding: 24px;
}

.proj-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.proj-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.proj-category {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.proj-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.proj-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.proj-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-pill {
  font-size: 0.72rem;
  font-family: var(--font-code);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.proj-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-preview-modal {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  padding: 8px 12px;
}

.btn-ask-project {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  padding: 8px 12px;
}

/* الجزء الثاني: المحاكي التفاعلي المدمج لـ 4 أنظمة */
.simulator-studio-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 0, 0, 0.4);
}

.simulator-header-bar {
  background: var(--bg-secondary);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.sim-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.sim-tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.simulator-tab-nav-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.simulator-tab-nav-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan-glow);
}

.simulator-tab-nav-btn.active {
  background: var(--accent-cyan);
  color: #05070a;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.simulator-pane {
  display: none;
  padding: 30px;
  min-height: 500px;
}

.simulator-pane.active {
  display: block;
  animation: fadeInPane 0.4s ease;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* سيستم المطعم والكافيه */
.restaurant-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.rest-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.rest-filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.rest-filter-btn.active, .rest-filter-btn:hover {
  background: var(--accent-amber);
  color: #05070a;
  border-color: var(--accent-amber);
  font-weight: 700;
}

.restaurant-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.rest-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.rest-item-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-4px);
}

.item-just-injected {
  animation: injectedHighlight 2s infinite alternate ease-in-out;
  border-color: var(--accent-emerald) !important;
}

@keyframes injectedHighlight {
  0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
  100% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.9); }
}

.rest-item-emoji {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 12px;
}

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

.rest-item-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.rest-item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.rest-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

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

.rest-current-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-amber);
}

.rest-old-price {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-right: 6px;
}

.rest-add-cart-btn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  font-size: 0.82rem;
}

.rest-add-cart-btn:hover {
  background: var(--accent-amber);
  color: #05070a;
}

/* صندوق سلة الطلبات */
.restaurant-cart-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.cart-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-count-badge {
  background: var(--accent-amber);
  color: #05070a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.restaurant-cart-items-scroll {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.rest-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.empty-cart-msg {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cart-coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-coupon-row input {
  flex-grow: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-code);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.cart-coupon-row button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}

.cart-totals-summary {
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.totals-row.final {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

/* سيستم المتجر الإلكتروني */
.ecommerce-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ecommerce-search-box {
  position: relative;
  flex-grow: 1;
  max-width: 450px;
}

.ecommerce-search-box input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 42px 10px 18px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.ecommerce-search-box input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.search-icon-pos {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.ecom-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ecom-filter-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ecom-filter-pill.active, .ecom-filter-pill:hover {
  background: var(--accent-emerald);
  color: #05070a;
  border-color: var(--accent-emerald);
  font-weight: 700;
}

.ecommerce-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.ecom-product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-top-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 8px;
  border-radius: 4px;
}

.product-icon-display {
  font-size: 4rem;
  text-align: center;
  margin: 15px 0;
}

.product-category-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.product-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 4px 0 8px;
}

.product-rating {
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.prod-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

.prod-buy-btn {
  background: var(--accent-emerald);
  color: #05070a;
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* سيستم المنصة التعليمية */
.education-layout-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 30px;
}

.edu-video-player-frame {
  background: #020617;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.video-screen-mockup {
  height: 260px;
  background: radial-gradient(circle at center, #1e293b, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.video-play-center-btn {
  width: 70px;
  height: 70px;
  background: rgba(59, 130, 246, 0.85);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
  transition: var(--transition-smooth);
}

.video-play-center-btn:hover {
  transform: scale(1.1);
}

.video-controls-bar {
  background: #0b0f19;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.video-progress-timeline {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.video-progress-fill {
  width: 25%;
  height: 100%;
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
}

.edu-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  max-height: 240px;
  overflow-y: auto;
}

.edu-lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.edu-lesson-row:hover, .edu-lesson-row.active {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.lesson-num {
  font-weight: 800;
  color: var(--accent-blue);
  font-family: var(--font-code);
}

.lesson-meta {
  flex-grow: 1;
}

.lesson-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}

.lesson-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* الكويز التفاعلي للطالب */
.edu-quiz-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.quiz-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

.quiz-question-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.quiz-q-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.quiz-option-label:hover {
  background: rgba(59, 130, 246, 0.15);
}

.quiz-result-card {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.quiz-result-card.hidden { display: none; }
.quiz-result-card.success-result {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}
.quiz-result-card.warning-result {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
}

/* سيستم لوحة الإدارة الشاملة (Admin Dashboard) */
.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.kpi-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent-cyan);
}

.admin-chart-mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.chart-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  padding-top: 10px;
  gap: 10px;
}

.chart-bar-col {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chart-bar-fill {
  width: 100%;
  background: var(--gradient-brand);
  border-radius: 4px 4px 0 0;
  transition: height 0.8s ease;
  min-height: 15px;
}

.chart-day-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* نموذج إضافة عنصر تفاعلي للأنظمة السابقة */
.admin-add-item-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.admin-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--accent-purple);
}

.admin-box-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field-group.full-width {
  grid-column: span 2;
}

.admin-field-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.admin-field-group input, .admin-field-group select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
}

.admin-field-group input:focus, .admin-field-group select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.btn-publish-item {
  width: 100%;
  background: var(--accent-purple);
  color: white;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

/* ==========================================
   نافذة المعاينة الحية المدمجة (In-App Sandbox Modal)
   ========================================== */
.live-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.live-preview-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-dialog-frame {
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  background: var(--bg-primary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-header-controls {
  background: var(--bg-secondary);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.device-switcher-group {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-full);
}

.device-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.device-switch-btn.active {
  background: var(--accent-cyan);
  color: #05070a;
}

.preview-viewport-container {
  flex-grow: 1;
  background: #020617;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  transition: all 0.4s ease;
}

.preview-viewport-container[data-device-mode="mobile"] .modal-sandbox-body {
  width: 375px;
  border-radius: 30px;
  border: 8px solid #1e293b;
  min-height: 667px;
}

.preview-viewport-container[data-device-mode="tablet"] .modal-sandbox-body {
  width: 768px;
  border-radius: 20px;
  border: 6px solid #1e293b;
  min-height: 800px;
}

.preview-viewport-container[data-device-mode="desktop"] .modal-sandbox-body {
  width: 100%;
  border-radius: 8px;
}

.modal-sandbox-body {
  background: #0b0f19;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transition: width 0.35s ease;
  overflow: hidden;
}

.sandbox-mock-site {
  padding: 20px;
  color: #f8fafc;
}

.sandbox-mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sandbox-mock-links {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.sandbox-mock-cta {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: bold;
}

.sandbox-mock-hero {
  padding: 35px 20px;
  text-align: center;
  margin: 15px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.sandbox-mock-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.sandbox-mock-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.sandbox-mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.mock-grid-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================
   5. الخط الزمني التفاعلي («كيف نحول فكرتك إلى واقع؟»)
   ========================================== */
.timeline-section {
  padding: 100px 0;
  position: relative;
}

.timeline-flow-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline-flow-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 32px;
  width: 3px;
  background: var(--border-color);
  transition: background 0.6s ease;
}

.timeline-step-item {
  position: relative;
  padding-right: 85px;
  margin-bottom: 45px;
  opacity: 0.35;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step-item.step-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-node-icon {
  position: absolute;
  right: 10px;
  top: 0;
  width: 46px;
  height: 46px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-step-item.step-visible .timeline-node-icon {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-cyan);
  background: var(--bg-primary);
}

.timeline-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-card-num {
  font-family: var(--font-code);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.step-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   6. قسم باقات الأسعار الذكية
   ========================================== */
.pricing-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.launch-deal-banner-wrapper {
  max-width: 850px;
  margin: 0 auto 50px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.deal-text-side h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 4px;
}

.deal-text-side p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.deal-countdown-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-digit-unit {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 50px;
}

.timer-digit-unit .digit-val {
  font-family: var(--font-code);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-cyan);
  display: block;
}

.timer-digit-unit .digit-txt {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 35px;
  max-width: 950px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.pricing-card.popular-featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 45px -10px rgba(0, 242, 254, 0.35);
  transform: scale(1.03);
}

.popular-badge-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #05070a;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.pricing-card-header {
  margin-bottom: 24px;
  text-align: center;
}

.pkg-type-badge {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.pkg-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.pkg-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-card-price-block {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.price-main-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.price-figure {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.price-currency-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.price-original-slash {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 6px;
}

.price-discount-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.pkg-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pkg-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feature-check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
  font-size: 1.1rem;
}

/* ==========================================
   7. قسم المؤسس والمطور (المهندس أحمد عبد الحليم)
   ========================================== */
.founder-trust-section {
  padding: 100px 0;
  position: relative;
}

.founder-profile-card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 242, 254, 0.1);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 45px;
  align-items: center;
}

.founder-photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--accent-cyan-glow);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.founder-photo-container:hover .founder-img {
  transform: scale(1.05);
}

.founder-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.founder-name {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.founder-title {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.founder-quote-box {
  background: var(--bg-secondary);
  border-right: 3px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

.founder-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.founder-stat-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.founder-stat-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--text-primary);
  font-family: var(--font-code);
}

.founder-stat-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================
   8. قسم الحجز الذكي والتواصل الفوري عبر واتساب
   ========================================== */
.booking-configurator-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.configurator-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.cfg-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.cfg-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfg-input-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cfg-input-group input, .cfg-input-group select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.cfg-input-group input:focus, .cfg-input-group select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.cfg-packages-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.package-radio-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.package-radio-label:has(input:checked) {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.cfg-extras-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.extra-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.extra-check-label:hover {
  border-color: var(--accent-cyan-glow);
}

.cfg-summary-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cfg-estimated-cost {
  display: flex;
  flex-direction: column;
}

.cost-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cost-amount-large {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

/* جزيئات الاحتفال بالكونفيتي */
.confetti-particle {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 9999999;
  pointer-events: none;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ==========================================
   الفوتر وزر الواتساب العائم
   ========================================== */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  color: var(--text-secondary);
}

.footer-top-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 380px;
}

.footer-col h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom-bar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* زر الواتساب العائم النابض */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.whatsapp-bubble-icon {
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  position: relative;
  transition: transform 0.3s ease;
}

.whatsapp-bubble-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: radarWave 2s infinite;
}

@keyframes radarWave {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-bubble-icon:hover {
  transform: scale(1.1);
}

.whatsapp-floating-text {
  background: #111827;
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* زر العودة للأعلى */
.btn-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.btn-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* الإشعارات العائمة Toast Notifications */
.tasmimly-toast {
  position: fixed;
  bottom: 30px;
  right: 50%;
  transform: translateX(50%) translateY(30px);
  background: #0f172a;
  border: 1px solid var(--accent-cyan);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-cyan-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.toast-success .toast-dot { background: var(--accent-emerald); box-shadow: 0 0 8px var(--accent-emerald); }
.toast-warning .toast-dot { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }

/* ==========================================
   التجاوب مع كافة الشاشات (Responsive Design)
   ========================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text-content {
    align-items: center;
  }

  .hero-cta-group, .hero-trust-badges {
    justify-content: center;
  }

  .founder-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-photo-container {
    max-width: 260px;
    margin: 0 auto;
  }

  .founder-quote-box {
    border-right: none;
    border-top: 3px solid var(--accent-cyan);
  }

  .restaurant-layout-grid,
  .education-layout-grid,
  .admin-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .main-navigation {
    display: none; /* يمكن فتح قائمة منبثقة أو استخدام القائمة السفلية */
  }

  .cfg-grid-2col,
  .cfg-packages-radio-group,
  .cfg-extras-checklist,
  .admin-form-grid,
  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .admin-field-group.full-width {
    grid-column: span 1;
  }

  .timeline-step-item {
    padding-right: 60px;
  }

  .timeline-node-icon {
    right: 5px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .timeline-flow-container::before {
    right: 23px;
  }

  .whatsapp-floating-text {
    display: none;
  }
}
