/* Fluxo "Da campanha ao pagamento" — visual 3D aprimorado (isolado do runtime original) */

#recebe .diagram .stage .visual {
  perspective: 1400px;
}

/* ---------- Etiquetas de etapa (01/02/03) ---------- */
#recebe .step-label {
  position: relative;
}

#recebe .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 252, 84, 0.45);
  background: linear-gradient(180deg, rgba(216, 252, 84, 0.16), rgba(216, 252, 84, 0.04));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 6px 18px -6px rgba(216, 252, 84, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #d8fc54 !important;
  -webkit-text-fill-color: #d8fc54;
  text-shadow: 0 0 12px rgba(216, 252, 84, 0.6);
}

/* ---------- Palco 3D geral ---------- */
#recebe .diagram .stage .visual {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 18px;
}

#recebe .diagram .stage .visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(216, 252, 84, 0.55), rgba(216, 252, 84, 0.05) 40%, rgba(216, 252, 84, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
}

/* ---------- 01 · Briefing da marca ---------- */
#recebe .brief-document {
  position: relative;
  transform: rotateY(-7deg) rotateX(4deg) translateZ(0);
  transform-style: preserve-3d;
  border-radius: 14px;
  border: 1px solid rgba(216, 252, 84, 0.22);
  background: linear-gradient(160deg, #14170d 0%, #0a0b07 60%, #060704 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.05) inset,
    0 -18px 30px -18px rgba(0, 0, 0, 0.9) inset,
    0 24px 50px -18px rgba(0, 0, 0, 0.85),
    0 30px 60px -30px rgba(216, 252, 84, 0.22);
  overflow: hidden;
  animation: pxf-flutua 6s ease-in-out infinite;
}

#recebe .brief-document::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(216, 252, 84, 0.10) 45%, transparent 60%);
  pointer-events: none;
}

#recebe .document-seal {
  filter: drop-shadow(0 0 14px rgba(216, 252, 84, 0.75));
}

/* ---------- 02 · Crie o vídeo (carrossel de filmes) ---------- */
#recebe .creator-carousel {
  position: relative;
  border-radius: 16px;
  padding: 10px;
  transform: rotateY(6deg) rotateX(4deg);
  transform-style: preserve-3d;
  background: linear-gradient(160deg, rgba(20, 23, 12, 0.9), rgba(6, 7, 4, 0.95));
  border: 1px solid rgba(216, 252, 84, 0.25);
  box-shadow:
    0 24px 55px -20px rgba(0, 0, 0, 0.9),
    0 0 40px -12px rgba(216, 252, 84, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: pxf-flutua 7s ease-in-out infinite;
}

#recebe .creator-film {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(216, 252, 84, 0.28);
  box-shadow:
    0 10px 24px -10px rgba(0, 0, 0, 0.85),
    inset 0 0 18px rgba(216, 252, 84, 0.06);
  filter: brightness(1.35) saturate(1.1);
  overflow: hidden;
}

#recebe .creator-film::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(216, 252, 84, 0.10), transparent 35%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

/* ---------- 03 · Envie o vídeo (pilha de entrega) ---------- */
#recebe .delivery-stack {
  transform-style: preserve-3d;
}

#recebe .delivery-piece {
  transform-style: preserve-3d;
  border-radius: 14px;
  border: 1px solid rgba(216, 252, 84, 0.3);
  background: linear-gradient(160deg, #161a0e 0%, #0a0c06 100%);
  box-shadow:
    0 16px 34px -14px rgba(0, 0, 0, 0.9),
    0 0 26px -8px rgba(216, 252, 84, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}

#recebe .delivery-piece.piece-one {
  transform: rotate(3deg) translateZ(18px);
}

#recebe .delivery-piece.piece-two {
  transform: rotate(-2deg) translateZ(34px);
}

#recebe .delivery-piece.piece-three {
  transform: rotate(1.5deg) translateZ(50px);
}

#recebe .delivery-piece.piece-three {
  border-color: rgba(216, 252, 84, 0.55);
  box-shadow:
    0 18px 38px -14px rgba(0, 0, 0, 0.9),
    0 0 34px -6px rgba(216, 252, 84, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#recebe .delivery-check {
  filter: drop-shadow(0 0 10px rgba(216, 252, 84, 0.8));
}

