/* RVC Popup Studio — Front */
.rvcps{ position: fixed; inset: 0; pointer-events: none; }
.rvcps__overlay{ position: absolute; inset: 0; pointer-events: auto; }
.rvcps__panel{
  position: absolute;
  pointer-events: auto;
  border-radius: 18px;
  overflow: hidden;

  background: rgba(14,14,18,.55);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 85px rgba(0,0,0,.70), 0 0 0 1px rgba(160,90,255,.18) inset;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-origin: 85% 80%;
}

.rvcps.is-bottom-right .rvcps__panel{ right: 18px; bottom: 18px; }
.rvcps.is-bottom-left  .rvcps__panel{ left: 18px; bottom: 18px; }
.rvcps.is-top-right    .rvcps__panel{ right: 18px; top: 18px; }
.rvcps.is-top-left     .rvcps__panel{ left: 18px; top: 18px; }
.rvcps.is-center       .rvcps__panel{ left: 50%; top: 50%; transform: translate(-50%,-50%); }

.rvcps__close{
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  z-index: 4;
}

.rvcps__media{ position: absolute; inset: 0; z-index: 0; }
.rvcps__media--image{
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}
.rvcps__media--video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}
.rvcps__media::after{
  content:"";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,10,.88) 0%, rgba(8,8,10,.72) 42%, rgba(8,8,10,.18) 78%, rgba(8,8,10,0) 100%),
    radial-gradient(700px 260px at 25% 20%, rgba(160,90,255,.25), rgba(0,0,0,0) 60%),
    radial-gradient(700px 260px at 45% 90%, rgba(255,90,210,.18), rgba(0,0,0,0) 62%);
}
.rvcps__content{ position: relative; z-index: 1; padding: 18px 20px 16px; }

/* default card template */
.rvcps-card{ max-width: 540px; color: rgba(255,255,255,.95); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
.rvcps-card__kicker{ font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; font-size: 12px; }
.rvcps-card__title{ font-weight: 950; font-size: 26px; margin-top: 8px; }
.rvcps-card__text{ opacity: .84; margin-top: 8px; line-height: 1.45; font-weight: 650; }
.rvcps-card__btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 18px; margin-top: 12px;
  border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, rgba(160,90,255,.98), rgba(255,90,210,.92));
  box-shadow: 0 22px 56px rgba(160,90,255,.30), 0 12px 34px rgba(0,0,0,.40), 0 0 0 1px rgba(255,255,255,.16) inset;
}

/* Animations */
.rvcps__panel{ transition: none; }
.rvcps__panel.is-in{ }

.rvcps__panel.anim-slide-right{ opacity: 0; transform: translateX(44px); filter: blur(10px); }
.rvcps__panel.anim-slide-right.is-in{
  animation: rvcps_slide_right var(--rvcps-dur,520ms) cubic-bezier(.18,.95,.22,1) both;
}
@keyframes rvcps_slide_right{
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.rvcps__panel.anim-fade{ opacity: 0; }
.rvcps__panel.anim-fade.is-in{
  animation: rvcps_fade var(--rvcps-dur,520ms) ease-out both;
}
@keyframes rvcps_fade{ to { opacity: 1; } }

.rvcps__panel.anim-flip-3d{ opacity: 0; transform: perspective(900px) rotateY(-18deg) translateX(24px); }
.rvcps__panel.anim-flip-3d.is-in{
  animation: rvcps_flip var(--rvcps-dur,520ms) cubic-bezier(.18,.95,.22,1) both;
}
@keyframes rvcps_flip{
  to { opacity: 1; transform: perspective(900px) rotateY(0) translateX(0); }
}

.rvcps__panel.anim-none{ opacity: 1; transform: none; filter: none; }
