/* ===== UI POLISH — animasi masuk, hover, glow (global) ===== */

/* Entrance: pakai style="--d:.1s" untuk stagger */
.polish-enter {
  opacity: 0;
  transform: translateY(16px);
  animation: polishIn .65s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes polishIn { to { opacity: 1; transform: none; } }

/* Card hover lift */
.polish-lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.polish-lift:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.35); border-color: rgba(134,104,255,.35); }

/* Tombol primary: shine sweep saat hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .5s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* Input focus glow */
.polish-input:focus, input:focus, textarea:focus {
  outline: none;
  border-color: rgba(134,104,255,.6) !important;
  box-shadow: 0 0 0 3px rgba(134,104,255,.18);
}

/* Teks gradient aksen */
.polish-gradient-text {
  background: linear-gradient(135deg, #a78bff, #7c5cff 55%, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Floating lembut untuk elemen dekoratif */
.polish-float { animation: polishFloat 5s ease-in-out infinite; }
@keyframes polishFloat { 50% { transform: translateY(-8px); } }

/* Balance card: gradient border animasi */
.polish-glow-card { position: relative; }
.polish-glow-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, rgba(134,104,255,.5), rgba(94,234,212,.25), rgba(134,104,255,.5));
  background-size: 200% 200%; animation: polishGlowShift 6s ease infinite; opacity: .55;
}
@keyframes polishGlowShift { 50% { background-position: 100% 100%; } }

/* Stat angka: pop saat berubah */
.polish-pop { animation: polishPop .35s cubic-bezier(.22,1,.36,1); }
@keyframes polishPop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* Divider halus */
.polish-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); border: 0; margin: 18px 0; }

/* Kurangi animasi kalau user minta */
@media (prefers-reduced-motion: reduce) {
  .polish-enter, .polish-float, .polish-pop { animation: none !important; opacity: 1; transform: none; }
  .polish-glow-card::before { animation: none; }
  .btn-primary::after { display: none; }
}
