/* StarPay Cash — modales.css
   Ventanas emergentes, overlays y animaciones de confirmación.
   Reglas separadas del CSS original; conserva los nombres de clases existentes.
*/

/* FLIP 3D PREMIUM - EXACTA DEL ARCHIVO QUE ENVIASTE - CORREGIDA */

#moneyAnimationOverlay{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:rgba(15,23,42,0.88);
  backdrop-filter:blur(10px);
  z-index:100000;
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  opacity:0;
  transition:opacity 0.3s ease;
}

#moneyAnimationOverlay.show{
  display:flex;
  opacity:1;
}

.flip3d-premium-wrapper{
  perspective:1200px;
  width:320px;
  height:200px;
  position:relative;
}

.flip3d-premium-card{
  width:100%;
  height:100%;
  position:relative;
  transform-style:preserve-3d;
  animation:embossGlow 3s ease-in-out infinite;
}

.flip3d-premium-card.flipping{
  animation:cardFlip3DPremium 1.55s cubic-bezier(.22,1,.36,1) forwards !important;
}

.flip3d-premium-front, .flip3d-premium-back{
  position:absolute;
  inset:0;
  backface-visibility:hidden;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(15,23,42,0.12);
}

.flip3d-premium-front{
  background:#fff;
  transform:rotateY(0deg);
}

.flip3d-premium-back{
  background:#fff;
  transform:rotateY(180deg);
}

.confetti-star{
  position:absolute;
  width:12px;
  height:12px;
  background:#00A8D6;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation:starFall 1.5s ease-out forwards;
}

/* === BONO BIENVENIDA HERO - MODAL ELEGANTE SIN EMOJIS === */

.welcome-bonus-overlay{
  position:fixed;inset:0;z-index:99999;
  background:rgba(15,23,42,0.65);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  display:flex;align-items:center;justify-content:center;
  padding:16px;
  animation:welcomeOverlayIn 0.44s cubic-bezier(0.16,1,0.3,1);
}

.welcome-bonus-hero{
  position:relative;isolation:isolate;
  width:100%;max-width:380px;
}

.welcome-bonus-hero::before{
  content:"";position:absolute;z-index:-2;
  top:0;left:-8px;right:-8px;height:120px;
  border-radius:24px 24px 86px 24px;
  background:linear-gradient(118deg,#00A8D6 0%,#10BDE1 58%,#33C7E5 100%);
  border:3px solid #000;box-shadow:5px 5px 0 #000;
}

.welcome-bonus-card{
  position:relative;margin:0 6px;padding:20px 18px 18px;
  border:3px solid #000;border-radius:12px;
  background:#fff;box-shadow:5px 5px 0 #000;
  overflow:hidden;transform:translateY(36px);
}

.welcome-gift-wrap{
  width:72px;height:72px;margin:0 auto 12px;
  position:relative;display:grid;place-items:center;
  animation:welcomeFloat 3s ease-in-out infinite;
}

.welcome-gift-shadow{
  position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);
  width:40px;height:8px;background:rgba(0,0,0,0.12);border-radius:50%;
  filter:blur(2px);animation:welcomeShadow 3s ease-in-out infinite;
}

.welcome-title{
  font-size:18px;font-weight:900;color:#0F172A;
  text-align:center;letter-spacing:-0.02em;line-height:1.2;
}

.welcome-amount{
  font-size:36px;font-weight:900;color:#0F172A;
  text-align:center;margin-top:12px;letter-spacing:-0.03em;
  opacity:0;transform:scale(0.8);transition:all 0.5s cubic-bezier(0.16,1,0.3,1);
}

.welcome-amount.show{opacity:1;transform:scale(1);}

.welcome-check{
  width:56px;height:56px;margin:12px auto 0;
  background:#00A8D6;border:2px solid #000;border-radius:50%;
  display:grid;place-items:center;box-shadow:2px 2px 0 #000;
  opacity:0;transform:scale(0);transition:all 0.4s cubic-bezier(0.16,1,0.3,1);
}

.welcome-check.show{opacity:1;transform:scale(1);}

.welcome-check svg path{
  stroke-dasharray:30;stroke-dashoffset:30;
  transition:stroke-dashoffset 0.5s ease 0.2s;
}

.welcome-check.show svg path{stroke-dashoffset:0;}

.welcome-btn{
  margin-top:16px;width:100%;height:48px;
  background:#00A8D6;color:#fff;font-weight:800;font-size:14px;
  border:2px solid #000;border-radius:12px;
  box-shadow:3px 3px 0 #000;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.welcome-btn:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 #000;}

.welcome-btn:active{transform:translate(1px,1px);box-shadow:1px 1px 0 #000;}

.welcome-btn:disabled{opacity:0.6;cursor:not-allowed;transform:none;box-shadow:2px 2px 0 #000;}

.welcome-shine{
  position:absolute;top:0;left:-100%;width:50%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.4),transparent);
  transform:skewX(-12deg);opacity:0;
}

.welcome-shine.animate{animation:welcomeShine 0.8s ease;}
