/* AUPYGO — section pub image + modal welcome */
.aupygo-promo-section {
  margin: 24px auto 8px;
  max-width: 720px;
  padding: 0 16px 8px;
}
.aupygo-promo-inner {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e4ef);
  border-radius: 18px;
  box-shadow: var(--shadow, 0 10px 35px rgba(42,24,70,.08));
  padding: 18px 16px 16px;
}
.aupygo-promo-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--text, #292638);
}
.aupygo-promo-sub {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted, #777386);
}
.aupygo-promo-player-wrap,
.aupygo-promo-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 1 / 1;
  max-height: 480px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .aupygo-promo-player-wrap,
  .aupygo-promo-img-wrap {
    max-height: 520px;
  }
}
.aupygo-promo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f172a;
}
.aupygo-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.aupygo-promo-actions .btn {
  flex: 1 1 140px;
  font-size: 13px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

/* Modal 1ère visite — au-dessus de tout (nav, captcha, overlays app) */
.aupygo-welcome-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  background: rgba(15, 23, 42, 0.72);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
}
.aupygo-welcome-sheet {
  position: relative;
  width: min(380px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 20px 16px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  text-align: center;
  pointer-events: auto !important;
  z-index: 1;
}
.aupygo-welcome-sheet h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #292638;
}
.aupygo-welcome-tag {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #777386;
}
.aupygo-welcome-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #475569;
  z-index: 5;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.aupygo-welcome-close:active {
  background: #e2e8f0;
}
.aupygo-welcome-img {
  width: 100%;
  max-height: 45vh;
  border-radius: 12px;
  background: #0f172a;
  object-fit: contain;
  pointer-events: auto;
}
.aupygo-welcome-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
}
.aupygo-welcome-actions .btn {
  flex: 1;
  font-size: 14px;
  padding: 12px 14px;
  cursor: pointer;
  pointer-events: auto !important;
  touch-action: manipulation;
  position: relative;
  z-index: 6;
}

body.dark-theme .aupygo-promo-inner,
html.dark .aupygo-promo-inner {
  background: #1e1b2e;
  border-color: #2e2a40;
}
body.dark-theme .aupygo-welcome-sheet,
html.dark .aupygo-welcome-sheet {
  background: #1e1b2e;
  color: #f8fafc;
}
body.dark-theme .aupygo-welcome-sheet h3,
html.dark .aupygo-welcome-sheet h3 {
  color: #f8fafc;
}
body.dark-theme .aupygo-welcome-close,
html.dark .aupygo-welcome-close {
  background: #334155;
  color: #e2e8f0;
}
