cat – ‘EOF’ and sed -i

cat >> css/mood.css <<'EOF'

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    text-align: center;
}
EOF
sed -i 's|\(css/[^"]*\)\.css?v=[0-9]*|\1.css?v='$(date +%s)'|g; s|\(js/[^"]*\)\.js?v=[0-9]*|\1.js?v='$(date +%s)'|g' index.php && echo "✅ Cache busted!"