/* ==========================================================================
   قسم تحميل التطبيق (أندرويد / iOS)
   يُستخدم في الصفحة الرئيسية وصفحة من نحن (القسم الكامل) وفي الفوتر (الشريط).
   ========================================================================== */

:root {
  --app-dl-navy: #043b59;
  --app-dl-navy-deep: #021f33;
  --app-dl-orange: #f6911e;
  --app-dl-green: #00996d;
  --app-dl-white: #ffffff;
}

/* ---------- القسم الكامل ---------- */
.app-dl {
  padding: 70px 0;
  position: relative;
}

.app-dl__card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
  color: var(--app-dl-white);
  background:
    radial-gradient(circle at 15% 20%, rgba(246, 145, 30, 0.22), transparent 38%),
    radial-gradient(circle at 85% 90%, rgba(0, 153, 109, 0.22), transparent 42%),
    linear-gradient(135deg, var(--app-dl-navy) 0%, var(--app-dl-navy-deep) 100%);
  box-shadow: 0 30px 70px rgba(4, 59, 89, 0.28);
  isolation: isolate;
}

.app-dl__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: -1;
}

.app-dl__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.app-dl__glow--1 {
  width: 320px;
  height: 320px;
  inset-inline-end: -90px;
  top: -120px;
  background: var(--app-dl-orange);
}

.app-dl__glow--2 {
  width: 260px;
  height: 260px;
  inset-inline-start: -80px;
  bottom: -110px;
  background: var(--app-dl-green);
}

.app-dl__copy {
  position: relative;
  z-index: 1;
}

.app-dl__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffd39a;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

.app-dl__eyebrow i {
  color: var(--app-dl-orange);
}

.app-dl__copy h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--app-dl-white);
}

.app-dl__copy > p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.95;
  font-size: 1.02rem;
  max-width: 560px;
  margin-bottom: 22px;
}

.app-dl__features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}

.app-dl__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.app-dl__features li i {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--app-dl-orange);
  font-size: 0.95rem;
}

/* ---------- أزرار المتاجر ---------- */
.app-dl__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.app-dl__store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 18px;
  border-radius: 14px;
  background: #0b1420;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--app-dl-white);
  text-decoration: none;
  line-height: 1.15;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.app-dl__store i {
  font-size: 1.8rem;
  flex: 0 0 auto;
}

.app-dl__store--android i {
  color: #34a853;
}

.app-dl__store--ios i {
  color: var(--app-dl-white);
}

.app-dl__store span {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.app-dl__store small {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2px;
}

.app-dl__store strong {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--app-dl-white);
  direction: ltr;
}

.app-dl__store:hover,
.app-dl__store:focus-visible {
  transform: translateY(-3px);
  border-color: var(--app-dl-orange);
  box-shadow: 0 18px 32px rgba(246, 145, 30, 0.28);
  color: var(--app-dl-white);
  background: #101c2b;
  outline: none;
}

.app-dl__note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-dl__note i {
  color: var(--app-dl-green);
}

/* ---------- واجهة الهاتف ---------- */
.app-dl__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.app-dl__phone {
  position: relative;
  width: 262px;
  height: 530px;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1d2b3a, #0a141f);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 40px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: appDlFloat 6s ease-in-out infinite;
}

.app-dl__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 999px;
  background: #0a141f;
  z-index: 3;
}

.app-dl__screen {
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #eef4f8 100%);
  color: var(--app-dl-navy);
  padding: 52px 16px 14px;
  gap: 14px;
}

.app-dl__screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-dl__screen-head img {
  height: 40px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
}

.app-dl__screen-hello {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-dl-navy);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(4, 59, 89, 0.08);
  white-space: nowrap;
}

.app-dl__screen-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e3ebf1;
  color: #8ba0ae;
  font-size: 0.72rem;
}

.app-dl__screen-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.app-dl__screen-services span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e3ebf1;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--app-dl-navy);
}

.app-dl__screen-services i {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(246, 145, 30, 0.14);
  color: var(--app-dl-orange);
  font-size: 0.7rem;
  flex: 0 0 auto;
}

