html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #ffffff;
}

.mobile-container {
    width: 390px;
    background: #ffffff;
    padding: 25px;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    min-height: 100vh;
    margin-top: -25px;
}

.logo {
    width: 260px;
    position: fixed;   /* 👈 أهم حاجة */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

#sliderContainer {
    margin-top: 140px; /* خليها 120 - 150 حسب شكل اللوجو */
}

/* Illustration */
.illustration {
    width: 70%;
    max-width: 200px;
    display: block;
    margin: 10px auto 20px;
}

/* Title */
.title {
    font-size: 23px;
    font-weight: bold;
    margin-top: 10px;
    color: #222;
}

/* Description */
.desc {
    max-width: 280px;
    margin: 10px auto 25px;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

.slider {
  width: 100%;
  text-align: center;
}

.slide {
  width: 200px;      /* غيري المقاس */
  display: none;
}

.slide.active {
  display: inline-block;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
margin-bottom: 20px;
}

.dot.active {
  background: #ff5100fa;
}

/* Buttons */
.btn {
    width: 100%;
    max-width: 300px;
    padding: 14px;
    font-size: 17px;
    border-radius: 8px;
    margin: 6px auto;   /* ↓↓ قللنا المسافة ↓↓ */
    cursor: pointer;
    display: block;
    box-sizing: border-box;
}

.primary {
    background: #ff5100fa !important;
    color: white;
    border: none;
}

.secondary {
    background: transparent;
    border: 2px solid #ff5100fa !important;
    color: #ff5100fa !important;
}

/* ---------- Overlay with fade animation ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Popup Card with animation ---------- */
.popup {
  width: 92%;
  max-width: 380px;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  text-align: center;
  transform: translateY(-18px) scale(.92);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(.2,.9,.3,1),
    opacity 240ms ease;
  z-index: 1000;
}

.popup.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.popup h3 {
  margin: 0 0 18px;
  font-size: 20px;
  color: #222;
  font-weight: 600;
}

/* buttons row */
.langs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.lang-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #ff5100fa ;
  background: white;
  color: #ff5100fa ;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}

.lang-btn.primary {
  background: linear-gradient(180deg,#ff5100fa ,#ff5100fa );
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(255,100,0,0.2);
}

.lang-btn:hover {
  transform: translateY(-3px);
}

.lang-btn:active {
  transform: translateY(-1px);
}

/* Close button */
.close-popup {
  margin-top: 10px;
  background: #ff0000fa;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255,100,0,0.25);
  transition: transform .15s ease;
}

.close-popup:hover {
  transform: translateY(-2px);
}

.demo-link {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: #ff5100fa;
    text-decoration: underline;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}
.demo-link:hover {
    opacity: 0.8;
}
