#payment-ecosystem #unitpay-bank-card {
  box-shadow: none;
  backface-visibility: visible;
  background: transparent;
  transform-style: preserve-3d;
  padding: 0;
  margin: 0;
  width: min(92vw, 380px);
  aspect-ratio: 1.586 / 1;
  border: none;
  position: relative;
  animation: up-card-auto-flip 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes up-card-auto-flip {
  0%, 28% { transform: rotateY(0deg); }
  38%, 62% { transform: rotateY(180deg); }
  72%, 100% { transform: rotateY(360deg); }
}

@keyframes up-card-idle-tilt {
  0%, 100% { transform: rotateX(3deg) rotateY(-4deg) scale(1.02); }
  50% { transform: rotateX(-3deg) rotateY(4deg) scale(1.02); }
}

@keyframes up-card-idle-tilt-back {
  0%, 100% { transform: rotateX(3deg) rotateY(-4deg) scale(1.02) translateZ(-4px); }
  50% { transform: rotateX(-3deg) rotateY(4deg) scale(1.02) translateZ(-4px); }
}

@keyframes up-card-glare-sweep {
  0% { transform: translateX(-140%) skewX(-14deg); opacity: 0; }
  50% { transform: translateX(240%) skewX(-14deg); opacity: 0.7; }
  100% { transform: translateX(240%) skewX(-14deg); opacity: 0; }
}

#payment-ecosystem #unitpay-bank-card,
#payment-ecosystem #unitpay-bank-card * {
  box-sizing: border-box;
}

#payment-ecosystem #unitpay-bank-card .inner-card-backface {
  transform: translateZ(-4px);
  border-radius: 16px;
  background: linear-gradient(145deg, #2a4a6e 0%, #3a6a9e 48%, #64acff 100%);
  position: absolute;
  inset: 0;
  color: #fff;
  overflow: hidden;
  animation: up-card-idle-tilt-back 6s ease-in-out infinite;
}

#payment-ecosystem #unitpay-bank-card .flip-inner-card {
  transform: rotateY(180deg);
  position: absolute;
  inset: 0;
}

#payment-ecosystem #unitpay-bank-card .inner-card {
  position: absolute;
  inset: 0;
  color: #fff;
  background: linear-gradient(145deg, #3a5a8a 0%, #4a8ac8 42%, #64acff 100%);
  border-radius: 16px;
  overflow: hidden;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.45));
  animation: up-card-idle-tilt 6s ease-in-out infinite;
}

#payment-ecosystem #unitpay-bank-card .glare {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
  mix-blend-mode: hard-light;
}

#payment-ecosystem #unitpay-bank-card .glare::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 0;
  width: 42%;
  height: 136%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.12) 72%, transparent 100%);
  animation: up-card-glare-sweep 3s ease-in-out infinite;
}

#payment-ecosystem #unitpay-bank-card .up-card-chip {
  position: absolute;
  top: 18%;
  left: 8%;
  width: 12%;
  aspect-ratio: 1.25 / 1;
  border-radius: 5px;
  background: linear-gradient(135deg, #e8d28a 0%, #c9a84a 45%, #f5e6a8 100%);
  z-index: 2;
}

#payment-ecosystem #unitpay-bank-card .up-card-number {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 32%;
  font-size: clamp(14px, 3.6vw, 20px);
  letter-spacing: 0.18em;
  font-weight: 500;
  z-index: 2;
}

#payment-ecosystem #unitpay-bank-card .up-card-meta {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  font-size: clamp(10px, 2.4vw, 13px);
  text-transform: uppercase;
}

#payment-ecosystem #unitpay-bank-card .up-card-meta small {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-bottom: 3px;
}

#payment-ecosystem #unitpay-bank-card .up-card-logo {
  position: absolute;
  right: 8%;
  top: 14%;
  z-index: 3;
  font-weight: 700;
  font-size: clamp(16px, 4vw, 22px);
}

#payment-ecosystem #unitpay-bank-card .up-card-stripe {
  position: absolute;
  top: 14%;
  left: 0;
  width: 100%;
  height: 18%;
  background: #1a2535;
  z-index: 1;
}

#payment-ecosystem #unitpay-bank-card .up-card-back-panel {
  position: absolute;
  top: 42%;
  left: 8%;
  right: 8%;
  height: 16%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  z-index: 1;
}

#payment-ecosystem #unitpay-bank-card .up-card-back-cvv {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  background: #e8e8e8;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
}

#payment-ecosystem #unitpay-bank-card .up-card-back-note {
  position: absolute;
  bottom: 14%;
  left: 8%;
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.55;
  z-index: 1;
}

#payment-ecosystem #unitpay-bank-card .up-card-back-logo {
  position: absolute;
  bottom: 14%;
  right: 8%;
  font-weight: 700;
  font-size: 16px;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  #payment-ecosystem #unitpay-bank-card,
  #payment-ecosystem #unitpay-bank-card .glare::before,
  #payment-ecosystem #unitpay-bank-card .inner-card,
  #payment-ecosystem #unitpay-bank-card .inner-card-backface {
    animation: none;
  }
}

@media (max-width: 991px) {
  #payment-ecosystem #unitpay-bank-card {
    width: 100%;
    max-width: min(calc(100vw - 72px), 300px);
    margin: 0 auto;
  }

  #payment-ecosystem #unitpay-bank-card .inner-card {
    animation: up-card-idle-tilt-mobile 4s ease-in-out infinite;
  }

  #payment-ecosystem #unitpay-bank-card .inner-card-backface {
    animation: up-card-idle-tilt-back-mobile 4s ease-in-out infinite;
  }
}

@keyframes up-card-idle-tilt-mobile {
  0%, 100% { transform: rotateX(2deg) rotateY(-2deg); }
  50% { transform: rotateX(-2deg) rotateY(2deg); }
}

@keyframes up-card-idle-tilt-back-mobile {
  0%, 100% { transform: rotateX(2deg) rotateY(-2deg) translateZ(-4px); }
  50% { transform: rotateX(-2deg) rotateY(2deg) translateZ(-4px); }
}