/* ---------- Conexões entre etapas: fluxo contínuo ---------- */
#recebe .connection.line-one,
#recebe .connection.line-two {
  position: relative;
  overflow: visible;
}

/* traço verde fluindo sem parar */
#recebe .connection.line-one::after,
#recebe .connection.line-two::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(216, 252, 84, 0) 0px,
    rgba(216, 252, 84, 0) 4px,
    rgba(216, 252, 84, 0.95) 10px,
    rgba(216, 252, 84, 0) 16px,
    rgba(216, 252, 84, 0) 22px
  );
  background-size: 200% 100%;
  animation: pxf-fluxo 1.1s linear infinite;
  filter: drop-shadow(0 0 6px rgba(216, 252, 84, 0.8));
  pointer-events: none;
}

/* pulso de luz mais largo por cima do traço */
#recebe .connection.line-one::before,
#recebe .connection.line-two::before {
  content: "";
  position: absolute;
  inset: -2px 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(216, 252, 84, 0.55), transparent);
  background-size: 220% 100%;
  animation: pxf-fluxo 1.6s linear infinite;
  filter: blur(3px);
  pointer-events: none;
}

/* linhas originais substituídas pelos conectores animados (pix-connectors.js) */
#recebe .diagram.pxc-on .connection.lead { display: none !important; }

#recebe .diagram { position: relative; }
#recebe .pxc-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: visible; }
#recebe .pxc-svg {
  position: absolute; left: 0; top: 0;
  pointer-events: none; overflow: visible; z-index: 6;
  max-width: none !important; max-height: none !important; scale: none !important; transform: none !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; box-sizing: content-box !important; inset: 0 auto auto 0 !important;
}
#recebe .pxc-base {
  fill: none; stroke: rgba(216, 252, 84, 0.22); stroke-width: 2; stroke-linecap: round;
}
#recebe .pxc-flow {
  fill: none; stroke: rgba(216, 252, 84, 0.85); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1.2 3.2;
  animation: pxc-flow 1.4s linear infinite;
}
#recebe .pxc-comet {
  fill: none; stroke: #eaff9a; stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 16 120; stroke-dashoffset: 16;
  animation: pxc-comet 2.2s cubic-bezier(.55,.1,.35,1) infinite;
  animation-delay: var(--pxc-delay, 0s);
}
#recebe .pxc-node {
  fill: #0b0d07; stroke: #d8fc54; stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  animation: pxc-node 2.2s ease-in-out infinite;
  animation-delay: var(--pxc-delay, 0s);
}
#recebe .pxc-node-end { animation-delay: calc(var(--pxc-delay, 0s) + 1.1s); }
#recebe .pxc-paused .pxc-flow,
#recebe .pxc-paused .pxc-comet,
#recebe .pxc-paused .pxc-node { animation-play-state: paused; }

@keyframes pxc-flow { to { stroke-dashoffset: -4.4; } }
@keyframes pxc-comet {
  0% { stroke-dashoffset: 16; opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes pxc-node {
  0%, 100% { fill: #0b0d07; filter: none; transform: scale(1); }
  45% { fill: #d8fc54; filter: drop-shadow(0 0 6px rgba(216,252,84,.9)); transform: scale(1.45); }
}

/* vídeos enviados pelo usuário na etapa 02 */
#recebe .creator-film .criador-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 10px; z-index: 0;
}

/* ---------- 04 · Receba o pagamento ---------- */
#recebe .payoff-number {
  position: relative;
}

#recebe .payoff-number .payoff-ring {
  box-shadow:
    0 0 0 2px rgba(216, 252, 84, 0.35),
    0 0 26px rgba(216, 252, 84, 0.55),
    0 0 60px rgba(216, 252, 84, 0.25) !important;
}

/* ---------- Animações ---------- */
@keyframes pxf-flutua {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes pxf-fluxo {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pxf-pulso {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  #recebe .brief-document,
  #recebe .creator-carousel {
    animation: none;
  }
  #recebe .connection.line-one::after,
  #recebe .connection.line-two::after {
    animation: none;
  }
}

/* Celular inteiro visível no mobile, sem sobra embaixo */
@media (max-width: 767px) {
  #recebe .rc-palco { height: 690px !important; }
}
