/* Reset بسيط وخط عام */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top left, #1a1b3c 0%, #050510 40%, #010007 100%);
  color: #f5f5f5;
}

/* حاوية عامة */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* الهيدر العلوي */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(18px);
  background: linear-gradient(135deg, rgba(5, 5, 20, 0.95), rgba(20, 20, 60, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 10px;
}

/* الشعار */
.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.logo-mark {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ff5f6d);
  font-weight: 700;
  font-size: 14px;
  color: #111;
}

.logo-text {
  letter-spacing: 1px;
  font-size: 14px;
  color: #ddd;
}

/* زر القائمة (الهاتف) */
.menu-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 18px;
}

/* الأزرار العامة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-primary {
  background-image: linear-gradient(135deg, #ff512f, #dd2476);
  color: white;
  box-shadow: 0 10px 30px rgba(221, 36, 118, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(221, 36, 118, 0.45);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f5f5f5;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-nav {
  background-image: linear-gradient(135deg, #ff9a9e, #fad0c4);
  color: #111;
}

/* السايدبار */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 220px;
  height: calc(100vh - 60px);
  background: rgba(5, 5, 20, 0.98);
  box-shadow: 4px 0 20px rgba(0,0,0,0.6);
  z-index: 150;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  gap: 10px;
}

.sidebar a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

.sidebar a:hover {
  background: rgba(255,255,255,0.10);
}

/* قسم الهيرو */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 40px 0 30px;
}

.hero-content {
  width: 90%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 12px;
  background: linear-gradient(120deg, #ff9a9e, #fad0c4, #fbc2eb);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 15px;
  color: #d1d1e6;
  margin-bottom: 22px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}

/* بطاقات الإحصائيات – صورة تغطي الكرت والنص في جانب واحد */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* الكارت */
.stat {
  width: 100%;
  max-width: 320px;
  height: 140px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* الصورة الخلفية */
.stat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* طبقة نص على أحد الجوانب */
.stat-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;     /* غيّرها إلى flex-end لو تريد يمين */
  padding-inline: 24px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.05)
  );
}

.stat-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: #e0e0ff;
  margin-top: 2px;
}

/* في الشاشات الأكبر: بجانب بعض */
@media (min-width: 768px) {
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* الأقسام العامة */
.section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 20px;
}

/* الكروت */
.cards {
  display: grid;
  gap: 16px;
}

.features .cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 20, 40, 0.9), rgba(10, 10, 25, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.card p {
  font-size: 13px;
  color: #c3c3dd;
}

/* الباقات */
.plans-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  overflow: hidden;
}

.plan-card-featured {
  border: 1px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 22px 50px rgba(255, 215, 0, 0.3);
}

.plan-price {
  font-size: 18px;
  margin: 6px 0 10px;
}

.plan-list {
  list-style: none;
  margin-bottom: 12px;
}

.plan-list li {
  font-size: 13px;
  margin-bottom: 4px;
}

/* تواصل */
.contact-wrapper {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
}

.contact-info p {
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-form {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 15, 0.8);
  color: #f5f5f5;
  font-size: 13px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(221, 36, 118, 0.8);
}

/* رسائل الفورم */
.alert {
  width: 100%;
  margin: 0 0 14px 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.alert-success {
  background: rgba(0, 150, 80, 0.15);
  border: 1px solid rgba(0, 200, 120, 0.7);
  color: #b7ffd7;
}

.alert-error {
  background: rgba(150, 0, 40, 0.15);
  border: 1px solid rgba(255, 80, 120, 0.8);
  color: #ffd0dd;
}

/* الفوتر */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0 20px;
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(5, 5, 15, 0.95), rgba(1, 1, 5, 1));
}

.footer-inner {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: #9999bb;
}

.footer-note {
  margin-top: 4px;
}

/* تحسين شكل الديسكتوب: تكبير المحتوى ودفعه يمينًا بسبب السايدبار */
@media (min-width: 1024px) {
  .hero,
  .section,
  .site-footer {
    margin-left: 220px;
  }

  .hero {
    min-height: calc(100vh - 80px);
  }

  .hero-content {
    max-width: 720px;
  }

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

  .hero p {
    font-size: 18px;
  }

  .hero-buttons .btn {
    font-size: 16px;
    padding: 12px 26px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat {
    max-width: 190px;
    padding: 14px 16px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 13px;
  }

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

  .card {
    padding: 18px 20px;
  }

  .card h3 {
    font-size: 17px;
  }

  .card p,
  .plan-list li {
    font-size: 14px;
  }

  /* إخفاء زر القائمة في الديسكتوب */
  .menu-toggle {
    display: none;
  }
}

/* استجابة التابلت/الموبايل: السايدبار مخفية وتظهر بالزر */
@media (max-width: 1023px) {
  .sidebar {
    top: 60px;                 /* نفس ارتفاع الهيدر تقريبًا */
    height: calc(100vh - 60px);
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

  .hero,
  .section,
  .site-footer {
    margin-left: 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .features .cards,
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

/* موبايل أصغر جدًا */
@media (max-width: 480px) {
  .hero-content {
    max-width: 320px;
  }

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    max-width: 100%;
  }
}

/* زر واتساب عائم */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 250;
  padding: 10px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:hover {
  background: #1ebe5b;
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px auto;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* بطاقات الإحصائيات تغطيها الصورة بالكامل */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* الكارت */
.stat {
  width: 100%;
  max-width: 320px;
  height: 140px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* الصورة الخلفية تغطي الكارت */
.stat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* طبقة فوق الصورة، النص على أحد الجوانب */
.stat-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  /* النص على اليسار؛ غيّر إلى flex-end لو تريد يمين */
  justify-content: flex-start;
  padding-inline: 24px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.05)
  );
}

/* كتلة النص داخل الكارت */
.stat-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* الرقم كبير وجذاب */
.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

/* النص أصغر تحت الرقم */
.stat-label {
  font-size: 13px;
  color: #e0e0ff;
  margin-top: 2px;
}

/* في الشاشات الأكبر: بجانب بعض */
@media (min-width: 768px) {
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* في الشاشات الكبيرة يمكن جعلها في صفين أو صف واحد */
@media (min-width: 768px) {
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* عداد الزوّار الفخم */
.visitor-counter {
  margin: 18px auto 0 auto;
  padding: 10px 18px;
  max-width: 260px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #222654, #0b0c20);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.visitor-label {
  font-size: 13px;
  color: #b5b5d6;
}

.visitor-number {
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
  box-shadow: 0 10px 25px rgba(221, 36, 118, 0.4);
}

/* صندوق نسبة رضا الزبائن */
.satisfaction-box {
  width: 90%;
  max-width: 360px;
  margin: 18px auto 0 auto;
  padding: 14px 16px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, #262a55, #0b0c20);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.satisfaction-label {
  font-size: 14px;
  color: #d0d0f0;
  margin-bottom: 8px;
}

/* شريط النسبة */
.satisfaction-bar {
  position: relative;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.satisfaction-fill {
  position: relative;
  height: 100%;
  width: 95%; /* نفس القيمة المكتوبة في النص 95% */
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #22c55e, #a3e635);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

/* الرقم فوق الشريط */
.satisfaction-percent {
  font-size: 12px;
  font-weight: 700;
  color: #0b0c20;
}

/* ملاحظة صغيرة تحت الشريط */
.satisfaction-note {
  margin-top: 6px;
  font-size: 11px;
  color: #9fa3d4;
}