/* ===================================================
   MONETUM — Animations (Light Mode / Clean)
   =================================================== */

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ---- Scroll Animate In ---- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in[data-delay="100"] { transition-delay: 0.1s; }
.animate-in[data-delay="200"] { transition-delay: 0.2s; }
.animate-in[data-delay="300"] { transition-delay: 0.3s; }
.animate-in[data-delay="400"] { transition-delay: 0.4s; }
.animate-in[data-delay="500"] { transition-delay: 0.5s; }

/* ---- Yield bar animation ---- */
.yield-pool .yp-fill {
    width: 0 !important;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.yield-pool.animated .yp-fill {
    width: var(--target-width) !important;
}

/* ---- Nav toggle ---- */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Sector tab transition ---- */
.sector-content {
    animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Smooth body load ---- */
body {
    opacity: 0;
    animation: fadeIn 0.4s 0.05s forwards;
}

/* ---- IBAN card hover ---- */
.iban-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.iban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ---- Swap arrow ---- */
.swap-arrow {
    transition: transform 0.3s ease;
}
.swap-widget:hover .swap-arrow {
    transform: rotate(180deg);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-in { opacity: 1; transform: none; }
}