/* =========================
   RESET + GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(180deg,#f7f9fc,#eef2f7);
  color: #1e1e1e;
  padding-top: 80px;     /* الهيدر */
  padding-bottom: 90px; /* الزر الثابت */
}

/* =========================
   PRODUCT HERO
========================= */
.product-hero {
  padding: 50px 20px;
}

.product-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 30px;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 38px;
  font-weight: 900;
}

.product-desc {
  font-size: 17px;
  color: #555;
    margin-bottom: 16px; /* بدل 26 */
  margin: 12px 0 16px;
}

/* =========================
   PLANS
========================= */
.plans {
  display: grid;
  gap: 14px;
    margin-bottom: 16px; /* بدل 26 */

}

.plan-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  font-weight: 800;
  transition: 0.25s;
  width: 100%;
}

.plan-radio:hover {
  border-color: #2F80ED;
}

.plan-radio.best {
  border-color: #2F80ED;
  background: #f0f6ff;
}

.plan-radio input {
  display: none;
}

.radio {
  width: 18px;
  height: 18px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  position: relative;
}

.plan-radio input:checked + .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #2F80ED;
  border-radius: 50%;
}

.duration {
  flex: 1;
}

.price {
  color: #2F80ED;
}

.best-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2F80ED;
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 900;
}

/* =========================
   PRODUCT IMAGE
========================= */
.product-image {
  flex: 1;
  text-align: right;
}

.product-image img {
  width: 100%;
  max-width: 420px;     /* حد أقصى للديسكتوب */
  height: auto;         /* 👈 الأهم */
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}


/* =========================
   SECTIONS
========================= */
.block {
  max-width: 1000px;
  margin: auto;
  padding: 30px 16px;
}

.block.alt {
  border-radius: 24px;
}

@media (max-width: 768px) {
  .product-desc {
    margin-bottom: 12px;
  }

  .plans {
    gap: 10px;
    margin-bottom: 16px;
  }

  .block {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

.block-title {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 26px;
}

/* =========================
   FEATURES
========================= */
.features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 16px;
}



/* =========================
   STEPS
========================= */
.steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.step {
  background: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  text-align: center;
  font-weight: 800;
  min-width: 140px;
}

.step span {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: #2F80ED;
  color: #fff;
  border-radius: 50%;
  line-height: 36px;
  margin-bottom: 6px;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #2F80ED;
}

/* =========================
   USE CASES
========================= */
.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}



.use-cases span {
  padding: 22px 18px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  font-weight: 700;
}

