/* ---------- One-time site-wide popup ---------- */
#igAppPromoPopup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20,22,27,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-promo-card {
  background: #fff;
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: igPromoPop .25s ease-out;
}
.app-promo-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 14px;
}
.app-promo-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--navy, #1A1F2E);
}
.app-promo-card p.app-promo-sub {
  margin: 0 0 18px;
  color: #6B7280;
  font-size: 13.5px;
}
.app-promo-benefits {
  text-align: left;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.app-promo-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--navy, #1A1F2E);
  margin-bottom: 10px;
}
.app-promo-benefits li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--red, #BB0000);
  margin-top: 1px;
}
.app-promo-download {
  display: block;
  width: 100%;
  background: var(--red, #BB0000);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  margin-bottom: 10px;
}
.app-promo-dismiss {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 13px;
  padding: 6px;
  cursor: pointer;
}
@keyframes igPromoPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Inline in-article promo card ---------- */
.app-promo-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper, #F5F5F7);
  border: 1px solid var(--line, #E5E7EB);
  border-radius: 12px;
  padding: 16px;
  margin: 24px 0;
}
.app-promo-inline img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.app-promo-inline .app-promo-inline-text {
  flex: 1;
  min-width: 0;
}
.app-promo-inline .app-promo-inline-text strong {
  display: block;
  font-size: 14px;
  color: var(--navy, #1A1F2E);
}
.app-promo-inline .app-promo-inline-text span {
  font-size: 12.5px;
  color: #6B7280;
}
.app-promo-inline a {
  flex-shrink: 0;
  background: var(--red, #BB0000);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .app-promo-inline { flex-wrap: wrap; }
  .app-promo-inline a { width: 100%; text-align: center; }
}

/* ---------- App update-available reminder popup (in-app only) ---------- */
#igAppUpdatePopup {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(20,22,27,0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-update-card {
  background: #fff;
  border-radius: 16px;
  max-width: 360px;
  width: 100%;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: igPromoPop .25s ease-out;
}
.app-update-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red-light, #F7E5E5);
  color: var(--red, #BB0000);
  margin-bottom: 14px;
}
.app-update-icon svg { width: 26px; height: 26px; }
.app-update-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--navy, #1A1F2E);
}
.app-update-sub {
  margin: 0 0 20px;
  color: #6B7280;
  font-size: 13.5px;
  line-height: 1.5;
}
.app-update-download {
  display: block;
  width: 100%;
  background: var(--red, #BB0000);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.app-update-later {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 13px;
  padding: 6px;
  cursor: pointer;
}