.app-dl__screen-card {
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(135deg, var(--app-dl-navy), #0a5b85);
  color: #ffffff;
  display: grid;
  gap: 10px;
}

.app-dl__screen-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
}

.app-dl__screen-card-row em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--app-dl-orange);
  color: #ffffff;
  white-space: nowrap;
}

.app-dl__screen-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.app-dl__screen-progress i {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-dl-orange), #ffc46b);
  animation: appDlProgress 3.2s ease-in-out infinite alternate;
}

.app-dl__screen-lines {
  display: grid;
  gap: 6px;
}

.app-dl__screen-lines span {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.app-dl__screen-lines span:last-child {
  width: 60%;
}

.app-dl__screen-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px 4px;
  border-top: 1px solid #e3ebf1;
  color: #9db0bd;
  font-size: 0.9rem;
}

.app-dl__screen-nav i:first-child {
  color: var(--app-dl-orange);
}

/* الشرائح العائمة حول الهاتف */
.app-dl__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--app-dl-navy);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  z-index: 2;
}

.app-dl__chip i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #ffffff;
}

.app-dl__chip--1 {
  top: 60px;
  inset-inline-start: 0;
  animation: appDlFloat 5s ease-in-out infinite 0.4s;
}

.app-dl__chip--1 i {
  background: var(--app-dl-orange);
}

.app-dl__chip--2 {
  top: 48%;
  inset-inline-end: 0;
  animation: appDlFloat 5.6s ease-in-out infinite 1s;
}

.app-dl__chip--2 i {
  background: var(--app-dl-green);
}

.app-dl__chip--3 {
  bottom: 70px;
  inset-inline-start: 10px;
  animation: appDlFloat 5.2s ease-in-out infinite 1.6s;
}

.app-dl__chip--3 i {
  background: var(--app-dl-navy);
}

@keyframes appDlFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes appDlProgress {
  from {
    width: 42%;
  }

  to {
    width: 82%;
  }
}

/* ---------- شريط الفوتر ---------- */
.app-dl-strip {
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.app-dl-strip__copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-dl-strip__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--app-dl-orange), #ffb453);
  color: #ffffff;
  font-size: 1.3rem;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(246, 145, 30, 0.35);
}

.app-dl-strip__copy h4 {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.app-dl-strip__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.app-dl__stores--sm .app-dl__store {
  min-width: 164px;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: none;
}

.app-dl__stores--sm .app-dl__store i {
  font-size: 1.45rem;
}

.app-dl__stores--sm .app-dl__store small {
  font-size: 0.64rem;
}

.app-dl__stores--sm .app-dl__store strong {
  font-size: 0.98rem;
}

/* ---------- تجاوب ---------- */
@media (max-width: 991.98px) {
  .app-dl__visual {
    padding: 36px 0 12px;
  }

  .app-dl__copy {
    text-align: center;
  }

  .app-dl__copy > p {
    margin-inline: auto;
  }

  .app-dl__features {
    max-width: 420px;
    margin-inline: auto;
  }

  .app-dl__stores,
  .app-dl__note {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .app-dl {
    padding: 46px 0;
  }

  .app-dl__card {
    border-radius: 24px;
  }

  .app-dl__phone {
    width: 232px;
    height: 470px;
  }

  .app-dl__chip {
    font-size: 0.72rem;
    padding: 7px 11px;
  }

  .app-dl__chip--1 {
    inset-inline-start: -6px;
  }

  .app-dl__chip--2 {
    inset-inline-end: -6px;
  }

  .app-dl__chip--3 {
    inset-inline-start: -4px;
  }

  .app-dl-strip {
    flex-direction: column;
    text-align: center;
  }

  .app-dl-strip__copy {
    flex-direction: column;
  }

  .app-dl__stores {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .app-dl__store {
    min-width: 0;
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-dl__phone,
  .app-dl__chip,
  .app-dl__screen-progress i {
    animation: none;
  }
}