.use-cases .other {
  background: linear-gradient(135deg,#2F80ED,#56CCF2);
  color: #fff;
  border: none;
}

/* =========================
   FAQ
========================= */
.faq-list {
  max-width: 720px;
  margin: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
    background: #fff;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  font-weight: 900;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question span {
  transition: 0.3s;
}

.faq-answer {
  padding: 0 20px;
  font-size: 15px;
  color: #555;
  max-height: 0;
  overflow: hidden;
  transition: 0.35s ease;
}

.faq-item.active .faq-answer {
  padding: 14px 20px;
  max-height: 200px;
}

.faq-item.active .faq-question span {
  transform: rotate(180deg);
}

/* =========================
   STICKY CTA
========================= */
.sticky-cta {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  background: #fff;
  padding: 8px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  z-index: 999;
  display: flex;
  justify-content: center;
}

/* =========================
   MOBILE
========================= */
/* =========================
   FIX: FULL WIDTH ON MOBILE & TABLET
========================= */

/* موبايل + تابلت */
@media (max-width: 992px) {

  .product-container {
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-info {
    width: 100%;
  }

  .plans {
    width: 100%;
  }

  .plan-radio {
    width: 100%;
  }

  .block {
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 992px) {
  .product-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .product-image img {
    max-width: 320px;   /* تابلت */
  }
}

@media (max-width: 576px) {
  .product-image img {
    max-width: 260px;   /* موبايل */
  }
}

@media (max-width: 992px) {

  /* الكونتينرات الأساسية */
  .container,
  .product-container,
  .block,
  .trust-bar,
  .support-box {
    max-width: 100% !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Padding بسيط بدل الفراغ الكبير */
  .container,
  .product-container,
  .block {
    padding-left: 12px;
    padding-right: 12px;
  }
}


@media (max-width: 768px) {

  .product-container {
    flex-direction: column;
  }

  .product-image {
    order: 1;
    text-align: center;
  }

  .product-info {
    order: 2;
  }

  .product-image img {
    height: 260px;
  }

  .step-line {
    display: none;
  }
    /* الحاوية */
  .steps-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-right: 40px; /* مكان الخط */
  }

  /* الخط العمودي */
  .steps-flow::before {
    content: "";
    position: absolute;
    right: 26px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2F80ED;
    opacity: 0.3;
  }

  /* الكارت */
  .step {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 18px 18px 18px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
  }

  /* رقم الخطوة */
  .step span {
    width: 36px;
    height: 36px;
    background: #2F80ED;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
  }

  .step p {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
  }

  /* إلغاء أي خطوط قديمة */
  .step-line {
    display: none !important;
  }
}

/* =========================
   USE CASES – RESPONSIVE
========================= */

/* الوضع الافتراضي = موبايل */
.use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: auto;
}

.use-cases span {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 800;
  text-align: center;

  background: #fff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
}

/* العنصر المميز */
.use-cases .other {
  grid-column: span 2;
  height: 54px;
  background: linear-gradient(135deg,#2F80ED,#56CCF2);
  color: #fff;
  border: none;
}

/* =========================
   DESKTOP ONLY
========================= */
@media (min-width: 992px) {

  .use-cases {
    max-width: 900px;
    grid-template-columns: repeat(3, 1fr); /* 3 في الصف */
    gap: 18px;
  }

  .use-cases .other {
    grid-column: span 3; /* ياخد صف كامل */
  }
}
/* ===== Animated Background (like index) ===== */
body {
  background: linear-gradient(
    -45deg,
    #f5f9ff,
    #eef4ff,
    #f9fbff,
    #eef7ff
  );
  background-size: 400% 400%;
  animation: bgMove 18s ease infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ===== Background Shapes ===== */
.bg-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bg-shapes span {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(47,128,237,0.25),
    rgba(47,128,237,0.05),
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(6px);
  animation: floatBg 26s linear infinite;
}

.bg-shapes span:nth-child(1) {
  top: 15%;
  left: -100px;
}

.bg-shapes span:nth-child(2) {
  bottom: -140px;
  right: -120px;
  width: 340px;
  height: 340px;
  animation-duration: 32s;
}

@keyframes floatBg {
  0% { transform: translate(0,0); }
  50% { transform: translate(60px,-120px); }
  100% { transform: translate(0,0); }
}
/* ===== Background Shapes ===== */
.bg-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bg-shapes span {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(47,128,237,0.25),
    rgba(47,128,237,0.05),
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(6px);
  animation: floatBg 26s linear infinite;
}

.bg-shapes span:nth-child(1) {
  top: 15%;
  left: -100px;
}

.bg-shapes span:nth-child(2) {
  bottom: -140px;
  right: -120px;
  width: 340px;
  height: 340px;
  animation-duration: 32s;
}

@keyframes floatBg {
  0% { transform: translate(0,0); }
  50% { transform: translate(60px,-120px); }
  100% { transform: translate(0,0); }
}
/* ===== Background Particles ===== */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg-particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(47,128,237,0.18);
  border-radius: 50%;
  animation: particleMove linear infinite;
}

@keyframes particleMove {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  to {
    transform: translateY(-120vh);
    opacity: 0;
  }
}
/* =========================
   FEATURES (Enhanced)
========================= */
.features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px 18px;
  text-align: center;
  transition: 0.3s ease;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(47,128,237,0.18);
}

.feature-card .icon {
  font-size: 30px;
  display: block;
  margin-bottom: 10px;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
/* =========================
   FEATURES – MOBILE ACCORDION
========================= */
@media (max-width: 768px) {

  .feature-card {
    padding: 16px 18px;
    text-align: right;
    cursor: pointer;
  }

  .feature-card h4 {
    font-size: 15px;
    margin: 0;
  }

  .feature-card .icon {
    font-size: 22px;
    margin-left: 8px;
  }

  /* الوصف مخفي */
  .feature-card .feature-desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.3s ease;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
  }

  /* لما يتفتح */
  .feature-card.active .feature-desc {
    max-height: 120px;
    opacity: 1;
  }
}
/* =========================
   FEATURE CARD – MOBILE INLINE TITLE + ICON
========================= */
@media (max-width: 768px) {

  .feature-card {
    text-align: right;
  }

  /* الهيدر (أيقونة + عنوان في نفس السطر) */
  .feature-card .feature-head {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* الأيقونة */
  .feature-card .icon {
    font-size: 22px;
    flex-shrink: 0;
  }

  /* العنوان */
  .feature-card h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;      /* سطر واحد */
  }

  /* الوصف تحتهم */
  .feature-card .feature-desc {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
  }
}
/* =========================
   TRUST BAR
========================= */
.trust-bar {
  max-width: 1000px;
  margin: 20px auto 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.trust-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
/* =========================
   WHATSAPP FLOAT – RTL CORRECT FIX
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 90px;     /* فوق زر الشراء */
  left: 8px;        /* أقصى الشمال */
  z-index: 99999;

  display: flex;
  align-items: center;
  gap: 8px;

  direction: ltr;   /* مهم جدًا: نكسر RTL هنا */
}

/* زر واتساب (الدائرة) */
.whatsapp-btn {
  width: 48px;
  height: 48px;
  background: #25D366;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 22px rgba(37,211,102,0.45);
  flex-shrink: 0;
}

.whatsapp-btn img {
  width: 24px;
  height: 24px;
}

/* الرسالة (تطلع من يمين الزر) */
.whatsapp-msg {
  background: #fff;
  color: #1e1e1e;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;

  box-shadow: 0 6px 16px rgba(0,0,0,0.12);

  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: 0.35s ease;
}

/* إظهار الرسالة */
.whatsapp-float.show .whatsapp-msg {
  opacity: 1;
  transform: translateX(0);
}

/* موبايل */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 90px;
    left: 6px;
  }
}
