/* Popup do blog (o mesmo de hoje: lista VIP da Black 26, duas versões em teste A/B).
   Trazido do bloco do rodapé do WordPress em 22/11/2026, sem mudar o desenho. As fontes são as do blog.
   Na Fase 3 os popups passam a ser cadastrados no painel (passo F3.4). */
#xqb-ov, #xqb-ov * { box-sizing: border-box; }

#xqb-ov {
  --brand:#944CF7; --warm:#AC47D8; --lilac:#C7A2FF; --lilac-2:#E0CCFF; --deep:#7325D6;
  --ink:#F4EEFC; --ink-2:#CABFE0; --ink-3:#9D92BD;
  --panel:#150d28; --panel-2:#1b1132; --surface:#0B0615;
  --fd:"Sora","Sora reserva",system-ui,-apple-system,sans-serif;
  --fb:"Inter","Inter reserva",system-ui,-apple-system,sans-serif;

  position: fixed; inset: 0; z-index: 2147483000;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(148,76,247,.35), rgba(11,6,21,.86));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: var(--fb);
}
#xqb-ov.xqb-on { display: flex; }

#xqb-box {
  position: relative; width: min(94vw, 400px); max-height: 94vh;
  border-radius: 26px; padding: 2px; overflow: hidden;
  animation: xqb-pop .28s cubic-bezier(.2,.9,.3,1.2) both;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), 0 0 60px -20px rgba(148,76,247,.6);
}
#xqb-box::before {
  content: ""; position: absolute; inset: -60%; z-index: 0;
  background: conic-gradient(from 0deg,
    var(--brand), var(--lilac), transparent 22%,
    var(--warm), transparent 46%, var(--lilac-2),
    transparent 70%, var(--brand));
  animation: xqb-spin 5.5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  #xqb-box::before { animation: none; background: linear-gradient(100deg, var(--brand), var(--warm)); }
  #xqb-box { animation: none; }
}

.xqb-card {
  position: relative; z-index: 1; display: none;
  border-radius: 24px;
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(148,76,247,.28), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--surface));
  padding: 28px 24px 22px;
  max-height: calc(94vh - 4px); overflow-y: auto;
  color: var(--ink); text-align: center;
}
.xqb-card.xqb-ativo { display: block; }

#xqb-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 30px; height: 30px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 19px; line-height: 30px; cursor: pointer; padding: 0;
  transition: background .18s, transform .18s;
}
#xqb-close:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }

.xqb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fd); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--lilac);
  margin-bottom: 14px;
}
.xqb-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 0 rgba(148,76,247,.6);
  animation: xqb-pulse 1.8s ease-out infinite;
}

.xqb-head { font-family: var(--fd); font-weight: 800; font-size: 27px; line-height: 1.1; letter-spacing: -.02em; color: #fff; margin: 2px 0 10px; }
.xqb-head .hl { background: linear-gradient(100deg, var(--lilac-2), var(--lilac) 55%, var(--brand)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.xqb-sub { font-family: var(--fd); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); margin: 0 2px; }
.xqb-sub .hl { background: linear-gradient(100deg, var(--lilac-2), var(--lilac) 55%, var(--brand)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.xqb-sub2 { font-family: var(--fb); font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--ink-2); margin: 12px 4px 0; }

.xqb-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.xqb-chips li {
  font-family: var(--fd); font-weight: 700; font-size: 12.5px; color: var(--ink);
  padding: 7px 12px; border-radius: 999px; margin: 0;
  background: rgba(148,76,247,.14); border: 1px solid rgba(199,162,255,.35);
}
.xqb-chips li.q { background: rgba(172,71,216,.16); border-color: rgba(172,71,216,.45); }

.xqb-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 20px;
  background: linear-gradient(135deg, var(--lilac) 0%, var(--brand) 55%, var(--deep) 100%);
  color: #fff; font-family: var(--fd); font-weight: 700; font-size: 15.5px;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  padding: 17px 20px; border-radius: 14px; position: relative; overflow: hidden;
  box-shadow: 0 16px 34px -12px rgba(148,76,247,.8), 0 0 0 1px rgba(255,255,255,.16) inset;
  transition: transform .16s, box-shadow .2s, filter .2s;
  animation: xqb-breathe 2.4s ease-in-out infinite;
}
.xqb-cta:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; box-shadow: 0 22px 44px -12px rgba(148,76,247,.9); }
.xqb-cta:active { transform: translateY(0); }
.xqb-cta::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); animation: xqb-shine 3.2s ease-in-out infinite;
}
.xqb-cta svg { width: 20px; height: 20px; stroke: currentColor; }
.xqb-fine { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

@keyframes xqb-spin { to { transform: rotate(1turn); } }
@keyframes xqb-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes xqb-shine { 0%,55% { left: -120%; } 85%,100% { left: 130%; } }
@keyframes xqb-breathe { 0%,100% { box-shadow: 0 16px 34px -12px rgba(148,76,247,.8), 0 0 0 1px rgba(255,255,255,.16) inset; } 50% { box-shadow: 0 20px 44px -10px rgba(148,76,247,1), 0 0 0 1px rgba(255,255,255,.16) inset; } }
@keyframes xqb-pulse { 0% { box-shadow: 0 0 0 0 rgba(148,76,247,.55); } 70% { box-shadow: 0 0 0 8px rgba(148,76,247,0); } 100% { box-shadow: 0 0 0 0 rgba(148,76,247,0); } }

@media (max-width: 380px) {
  .xqb-card { padding: 24px 18px 20px; }
  .xqb-head { font-size: 23px; }
}
#xqb-ov .xqb-cta.xqb-esg{background:linear-gradient(180deg,#F0343F 0%,#B5121E 100%)!important;color:#fff!important;box-shadow:0 18px 40px -14px rgba(240,52,63,.8)!important}
#xqb-ov .xqb-cta.xqb-esg:hover{box-shadow:0 22px 44px -12px rgba(240,52,63,.9)!important}
#xqb-ov .xqb-cta.xqb-esg svg{display:none}
#xqb-ov .xqb-fine.xqb-aviso{color:#FFC42E!important;font-weight:700!important;font-size:15px!important;letter-spacing:.01em}
