#cci-popup-overlay{
  position:fixed; inset:0; z-index:99999;
  display:flex; align-items:center; justify-content:center;
  padding:18px;
  background:
    radial-gradient(circle at 50% 40%, rgba(154,10,20,.45), rgba(0,0,0,.78) 70%);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
#cci-popup-overlay[hidden],
#cci-popup-overlay.is-closed{
  display:none !important;
}
#cci-popup-box{
  position:relative;
  width:min(500px,94vw);
  background:linear-gradient(160deg, #2a050a, #120104 55%, #2a050a);
  border-radius:22px;
  overflow:hidden;
  text-align:center;
  border:1px solid rgba(240,208,96,.4);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 28px rgba(255,200,80,.28),
    0 0 60px rgba(154,10,20,.35),
    0 24px 60px rgba(0,0,0,.55);
  animation:cciPopIn .7s cubic-bezier(.175,.885,.32,1.2), cciGlow 3s ease-in-out infinite;
  font-family:Manrope, Poppins, sans-serif;
  color:#fff4dc;
}
@keyframes cciPopIn{
  from{opacity:0; transform:scale(.86) translateY(18px)}
  to{opacity:1; transform:scale(1) translateY(0)}
}
@keyframes cciGlow{
  0%,100%{box-shadow:0 0 0 1px rgba(255,255,255,.05) inset,0 0 22px rgba(255,200,80,.25),0 0 48px rgba(154,10,20,.3),0 24px 60px rgba(0,0,0,.55)}
  50%{box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 0 36px rgba(255,220,110,.45),0 0 70px rgba(255,80,100,.28),0 28px 70px rgba(0,0,0,.6)}
}
@keyframes cciGrad{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@keyframes cciShine{
  0%{left:-40%; opacity:0}
  30%{opacity:1}
  100%{left:130%; opacity:0}
}
#cci-popup-box::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background:linear-gradient(120deg, transparent, rgba(255,220,120,.18), transparent, rgba(255,80,100,.12), transparent);
  background-size:260% 260%;
  animation:cciGrad 6s linear infinite;
  mix-blend-mode:screen;
  opacity:.55;
}
#cci-popup-close{
  position:absolute; top:12px; right:12px; z-index:5;
  width:36px; height:36px; border:1px solid rgba(240,208,96,.45);
  border-radius:12px;
  background:rgba(10,0,2,.72); color:#fff4dc;
  font-size:22px; line-height:1; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0;
  box-shadow:0 0 14px rgba(255,200,80,.3);
  transition:transform .25s ease, background .25s ease;
}
#cci-popup-close:hover{
  background:linear-gradient(135deg, #c41828, #f0d060);
  transform:rotate(90deg);
  color:#fff;
}
#cci-popup-media{
  background:#1a0306;
  padding:0;
  line-height:0;
  border-bottom:1px solid rgba(240,208,96,.28);
}
#cci-popup-media img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  background:#1a0306;
}
#cci-popup-actions{
  display:flex; gap:12px; justify-content:center;
  padding:18px 18px 10px;
}
#cci-popup-actions a{
  position:relative;
  flex:1;
  overflow:hidden;
  display:inline-block;
  text-decoration:none;
  text-align:center;
  font-family:Cinzel, Georgia, serif;
  font-size:13px; font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:14px 12px;
  clip-path:polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition:transform .25s ease, filter .25s ease;
}
#cci-popup-actions a.cci-cta-primary{
  color:#3a1500;
  background:linear-gradient(120deg, #8a5a00, #f0d060, #fff1b0, #d4a017, #8a5a00);
  background-size:240% 240%;
  animation:cciGrad 3s linear infinite;
  box-shadow:0 0 18px rgba(255,210,80,.45);
}
#cci-popup-actions a.cci-cta-secondary{
  color:#fff4dc;
  background:linear-gradient(120deg, #5a0610, #c41828, #ff5a6a, #8a0c18, #5a0610);
  background-size:240% 240%;
  animation:cciGrad 3s linear infinite;
  box-shadow:0 0 18px rgba(255,70,90,.4);
}
#cci-popup-actions a::before{
  content:"";
  position:absolute; top:-40%; left:-40%;
  width:35%; height:180%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform:skewX(-20deg);
  animation:cciShine 2.8s ease-in-out infinite;
}
#cci-popup-actions a:hover{
  transform:translateY(-2px) scale(1.03);
  filter:brightness(1.08);
}
#cci-popup-footer{
  border-top:1px solid rgba(240,208,96,.22);
  background:linear-gradient(180deg, rgba(40,6,10,.9), rgba(12,1,3,.95));
  padding:12px 18px 16px;
  font-size:11px; line-height:1.5; color:#ffd9a8;
  letter-spacing:.04em;
}
#cci-popup-footer .cci-copy{
  display:block; margin-top:2px;
  color:#ffd76a; font-weight:700;
  text-shadow:0 0 12px rgba(255,210,80,.45);
}
@media (max-width:480px){
  #cci-popup-actions{ flex-direction:column; }
  #cci-popup-actions a{ clip-path:polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
}
