/* صفحهٔ دانلود اپ: ویترین تیره، گوشی نمایشی، نصب قدم‌به‌قدم و راهنمای Play Protect. */
.appdl {
  --ad-ink: var(--ink, #1f1517);
  --ad-soft: var(--ink-soft, #6c5d5a);
  --ad-paper: var(--paper, #fff);
  --ad-muted: var(--paper-muted, #f7f1ef);
  --ad-line: var(--line, rgba(60, 20, 20, .1));
  --ad-red: #b6252a;
  --ad-deep: #6f0f19;
  --ad-gold: #f1c46b;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  direction: rtl;
  color: var(--ad-ink);
}
.appdl svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── ویترین ─────────────────────────────────────────────────────────── */
.appdl-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(80% 90% at 85% 0%, rgba(227, 71, 90, .45), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(241, 196, 107, .16), transparent 62%),
    linear-gradient(140deg, #1b0c0f, #3b0f18 55%, #120809);
  color: #fbf3f1;
  box-shadow: 0 30px 70px rgba(70, 12, 20, .28);
  isolation: isolate;
}
.appdl-hero__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 115, 132, .22), transparent 65%);
  animation: appdl-float 14s ease-in-out infinite alternate;
}
.appdl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: 12.5px;
  font-weight: 800;
}
.appdl-pill i { width: 8px; height: 8px; border-radius: 50%; background: #5fe39a; box-shadow: 0 0 0 4px rgba(95, 227, 154, .18); }
.appdl-hero h1 { margin: 18px 0 12px; font-size: clamp(32px, 5.4vw, 56px); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.appdl-hero h1 span {
  background: linear-gradient(90deg, #ffd3d8, #ff8a98 45%, var(--ad-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.appdl-hero__copy > p { max-width: 52ch; margin: 0; font-size: 15px; line-height: 2.1; color: rgba(251, 243, 241, .78); }
.appdl-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.appdl-hero__facts { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 26px 0 0; padding: 0; list-style: none; }
.appdl-hero__facts li { display: grid; gap: 2px; padding-inline-start: 12px; border-inline-start: 2px solid rgba(241, 196, 107, .55); }
.appdl-hero__facts b { font-size: 13.5px; font-weight: 900; }
.appdl-hero__facts span { font-size: 11.5px; color: rgba(251, 243, 241, .62); }

/* دکمه‌ها */
.appdl-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 9px 18px 9px 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.appdl-btn:hover { transform: translateY(-2px); }
.appdl-btn svg { flex: none; width: 26px; height: 26px; }
.appdl-btn span { display: grid; gap: 1px; text-align: start; }
.appdl-btn small { font-size: 11px; font-weight: 700; opacity: .78; }
.appdl-btn b { font-size: 15px; font-weight: 900; }
.appdl-btn--android { background: linear-gradient(135deg, #e0404f, var(--ad-red) 55%, #8f1826); box-shadow: 0 12px 28px rgba(182, 37, 42, .38); }
.appdl-btn--android:hover { box-shadow: 0 16px 34px rgba(182, 37, 42, .5); }
.appdl-btn--windows { background: #fff; color: #1d1416; box-shadow: 0 12px 28px rgba(0, 0, 0, .2); }
.appdl-btn--windows svg { color: #2a6fd6; }
.appdl-btn--ghost { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.appdl-btn--compact { min-height: 44px; padding: 8px 18px; margin-inline-start: auto; }
.appdl-btn--block { justify-content: center; width: 100%; margin-top: 14px; border-color: var(--ad-line); }

/* گوشی نمایشی */
.appdl-phone { position: relative; justify-self: center; width: min(240px, 100%); animation: appdl-bob 6s ease-in-out infinite; }
.appdl-phone__screen {
  display: grid;
  gap: 10px;
  aspect-ratio: 9 / 18.5;
  padding: 16px 12px;
  border: 9px solid #0b0a0b;
  border-radius: 40px;
  background: linear-gradient(180deg, #fff8f6, #f6ebe8);
  box-shadow: 0 40px 70px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .5);
  transform: rotate(-5deg);
  grid-template-rows: auto auto 1fr auto;
}
.appdl-phone__bar { display: flex; align-items: center; gap: 7px; color: #2a1a1c; font-size: 11px; }
.appdl-phone__bar i { width: 20px; height: 20px; border-radius: 7px; background: linear-gradient(150deg, #e3475a, #8f1826); }
.appdl-phone__bar span { width: 18px; height: 18px; margin-inline-start: auto; border-radius: 50%; background: #efdcd8; }
.appdl-phone__banner { height: 72px; border-radius: 14px; background: linear-gradient(120deg, #7c1320, #e3475a 60%, #f1c46b); }
.appdl-phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.appdl-phone__grid div { display: grid; gap: 4px; padding: 5px; border-radius: 11px; background: #fff; box-shadow: 0 3px 8px rgba(90, 30, 30, .08); }
.appdl-phone__grid i { height: 46px; border-radius: 8px; background: linear-gradient(135deg, #f7c9c1, #e8928a); }
.appdl-phone__grid div:nth-child(2) i { background: linear-gradient(135deg, #f3d6b8, #d99a6c); }
.appdl-phone__grid div:nth-child(3) i { background: linear-gradient(135deg, #f1b9bd, #c9505d); }
.appdl-phone__grid b { width: 70%; height: 6px; border-radius: 4px; background: #e7d6d3; }
.appdl-phone__grid em { width: 45%; height: 6px; border-radius: 4px; background: #e3475a; }
.appdl-phone__cta { padding: 10px; border-radius: 12px; background: #b6252a; color: #fff; font-size: 11px; font-weight: 900; text-align: center; }
.appdl-phone__toast {
  position: absolute;
  inset-block-end: 18%;
  inset-inline-start: -18%;
  padding: 9px 14px;
  border-radius: 14px;
  background: #fff;
  color: #1a7f4b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
  animation: appdl-toast 6s ease-in-out infinite;
}

/* ── کارت‌ها ────────────────────────────────────────────────────────── */
.appdl-card {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--ad-line);
  border-radius: 26px;
  background: var(--ad-paper);
  box-shadow: 0 14px 34px rgba(80, 30, 30, .06);
}
.appdl-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.appdl-card__head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.appdl-card__head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ad-soft); }
.appdl-card__icon {
  display: grid;
  flex: none;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(150deg, #e3475a, #8f1826);
  color: #fff;
  box-shadow: 0 10px 24px rgba(182, 37, 42, .3);
}
.appdl-card__icon svg { width: 28px; height: 28px; }
.appdl-card__icon--win { background: linear-gradient(150deg, #3f8cf0, #1b4fa6); box-shadow: 0 10px 24px rgba(42, 111, 214, .3); }
.appdl-card__icon--apple { background: linear-gradient(150deg, #3a3a3f, #111); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

.appdl-android { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; margin-top: 22px; }

/* قدم‌ها */
.appdl-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.appdl-steps li {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 12px 54px 12px 14px;
  border: 1px solid var(--ad-line);
  border-radius: 16px;
  background: var(--ad-muted);
  counter-increment: step;
}
.appdl-steps li::before {
  content: counter(step, persian);
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--ad-red);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.appdl-steps b { font-size: 14px; font-weight: 900; }
.appdl-steps span { font-size: 13px; line-height: 1.9; color: var(--ad-soft); }
.appdl-steps strong { color: var(--ad-red); }
.appdl-steps--small { margin-top: 16px; }
.appdl-steps kbd { padding: 1px 6px; border: 1px solid var(--ad-line); border-radius: 6px; background: var(--ad-paper); font-size: 11.5px; }

/* راهنمای Play Protect */
.appdl-protect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .8fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(241, 196, 107, .5);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(241, 196, 107, .14), rgba(241, 196, 107, .04));
}
.appdl-protect h3 { margin: 0 0 8px; font-size: 16px; font-weight: 900; }
.appdl-protect p { margin: 0 0 10px; font-size: 13px; line-height: 2; color: var(--ad-soft); }
.appdl-protect ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 13px; line-height: 1.9; }
.appdl-sum { margin: 10px 0 0 !important; font-size: 11px !important; line-height: 1.7 !important; overflow-wrap: anywhere; }
.appdl-sum code { font-size: 10.5px; }

.appdl-dialog {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 16px 14px;
  border-radius: 26px;
  background: #fff;
  color: #1f1f1f;
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .16);
}
.appdl-dialog__shield { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #e8f0fe; color: #1a5fd0; }
.appdl-dialog__shield svg { width: 26px; height: 26px; }
.appdl-dialog b { font-size: 15px; font-weight: 900; }
.appdl-dialog p { margin: 0; font-size: 11.5px; line-height: 1.8; color: #555; }
.appdl-dialog__more { font-size: 12px; font-weight: 800; color: #1a5fd0; }
.appdl-dialog__more i { font-style: normal; }
.appdl-dialog__actions { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-top: 4px; font-size: 12px; font-weight: 800; color: #1a5fd0; }
.appdl-dialog__actions span { padding: 8px 10px; border-radius: 999px; }
.appdl-dialog__actions .is-hot { position: relative; background: #1a5fd0; color: #fff; animation: appdl-ring 2s ease-out infinite; }

.appdl-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.appdl-pair .appdl-card { display: flex; flex-direction: column; }
.appdl-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.appdl-chips li { padding: 5px 12px; border: 1px solid var(--ad-line); border-radius: 999px; background: var(--ad-muted); font-size: 12px; font-weight: 800; }
.appdl-chips .is-new { border-color: rgba(26, 127, 75, .35); background: rgba(26, 127, 75, .1); color: #1a7f4b; }
.appdl-share { display: inline-grid; width: 22px; height: 22px; place-items: center; vertical-align: middle; border-radius: 6px; background: #e8f0fe; color: #1a5fd0; }
.appdl-share svg { width: 16px; height: 16px; }

/* پرسش‌ها */
.appdl-faq { display: grid; gap: 10px; margin-top: 18px; }
.appdl-faq details { border: 1px solid var(--ad-line); border-radius: 18px; background: var(--ad-paper); }
.appdl-faq summary { padding: 15px 18px; font-size: 14px; font-weight: 900; cursor: pointer; list-style: none; }
.appdl-faq summary::-webkit-details-marker { display: none; }
.appdl-faq summary::after { content: "+"; float: left; color: var(--ad-red); font-size: 18px; line-height: 1; }
.appdl-faq details[open] summary::after { content: "−"; }
.appdl-faq p { margin: 0; padding: 0 18px 16px; font-size: 13.5px; line-height: 2.1; color: var(--ad-soft); }

.appdl-back { margin-top: 24px; text-align: center; }
.appdl-back a { color: var(--ad-red); font-weight: 800; text-decoration: none; }

@keyframes appdl-float { to { transform: translate3d(-8%, 10%, 0) scale(1.1); } }
@keyframes appdl-bob { 50% { transform: translateY(-10px); } }
@keyframes appdl-toast { 0%, 12% { opacity: 0; transform: translateY(8px); } 22%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
@keyframes appdl-ring { 0% { box-shadow: 0 0 0 0 rgba(26, 95, 208, .5); } 70% { box-shadow: 0 0 0 10px rgba(26, 95, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 95, 208, 0); } }

@media (max-width: 900px) {
  .appdl-hero { grid-template-columns: 1fr; }
  .appdl-phone { width: min(200px, 60%); margin-top: 8px; }
  .appdl-android,
  .appdl-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .appdl { padding-top: 14px; }
  .appdl-hero { padding: 26px 18px; border-radius: 26px; }
  .appdl-btn { flex: 1 1 100%; }
  .appdl-btn--compact { flex: 1 1 100%; justify-content: center; margin-inline-start: 0; }
  .appdl-protect { grid-template-columns: 1fr; }
  .appdl-phone__toast { inset-inline-start: -6%; }
}
@media (prefers-reduced-motion: reduce) {
  .appdl-hero__glow, .appdl-phone, .appdl-phone__toast, .appdl-dialog__actions .is-hot { animation: none; }
}
