/* Kustomisasi Motion & Micro-Interactions */
        @keyframes qrPop {
            0% {
                transform: scale(0.94);
                opacity: 0.55;
            }
            65% {
                transform: scale(1.02);
                opacity: 1;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes panelReveal {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes shimmerSweep {
            100% {
                transform: translateX(100%);
            }
        }

        .qr-pop-animate {
            animation: qrPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .panel-animate {
            animation: panelReveal 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* Kartu interaktif dengan hover elevation halus */
        .interactive-card {
            transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                        border-color 0.3s ease;
        }
        .interactive-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 36px -12px rgba(15, 23, 42, 0.08),
                        0 6px 14px -6px rgba(79, 70, 229, 0.07);
            border-color: rgba(99, 102, 241, 0.35);
        }

        /* Spring button motion */
        .btn-spring {
            transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                        background-color 0.2s ease,
                        box-shadow 0.22s ease,
                        color 0.2s ease;
        }
        .btn-spring:hover:not(:disabled) {
            transform: translateY(-2px);
        }
        .btn-spring:active:not(:disabled) {
            transform: scale(0.96);
        }

        /* Efek kilau pada tombol download utama */
        .btn-shimmer {
            position: relative;
            overflow: hidden;
        }
        .btn-shimmer::after {
            content: "";
            position: absolute;
            inset: 0;
            transform: translateX(-100%);
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.28),
                transparent
            );
        }
        .btn-shimmer:hover:not(:disabled)::after {
            animation: shimmerSweep 0.85s ease-in-out;
        }

        /* Kustomisasi tampilan input color agar rapi dan nyaman disentuh */
        input[type="color"] {
            -webkit-appearance: none;
            appearance: none;
            border: none;
            padding: 0;
            background: transparent;
        }
        input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 0;
        }
        input[type="color"]::-webkit-color-swatch {
            border: 1px solid #cbd5e1;
            border-radius: 0.5rem;
        }


/* ===== Interactive upgrade pack ===== */
:root { --motion-ease: cubic-bezier(.22,1,.36,1); }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
button, input, textarea, select, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(99,102,241,.28); outline-offset: 3px;
}
.interactive-card {
  transform: translateZ(0);
  will-change: transform, box-shadow;
}
.interactive-card.is-tilting {
  transition: transform .12s ease-out, box-shadow .3s var(--motion-ease);
}
.btn-spring { isolation: isolate; }
.btn-spring::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--ripple-x,50%) var(--ripple-y,50%),
    rgba(255,255,255,.35) 0, rgba(255,255,255,.12) 18%, transparent 42%);
  opacity: 0; transform: scale(.4); transition: opacity .35s, transform .45s;
  pointer-events: none; z-index: -1;
}
.btn-spring.ripple-active::before { opacity: 1; transform: scale(2.4); }
.btn-spring:focus-visible { outline: 3px solid rgba(99,102,241,.28); outline-offset: 3px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
textarea, select {
  transition: border-color .22s, box-shadow .22s, background-color .22s, transform .22s;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus,
textarea:focus, select:focus {
  box-shadow: 0 0 0 4px rgba(99,102,241,.10);
}
#canvas-wrapper { transition: border-color .3s, background .3s, box-shadow .3s, transform .3s var(--motion-ease); }
#canvas-wrapper:has(#qr-canvas:not([hidden])):hover {
  box-shadow: 0 18px 42px -22px rgba(79,70,229,.35);
}
#btn-download:not(:disabled) { animation: downloadBreathe 3s ease-in-out infinite; }
#btn-download:active:not(:disabled) { animation: none; }
@keyframes downloadBreathe {
  0%,100% { box-shadow: 0 4px 12px rgba(79,70,229,.15); }
  50% { box-shadow: 0 8px 24px rgba(79,70,229,.24); }
}
@keyframes tabIn {
  from { opacity: 0; transform: translateY(7px) scale(.99); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.panel-animate { animation: tabIn .32s var(--motion-ease); }
#toast { backdrop-filter: blur(12px); }
#toast.toast-visible { transform: translate(-50%,0); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .interactive-card:hover { transform: translateY(-4px); }
  .btn-spring:hover:not(:disabled) { filter: saturate(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
