/* =====================================================================
   BURJO MANG KUSNADI - MOTION & MICRO-INTERACTIONS
   ===================================================================== */
@keyframes uiFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes uiPopIn {
  0% { opacity: 0; transform: scale(0.95) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes uiToastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes uiCheckDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes uiPriceBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); color: var(--coral); }
  100% { transform: scale(1); }
}

@keyframes uiOrderGlow {
  0% { box-shadow: 0 0 0 0 rgba(35, 56, 74, 0.24); background: var(--slate-soft); }
  65% { box-shadow: 0 0 0 8px rgba(35, 56, 74, 0); background: var(--surface); }
  100% { box-shadow: none; background: var(--surface); }
}

@keyframes uiTrackFlow {
  0% { transform: translate3d(-110%, 0, 0); }
  100% { transform: translate3d(260%, 0, 0); }
}

@keyframes uiSteamRise {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-2.5px); opacity: 0.35; }
}

@keyframes uiScanBeam {
  0%, 100% { transform: translateY(-4px); opacity: 0.95; }
  50% { transform: translateY(5px); opacity: 0.55; }
}

.view-section.active { animation: uiFadeUp 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }
.modal-backdrop.open { animation: uiFadeUp 0.16s ease both; }
.modal-backdrop.open .modal-box { animation: uiPopIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }
.toast { animation: uiToastIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bump { animation: uiPriceBump 0.28s ease; }
.order-card.is-new { animation: uiOrderGlow 1.6s ease both; }

.qris-success-icon svg { overflow: visible; }
.qris-success-icon .check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: uiCheckDraw 0.48s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.qris-success-icon .check-mark {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: uiCheckDraw 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.32s forwards;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
